add nicrosil and username variable
This commit is contained in:
18
flake.nix
18
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
6
home.nix
6
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
|
||||
|
||||
Reference in New Issue
Block a user