diff --git a/flake.nix b/flake.nix index 2f3a8c2..1186978 100644 --- a/flake.nix +++ b/flake.nix @@ -48,6 +48,22 @@ ./home.nix ]; }; - }; + homeConfigurations."pager@nicrosil" = + let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + in + home-manager.lib.homeManagerConfiguration { + inherit pkgs; + # specialArgs = inputs; + modules = [ + # lix-module.nixosModules.default + ./home.nix + ]; + extraSpecialArgs = { + username = "pager"; + }; + }; + }; } diff --git a/home.nix b/home.nix index a362a99..ce1bd2f 100644 --- a/home.nix +++ b/home.nix @@ -1,10 +1,10 @@ -{ config, pkgs, ... }: +{ config, pkgs, username ? "abby", ... }: { # Home Manager needs a bit of information about you and the # paths it should manage. - home.username = "abby"; - home.homeDirectory = "/home/abby"; + home.username = username; + home.homeDirectory = "/home/${username}"; # This value determines the Home Manager release that your # configuration is compatible with. This helps avoid breakage