feat(server): setup user and home directory in flake.

This commit is contained in:
CronyAkatsuki 2025-04-29 15:53:54 +02:00
parent b2c5920c3b
commit bdc322d5fe
2 changed files with 18 additions and 3 deletions

View File

@ -76,12 +76,28 @@
homeConfigurations = {
"ivek" = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {system = "x86_64-linux";};
modules = [./hosts/server/home.nix ({...}: {home.username = "ivek";})];
modules = [
./hosts/server/home.nix
(
{...}: {
home.username = "ivek";
home.homeDirectory = "/home/ivek";
}
)
];
extraSpecialArgs = {inherit inputs;};
};
"banir" = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {system = "x86_64-linux";};
modules = [./hosts/server/home.nix ({...}: {home.username = "banir";})];
modules = [
./hosts/server/home.nix
(
{...}: {
home.username = "banir";
home.homeDirectory = "/home/banir";
}
)
];
extraSpecialArgs = {inherit inputs;};
};
};

View File

@ -4,7 +4,6 @@
inputs,
...
}: {
# home.username = "banir";
home.homeDirectory = "/home/banir";
home.stateVersion = "24.11";