move nix configuration
This commit is contained in:
@ -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
10
modules/nixos/nix.nix
Normal file
@ -0,0 +1,10 @@
|
||||
{...}: {
|
||||
config = {
|
||||
nix.settings = {
|
||||
experimental-features = ["nix-command" "flakes"];
|
||||
auto-optimise-store = true;
|
||||
max-jobs = "auto";
|
||||
cores = 1;
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user