add nix settings

This commit is contained in:
Aditya 2024-04-11 11:03:40 +05:30
parent 1b1110558c
commit 61195fb59b
Signed by: aditya
SSH key fingerprint: SHA256:jL1IvWsjjlPtw6HvDIHfXfhO9IkIokNEyIfuFhSdoyU
2 changed files with 26 additions and 21 deletions

View file

@ -22,13 +22,6 @@
xwayland.enable = true;
};
# Enable dconf
programs.dconf.enable = true;
# Enable CUPS to print documents.
services.printing.enable = true;
programs.zsh.enable = true;
nix.settings.trusted-users = ["root" "user"];
# Define a user account. Don't forget to set a password with passwd.
@ -83,20 +76,6 @@
};
};
# Allow unfree packages
nixpkgs.config = {
allowUnfree = true;
packageOverrides = pkgs: {
vaapiIntel = pkgs.vaapiIntel.override {enableHybridCodec = true;};
};
};
# Nix extra options
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave

View file

@ -15,4 +15,30 @@
./ssh
./virtualisation
];
nix = {
settings = {
experimental-features = ["nix-command" "flakes"];
auto-optimise-store = true;
};
gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 15d";
};
};
nixpkgs.config.allowUnfree = true;
services = {
gvfs.enable = true;
printing.enable = true;
upower.enable = true;
uptimed.enable = true;
};
programs = {
dconf.enable = true;
zsh.enable = true;
};
}