moved home manager user configuration to dedicated files
This commit is contained in:
parent
472aabee2a
commit
8b3ab52435
3 changed files with 84 additions and 80 deletions
|
|
@ -1,8 +1,7 @@
|
||||||
{ inputs, lib, ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
flake = {
|
flake.modules.nixos.user =
|
||||||
modules.nixos.user =
|
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
users.users.user = {
|
users.users.user = {
|
||||||
|
|
@ -20,66 +19,4 @@
|
||||||
hashedPassword = "$6$Pj7v/CpstyuWQQV0$cNujVDhfMBdwlGVEnnd8t71.kZPixbo0u25cd.874iaqLTH4V5fa1f98V5zGapjQCz5JyZmsR94xi00sUrntT0";
|
hashedPassword = "$6$Pj7v/CpstyuWQQV0$cNujVDhfMBdwlGVEnnd8t71.kZPixbo0u25cd.874iaqLTH4V5fa1f98V5zGapjQCz5JyZmsR94xi00sUrntT0";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
homeConfigurations = {
|
|
||||||
"user@rotterdam" = inputs.home-manager.lib.homeManagerConfiguration {
|
|
||||||
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
|
|
||||||
extraSpecialArgs = {
|
|
||||||
inherit inputs;
|
|
||||||
hostname = "rotterdam";
|
|
||||||
};
|
|
||||||
modules = [
|
|
||||||
{ nixpkgs.overlays = [ inputs.self.overlays.default ]; }
|
|
||||||
{
|
|
||||||
home = {
|
|
||||||
username = "user";
|
|
||||||
homeDirectory = "/home/user";
|
|
||||||
stateVersion = "22.05";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
((inputs.import-tree.initFilter (p: lib.hasSuffix ".nix" p)) ./_user)
|
|
||||||
]
|
|
||||||
++ (with inputs.self.modules.homeManager; [
|
|
||||||
# system aspects
|
|
||||||
base
|
|
||||||
cli
|
|
||||||
desktop
|
|
||||||
gaming
|
|
||||||
|
|
||||||
# other aspects
|
|
||||||
stylix
|
|
||||||
niri
|
|
||||||
]);
|
|
||||||
};
|
|
||||||
|
|
||||||
"user@io" = inputs.home-manager.lib.homeManagerConfiguration {
|
|
||||||
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
|
|
||||||
extraSpecialArgs = {
|
|
||||||
inherit inputs;
|
|
||||||
hostname = "io";
|
|
||||||
};
|
|
||||||
modules = [
|
|
||||||
{ nixpkgs.overlays = [ inputs.self.overlays.default ]; }
|
|
||||||
{
|
|
||||||
home = {
|
|
||||||
username = "user";
|
|
||||||
homeDirectory = "/home/user";
|
|
||||||
stateVersion = "22.05";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
((inputs.import-tree.initFilter (p: lib.hasSuffix ".nix" p)) ./_user)
|
|
||||||
]
|
|
||||||
++ (with inputs.self.modules.homeManager; [
|
|
||||||
# system aspects
|
|
||||||
base
|
|
||||||
cli
|
|
||||||
desktop
|
|
||||||
|
|
||||||
# other aspect
|
|
||||||
stylix
|
|
||||||
niri
|
|
||||||
]);
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
32
aspects/users/user_io.nix
Normal file
32
aspects/users/user_io.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
{ inputs, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
flake."user@io" = inputs.home-manager.lib.homeManagerConfiguration {
|
||||||
|
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
|
||||||
|
extraSpecialArgs = {
|
||||||
|
inherit inputs;
|
||||||
|
hostname = "io";
|
||||||
|
};
|
||||||
|
modules = [
|
||||||
|
{ nixpkgs.overlays = [ inputs.self.overlays.default ]; }
|
||||||
|
{
|
||||||
|
home = {
|
||||||
|
username = "user";
|
||||||
|
homeDirectory = "/home/user";
|
||||||
|
stateVersion = "22.05";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
((inputs.import-tree.initFilter (p: lib.hasSuffix ".nix" p)) ./_user)
|
||||||
|
]
|
||||||
|
++ (with inputs.self.modules.homeManager; [
|
||||||
|
# system aspects
|
||||||
|
base
|
||||||
|
cli
|
||||||
|
desktop
|
||||||
|
|
||||||
|
# other aspect
|
||||||
|
stylix
|
||||||
|
niri
|
||||||
|
]);
|
||||||
|
};
|
||||||
|
}
|
||||||
35
aspects/users/user_rotterdam.nix
Normal file
35
aspects/users/user_rotterdam.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
{ inputs, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
flake.homeConfigurations = {
|
||||||
|
"user@rotterdam" = inputs.home-manager.lib.homeManagerConfiguration {
|
||||||
|
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
|
||||||
|
extraSpecialArgs = {
|
||||||
|
inherit inputs;
|
||||||
|
hostname = "rotterdam";
|
||||||
|
};
|
||||||
|
modules = [
|
||||||
|
{ nixpkgs.overlays = [ inputs.self.overlays.default ]; }
|
||||||
|
{
|
||||||
|
home = {
|
||||||
|
username = "user";
|
||||||
|
homeDirectory = "/home/user";
|
||||||
|
stateVersion = "22.05";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
((inputs.import-tree.initFilter (p: lib.hasSuffix ".nix" p)) ./_user)
|
||||||
|
]
|
||||||
|
++ (with inputs.self.modules.homeManager; [
|
||||||
|
# system aspects
|
||||||
|
base
|
||||||
|
cli
|
||||||
|
desktop
|
||||||
|
gaming
|
||||||
|
|
||||||
|
# other aspects
|
||||||
|
stylix
|
||||||
|
niri
|
||||||
|
]);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue