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

View file

@ -1,9 +1,12 @@
{
inputs,
lib,
root,
upkgs,
spkgs,
...
}: {
}:
{
imports = [
./hardware-configuration.nix
@ -12,7 +15,7 @@
# Use the systemd-boot EFI boot loader.
boot = rec {
initrd.kernelModules = ["amdgpu"];
initrd.kernelModules = [ "amdgpu" ];
loader = {
systemd-boot.enable = true;
@ -22,8 +25,8 @@
kernelPackages = upkgs.cachyosKernels.linuxPackages-cachyos-latest-lto-x86_64-v4;
# TODO: idk make this a toggle or smth idfk
# kernelPackages = upkgs.linuxPackages_latest;
kernelModules = ["v4l2loopback"];
extraModulePackages = with kernelPackages; [v4l2loopback];
kernelModules = [ "v4l2loopback" ];
extraModulePackages = with kernelPackages; [ v4l2loopback ];
# qemu
# binfmt.emulatedSystems = [
@ -98,7 +101,7 @@
];
config.common = {
"org.freedesktop.impl.portal.FileChooser" = ["termfilechooser"];
"org.freedesktop.impl.portal.FileChooser" = [ "termfilechooser" ];
};
};
@ -191,7 +194,15 @@
users.aurora = {
isNormalUser = true;
uid = 1000;
extraGroups = ["wheel" "disk" "input" "video" "audio" "networkmanager" "games"];
extraGroups = [
"wheel"
"disk"
"input"
"video"
"audio"
"networkmanager"
"games"
];
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 = {
# nix-ld runs unpatched dynamic binaries on nixos :3
nix-ld.enable = true;