Refactor to remove system variable

This commit is contained in:
Oliver Davies 2024-03-12 17:15:10 +00:00
parent 9eac93c95f
commit d14f0a8883
4 changed files with 5 additions and 9 deletions
lib/nixos

View file

@ -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;