Update common.nix

This commit is contained in:
ediblerope 2025-12-03 13:26:00 +00:00 committed by GitHub
parent 7c360e2f46
commit 472f7dfa08
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -78,17 +78,20 @@ users.users.fred = {
packages = with pkgs; [ packages = with pkgs; [
bazaar bazaar
fastfetch fastfetch
vesktop
]; ];
}; };
# User-specific environment variables environment.systemPackages = with pkgs; [
users.mutableUsers = true; # usually true (vesktop.overrideAttrs (old: {
environment.variables = { installPhase = ''
GTK_THEME = "Adwaita:dark"; mkdir -p $out/bin
}; echo '#!/bin/sh' > $out/bin/vesktop
echo 'GTK_THEME=Adwaita:dark exec ${old}/bin/vesktop "$@"' >> $out/bin/vesktop
chmod +x $out/bin/vesktop
'';
}))
];
# Allow unfree packages # Allow unfree packages
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;