Update common.nix
This commit is contained in:
parent
7c360e2f46
commit
472f7dfa08
1 changed files with 10 additions and 7 deletions
17
common.nix
17
common.nix
|
|
@ -78,17 +78,20 @@ users.users.fred = {
|
|||
packages = with pkgs; [
|
||||
bazaar
|
||||
fastfetch
|
||||
vesktop
|
||||
];
|
||||
};
|
||||
|
||||
# User-specific environment variables
|
||||
users.mutableUsers = true; # usually true
|
||||
environment.variables = {
|
||||
GTK_THEME = "Adwaita:dark";
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
(vesktop.overrideAttrs (old: {
|
||||
installPhase = ''
|
||||
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
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue