apparently i don't know how overlays work

This commit is contained in:
NullBite 2024-02-10 23:12:07 +01:00
parent 034c1a3868
commit a5c4c7c7f4
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -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;
# not having the freedom to install unfree programs is unfree
nixpkgs.config.allowUnfree = true;
nixpkgs = {
inherit overlays;
config = {
# not having the freedom to install unfree programs is unfree
allowUnfree = true;
};
};
nix.settings.experimental-features = ["nix-command" "flakes" ];
})
./hosts/${hostname}/configuration.nix