add nicrosil and username variable

This commit is contained in:
pager
2025-09-10 18:10:40 -04:00
parent 5bb2cb3670
commit faea665f9a
2 changed files with 20 additions and 4 deletions

View File

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

View File

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