seperate out nix settings
This commit is contained in:
parent
309d4730e8
commit
b7a4ae6a18
2 changed files with 19 additions and 15 deletions
18
common/nix-settings.nix
Normal file
18
common/nix-settings.nix
Normal 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;
|
||||
|
||||
}
|
||||
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue