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