Compare commits

..

No commits in common. "43f04499ba724dc37f1bd7523fdf328edebcaa5c" and "edd58a9a3073aaf1632f4f7df51f0cce8706a750" have entirely different histories.

2 changed files with 7 additions and 8 deletions

View File

@ -87,9 +87,8 @@
# This function produces a module that adds the home-manager module to the # This function produces a module that adds the home-manager module to the
# system and configures the given module to the user's Home Manager # system and configures the given module to the user's Home Manager
# configuration # configuration
homeManagerInit = let _username=username; _nixpkgs=nixpkgs; homeManagerInit = let _username=username;
in { system, in { system,
nixpkgs ? _nixpkgs, # this is so modules can know which flake the system is using
home-manager ? inputs.home-manager, home-manager ? inputs.home-manager,
username ? _username, username ? _username,
module ? _ : {}, module ? _ : {},
@ -119,7 +118,7 @@
useUserPackages = true; useUserPackages = true;
inherit users; inherit users;
extraSpecialArgs = { extraSpecialArgs = {
inherit inputs outputs vars nixpkgs; inherit inputs outputs vars;
extraPkgs = mkExtraPkgs system; extraPkgs = mkExtraPkgs system;
}; };
}; };
@ -157,13 +156,13 @@
}) })
./hosts/${hostname}/configuration.nix ./hosts/${hostname}/configuration.nix
(homeManagerInit { (homeManagerInit {
inherit nixpkgs home-manager; inherit home-manager;
module = import ./hosts/${hostname}/home.nix; module = import ./hosts/${hostname}/home.nix;
inherit username system stateVersion; inherit username system stateVersion;
}) })
] ++ extraModules; ] ++ extraModules;
specialArgs = { specialArgs = {
inherit inputs outputs vars nixpkgs; inherit inputs outputs vars;
extraPkgs = mkExtraPkgs system; extraPkgs = mkExtraPkgs system;
}; };
}; };

View File

@ -1,4 +1,4 @@
{ pkgs, lib, config, options, inputs, nixpkgs, ... }: { pkgs, lib, config, options, inputs, ... }:
let let
cfg = config.nixfiles.common.nix; cfg = config.nixfiles.common.nix;
in in
@ -39,7 +39,7 @@ in
type = "github"; type = "github";
owner = "NixOS"; owner = "NixOS";
repo = "nixpkgs"; repo = "nixpkgs";
rev = "${nixpkgs.rev}"; rev = "${inputs.nixpkgs.rev}";
}; };
}; };
}; };
@ -48,7 +48,7 @@ in
# compatibility becasue once `, vkcube` couldn't find the correct opengl # compatibility becasue once `, vkcube` couldn't find the correct opengl
# driver or something (also it reduces the download size of temporary shell # driver or something (also it reduces the download size of temporary shell
# closures) # closures)
nix.nixPath = [ "nixpkgs=${nixpkgs}" ] ++ options.nix.nixPath.default; nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ] ++ options.nix.nixPath.default;
}) })
( lib.mkIf cfg.enable { ( lib.mkIf cfg.enable {