apparently i don't know how overlays work
This commit is contained in:
parent
034c1a3868
commit
a5c4c7c7f4
14
flake.nix
14
flake.nix
@ -102,10 +102,7 @@
|
|||||||
# a Home Manager home.nix for the given user from ./hosts/${hostname}/
|
# a Home Manager home.nix for the given user from ./hosts/${hostname}/
|
||||||
mkSystem = let _username=username; _overlays=overlays;
|
mkSystem = let _username=username; _overlays=overlays;
|
||||||
in {system, overlays ? _overlays, hostname, username ? _username, stateVersion, extraModules ? [] }:
|
in {system, overlays ? _overlays, hostname, username ? _username, stateVersion, extraModules ? [] }:
|
||||||
let
|
lib.nixosSystem {
|
||||||
pkgs = import nixpkgs { inherit system overlays; };
|
|
||||||
inherit (pkgs) lib;
|
|
||||||
in lib.nixosSystem {
|
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
./system
|
./system
|
||||||
@ -114,8 +111,13 @@
|
|||||||
# Values for every single system that would not conceivably need
|
# Values for every single system that would not conceivably need
|
||||||
# to be made modular
|
# to be made modular
|
||||||
system.stateVersion = stateVersion;
|
system.stateVersion = stateVersion;
|
||||||
# not having the freedom to install unfree programs is unfree
|
nixpkgs = {
|
||||||
nixpkgs.config.allowUnfree = true;
|
inherit overlays;
|
||||||
|
config = {
|
||||||
|
# not having the freedom to install unfree programs is unfree
|
||||||
|
allowUnfree = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
nix.settings.experimental-features = ["nix-command" "flakes" ];
|
nix.settings.experimental-features = ["nix-command" "flakes" ];
|
||||||
})
|
})
|
||||||
./hosts/${hostname}/configuration.nix
|
./hosts/${hostname}/configuration.nix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user