extract music to different config
This commit is contained in:
parent
876a3f631e
commit
ffceb60bb8
3
Makefile
3
Makefile
@ -26,3 +26,6 @@ cleanRoot:
|
|||||||
|
|
||||||
news:
|
news:
|
||||||
home-manager news --flake ./.
|
home-manager news --flake ./.
|
||||||
|
|
||||||
|
music:
|
||||||
|
doas nixos-rebuild switch --flake ./#music
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
toplevel@{ inputs, withSystem, ... }:
|
toplevel@{ inputs, withSystem, ... }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
nixosModules = toplevel.config.flake.nixosModules;
|
||||||
|
minimal = [ ./nova-hardware.nix inputs.hosts.nixosModule ] ++ (with nixosModules; [ grub base sound wayland security ivand wireless wireguard ]);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
flake.nixosConfigurations = {
|
flake.nixosConfigurations = {
|
||||||
@ -10,11 +12,15 @@ in
|
|||||||
inherit inputs inputs';
|
inherit inputs inputs';
|
||||||
packages = config.packages;
|
packages = config.packages;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = minimal;
|
||||||
./nova-hardware.nix
|
});
|
||||||
inputs.hosts.nixosModule
|
music = withSystem system (ctx@{ config, inputs', ... }:
|
||||||
inputs.musnix.nixosModules.musnix
|
inputs.nixpkgs.lib.nixosSystem {
|
||||||
] ++ (with toplevel.config.flake.nixosModules; [ grub base sound music wayland security ivand wireless wireguard ]);
|
specialArgs = {
|
||||||
|
inherit inputs inputs';
|
||||||
|
packages = config.packages;
|
||||||
|
};
|
||||||
|
modules = minimal ++ [ inputs.musnix.nixosModules.musnix ] ++ (with nixosModules; [ music ]);
|
||||||
});
|
});
|
||||||
vm = withSystem system (ctx@{ config, inputs', ... }:
|
vm = withSystem system (ctx@{ config, inputs', ... }:
|
||||||
inputs.nixpkgs.lib.nixosSystem {
|
inputs.nixpkgs.lib.nixosSystem {
|
||||||
@ -24,7 +30,7 @@ in
|
|||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
inputs.hosts.nixosModule
|
inputs.hosts.nixosModule
|
||||||
] ++ (with toplevel.config.flake.nixosModules; [ vm base security testUser ]);
|
] ++ (with nixosModules; [ vm base security testUser ]);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user