feat(server): setup user and home directory in flake.
This commit is contained in:
parent
b2c5920c3b
commit
bdc322d5fe
20
flake.nix
20
flake.nix
@ -76,12 +76,28 @@
|
|||||||
homeConfigurations = {
|
homeConfigurations = {
|
||||||
"ivek" = home-manager.lib.homeManagerConfiguration {
|
"ivek" = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = import nixpkgs {system = "x86_64-linux";};
|
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;};
|
extraSpecialArgs = {inherit inputs;};
|
||||||
};
|
};
|
||||||
"banir" = home-manager.lib.homeManagerConfiguration {
|
"banir" = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = import nixpkgs {system = "x86_64-linux";};
|
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;};
|
extraSpecialArgs = {inherit inputs;};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
# home.username = "banir";
|
|
||||||
home.homeDirectory = "/home/banir";
|
home.homeDirectory = "/home/banir";
|
||||||
home.stateVersion = "24.11";
|
home.stateVersion = "24.11";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user