Refactor to remove system
variable
This commit is contained in:
parent
9eac93c95f
commit
d14f0a8883
4 changed files with 5 additions and 9 deletions
lib/nixos
|
@ -1,12 +1,11 @@
|
|||
{
|
||||
inputs,
|
||||
self,
|
||||
system,
|
||||
username,
|
||||
}: {
|
||||
desktop ? false,
|
||||
}: let
|
||||
configuration = import ./configuration.nix {inherit desktop inputs system;};
|
||||
configuration = import ./configuration.nix {inherit desktop inputs;};
|
||||
hardwareConfiguration = import ./hardware-configuration.nix;
|
||||
in
|
||||
inputs.nixpkgs.lib.nixosSystem {
|
||||
|
@ -14,7 +13,7 @@ in
|
|||
inputs.home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager = {
|
||||
extraSpecialArgs = {inherit inputs desktop self system username;};
|
||||
extraSpecialArgs = {inherit inputs desktop self username;};
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users."${username}" = import ./home-manager;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue