move nix configuration

This commit is contained in:
2024-12-28 22:09:41 +01:00
parent 04d77743ab
commit 3a7334c3b9
3 changed files with 11 additions and 14 deletions

View File

@ -5,7 +5,7 @@
}: let
cfg = config.myConfig;
in {
imports = [./bootloader.nix ./locale.nix ./greetd.nix ./rebuild.nix ./sops.nix ./sway.nix ./wifi.nix ./music.nix ./cups.nix ./gpu/amd.nix ./touch.nix ./cache.nix];
imports = [./bootloader.nix ./locale.nix ./greetd.nix ./rebuild.nix ./sops.nix ./sway.nix ./wifi.nix ./music.nix ./cups.nix ./gpu/amd.nix ./touch.nix ./cache.nix ./nix.nix];
options.myConfig = {
enable = lib.mkEnableOption "my custom config";

10
modules/nixos/nix.nix Normal file
View File

@ -0,0 +1,10 @@
{...}: {
config = {
nix.settings = {
experimental-features = ["nix-command" "flakes"];
auto-optimise-store = true;
max-jobs = "auto";
cores = 1;
};
};
}