split overlays off
This commit is contained in:
parent
c55d5756ea
commit
915e86ea3f
4 changed files with 38 additions and 25 deletions
33
flake.nix
33
flake.nix
|
|
@ -5,17 +5,26 @@
|
|||
secrets = { url = "github:LavaDesu/flakes-secrets"; };
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, secrets }: {
|
||||
nixosConfigurations."winter" = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
{
|
||||
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
|
||||
nix.registry.nixpkgs.flake = nixpkgs;
|
||||
}
|
||||
secrets.nixosModules.winter
|
||||
./cfg/winter/main.nix
|
||||
];
|
||||
outputs = { self, nixpkgs, secrets }: with nixpkgs.lib;
|
||||
let
|
||||
base = {
|
||||
system.configurationRevision = mkIf (self ? rev) self.rev;
|
||||
nix.registry.nixpkgs.flake = nixpkgs;
|
||||
};
|
||||
overlays = {
|
||||
picom = import ./overlays/picom.nix;
|
||||
polybar = import ./overlays/polybar.nix;
|
||||
};
|
||||
in
|
||||
{
|
||||
nixosConfigurations."winter" = nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
base
|
||||
secrets.nixosModules.winter
|
||||
./cfg/winter/main.nix
|
||||
];
|
||||
specialArgs = { inherit overlays; };
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue