1
0
Fork 0
forked from foxora/nix

added profile picture

This commit is contained in:
foxora 2026-03-01 17:01:10 +00:00
parent 14507c9737
commit 308b109a27
2 changed files with 25 additions and 6 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 0 B

After

Width:  |  Height:  |  Size: 318 KiB

Before After
Before After

View file

@ -1,9 +1,12 @@
{ {
inputs, inputs,
lib,
root,
upkgs, upkgs,
spkgs, spkgs,
... ...
}: { }:
{
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
@ -12,7 +15,7 @@
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
boot = rec { boot = rec {
initrd.kernelModules = ["amdgpu"]; initrd.kernelModules = [ "amdgpu" ];
loader = { loader = {
systemd-boot.enable = true; systemd-boot.enable = true;
@ -22,8 +25,8 @@
kernelPackages = upkgs.cachyosKernels.linuxPackages-cachyos-latest-lto-x86_64-v4; kernelPackages = upkgs.cachyosKernels.linuxPackages-cachyos-latest-lto-x86_64-v4;
# TODO: idk make this a toggle or smth idfk # TODO: idk make this a toggle or smth idfk
# kernelPackages = upkgs.linuxPackages_latest; # kernelPackages = upkgs.linuxPackages_latest;
kernelModules = ["v4l2loopback"]; kernelModules = [ "v4l2loopback" ];
extraModulePackages = with kernelPackages; [v4l2loopback]; extraModulePackages = with kernelPackages; [ v4l2loopback ];
# qemu # qemu
# binfmt.emulatedSystems = [ # binfmt.emulatedSystems = [
@ -98,7 +101,7 @@
]; ];
config.common = { config.common = {
"org.freedesktop.impl.portal.FileChooser" = ["termfilechooser"]; "org.freedesktop.impl.portal.FileChooser" = [ "termfilechooser" ];
}; };
}; };
@ -191,7 +194,15 @@
users.aurora = { users.aurora = {
isNormalUser = true; isNormalUser = true;
uid = 1000; uid = 1000;
extraGroups = ["wheel" "disk" "input" "video" "audio" "networkmanager" "games"]; extraGroups = [
"wheel"
"disk"
"input"
"video"
"audio"
"networkmanager"
"games"
];
shell = upkgs.zsh; shell = upkgs.zsh;
@ -205,6 +216,14 @@
}; };
}; };
systemd.tmpfiles.rules =
let
imagePath = root + "/homes/aurora/profile.png";
in
lib.mkIf (builtins.pathExists imagePath) [
"L /var/lib/AccountsService/icons/aurora - - - - ${imagePath}"
];
programs = { programs = {
# nix-ld runs unpatched dynamic binaries on nixos :3 # nix-ld runs unpatched dynamic binaries on nixos :3
nix-ld.enable = true; nix-ld.enable = true;