added unstablePkgs module option

This commit is contained in:
2026-09-05 19:18:29 +01:00
parent 406cfcdcca
commit a2959bda31
4 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
{
self,
moduleWithSystem,
...
}: {
flake.nixosModules.name = moduleWithSystem ({
pkgs,
self',
inputs',
...
}: let
modules = with self.nixosModules; [];
in {
imports = modules;
programs.name = {
enable = true;
package = self'.packages.hello;
};
});
}

View File

@@ -5,6 +5,9 @@
inherit system;
config.allowUnfree = true;
};
unstablePkgs = import inputs.nixpkgs-unstable {
inherit system;
};
# Make flakeLocation universally addressable
flakeLocation = builtins.getEnv "PWD";
};