seperate out nix settings

This commit is contained in:
Osman Faruk Bayram 2024-10-26 18:16:39 +03:00
parent 309d4730e8
commit b7a4ae6a18
2 changed files with 19 additions and 15 deletions

18
common/nix-settings.nix Normal file
View file

@ -0,0 +1,18 @@
{ pkgs, lib, config, ... }: {
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# enable nix flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
# disable the database error TODO add nix-index search
programs.command-not-found.enable = false;
}

View file

@ -8,6 +8,7 @@
imports = [
./hardware-configuration.nix
../../common/fonts.nix
../../common/nix-settings.nix
];
# Bootloader.
@ -101,21 +102,6 @@
# Install firefox.
programs.firefox.enable = true;
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# enable nix flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
# disable the database error TODO add nix-index search
programs.command-not-found.enable = false;
programs.steam = {
enable = true;
remotePlay.openFirewall =