refactor(modules): split monolithic system/desktop config

This commit is contained in:
randogoth 2026-02-04 10:29:55 +02:00
parent c299acb87d
commit febdf2702c
13 changed files with 249 additions and 209 deletions

View file

@ -0,0 +1,41 @@
{ lib, ... }:
{
nix.settings = {
experimental-features = [
"nix-command"
"flakes"
];
allowed-users = [
"root"
"@wheel"
];
substituters = lib.mkBefore [
"https://cache.lix.systems"
];
trusted-public-keys = lib.mkBefore [
"cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
];
};
nixpkgs.config.allowUnfree = true;
programs.nix-index = {
enable = lib.mkDefault true;
enableBashIntegration = lib.mkDefault true;
};
programs.nix-index-database.comma.enable = lib.mkDefault true;
nix.optimise = lib.mkDefault {
automatic = true;
dates = [ "daily" ];
};
nix.gc = lib.mkDefault {
automatic = true;
dates = "daily";
options = "--delete-older-than 30d";
};
}