refactor: extract more things from flake.nix

This commit is contained in:
lelgenio 2024-10-01 12:22:18 -03:00
parent f7a0747d62
commit 54e6c10bac
3 changed files with 10 additions and 10 deletions

View file

@ -17,7 +17,7 @@
}; };
overlays = { overlays = {
default = (final: _: { dzgui = (final.callPackage ./package { }); }); default = import ./overlay.nix;
}; };
nixosModules = rec { nixosModules = rec {
@ -32,15 +32,7 @@
checks.${system}.nixosCheck = checks.${system}.nixosCheck =
(nixpkgs.lib.nixosSystem { (nixpkgs.lib.nixosSystem {
inherit system; inherit system;
modules = [ modules = [ ./nixos-test/configuration.nix ];
self.nixosModules.default
{
programs.dzgui.enable = true;
boot.isContainer = true;
system.stateVersion = "24.05";
}
];
}).config.system.build.toplevel; }).config.system.build.toplevel;
}; };
} }

View file

@ -0,0 +1,7 @@
{
imports = [ ../module.nix ];
programs.dzgui.enable = true;
boot.isContainer = true;
system.stateVersion = "24.05";
}

1
overlay.nix Normal file
View file

@ -0,0 +1 @@
(final: _: { dzgui = (final.callPackage ./package { }); })