created mkHost and mkHomeConfiguration
This commit is contained in:
parent
1f9812fea0
commit
9b6a6f54d6
8 changed files with 178 additions and 191 deletions
|
|
@ -1,22 +1,55 @@
|
|||
{ ... }:
|
||||
{ inputs, ... }:
|
||||
|
||||
let
|
||||
mkHomeConfiguration = inputs.self.lib.mkHomeConfiguration;
|
||||
in
|
||||
|
||||
{
|
||||
flake.modules.nixos.user =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
users.users.user = {
|
||||
isNormalUser = true;
|
||||
shell = pkgs.fish;
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
flake = {
|
||||
modules.nixos.user =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
users.users.user = {
|
||||
isNormalUser = true;
|
||||
shell = pkgs.fish;
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICQPkAyy+Du9Omc2WtnUF2TV8jFAF4H6mJi2D4IZ1nzg user@himalia"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO3Y0PVpGfJHonqDS7qoCFhqzUvqGq9I9sax+F9e/5cs user@io"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA1v3+q3EaruiiStWjubEJWvtejam/r41uoOpCdwJtLL user@rotterdam"
|
||||
];
|
||||
hashedPassword = "$6$Pj7v/CpstyuWQQV0$cNujVDhfMBdwlGVEnnd8t71.kZPixbo0u25cd.874iaqLTH4V5fa1f98V5zGapjQCz5JyZmsR94xi00sUrntT0";
|
||||
};
|
||||
};
|
||||
homeConfigurations = {
|
||||
"user@rotterdam" = mkHomeConfiguration {
|
||||
user = "user";
|
||||
hostname = "rotterdam";
|
||||
userModules = with inputs.self.modules.homeManager; [
|
||||
# system aspects
|
||||
desktop
|
||||
gaming
|
||||
|
||||
# other aspects
|
||||
stylix
|
||||
niri
|
||||
];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICQPkAyy+Du9Omc2WtnUF2TV8jFAF4H6mJi2D4IZ1nzg user@himalia"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO3Y0PVpGfJHonqDS7qoCFhqzUvqGq9I9sax+F9e/5cs user@io"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA1v3+q3EaruiiStWjubEJWvtejam/r41uoOpCdwJtLL user@rotterdam"
|
||||
};
|
||||
"user@io" = mkHomeConfiguration {
|
||||
user = "user";
|
||||
hostname = "io";
|
||||
userModules = with inputs.self.modules.homeManager; [
|
||||
# system aspects
|
||||
desktop
|
||||
|
||||
# other aspects
|
||||
stylix
|
||||
niri
|
||||
];
|
||||
hashedPassword = "$6$Pj7v/CpstyuWQQV0$cNujVDhfMBdwlGVEnnd8t71.kZPixbo0u25cd.874iaqLTH4V5fa1f98V5zGapjQCz5JyZmsR94xi00sUrntT0";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue