Add initial framework for config

This commit is contained in:
caem 2023-06-18 22:52:24 +02:00
parent 98d6777b26
commit 5517f337e1
24 changed files with 190 additions and 284 deletions

20
common.nix Normal file
View file

@ -0,0 +1,20 @@
# Common configuration for all systems
{ config, pkgs, ... }:
{
nix = {
settings.auto-optimise-store = true;
# Clean generations older than a week
gc = {
automatic = false; # Flip this to do it automatically
dates = "weekly";
options = "--delete-older-than 7d";
};
};
nixpkgs.config.allowUnfree = true;
system.stateVersion = "23.05";
}