move common/users.nix into users/
This commit is contained in:
parent
c6fbd21009
commit
0112637288
7 changed files with 150 additions and 104 deletions
|
|
@ -1,25 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
flake.modules.nixos.common-users = { 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";
|
||||
};
|
||||
root = {
|
||||
shell = pkgs.fish;
|
||||
hashedPassword = "!";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -6,7 +6,12 @@
|
|||
modules = [
|
||||
inputs.agenix.nixosModules.default
|
||||
{ networking.hostName = "alexandria"; }
|
||||
{ nixpkgs.overlays = [ inputs.agenix.overlays.default inputs.self.overlays.default ]; }
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
inputs.agenix.overlays.default
|
||||
inputs.self.overlays.default
|
||||
];
|
||||
}
|
||||
|
||||
# Common aspects (always included)
|
||||
inputs.self.modules.nixos.common-boot
|
||||
|
|
@ -19,7 +24,10 @@
|
|||
inputs.self.modules.nixos.common-security
|
||||
inputs.self.modules.nixos.common-services
|
||||
inputs.self.modules.nixos.common-tailscale
|
||||
inputs.self.modules.nixos.common-users
|
||||
|
||||
# User aspects
|
||||
inputs.self.modules.nixos.user
|
||||
inputs.self.modules.nixos.root
|
||||
|
||||
# Server aspects
|
||||
inputs.self.modules.nixos.server-boot
|
||||
|
|
|
|||
|
|
@ -6,7 +6,12 @@
|
|||
modules = [
|
||||
inputs.agenix.nixosModules.default
|
||||
{ networking.hostName = "io"; }
|
||||
{ nixpkgs.overlays = [ inputs.agenix.overlays.default inputs.self.overlays.default ]; }
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
inputs.agenix.overlays.default
|
||||
inputs.self.overlays.default
|
||||
];
|
||||
}
|
||||
|
||||
# Common aspects (always included)
|
||||
inputs.self.modules.nixos.common-boot
|
||||
|
|
@ -19,7 +24,10 @@
|
|||
inputs.self.modules.nixos.common-security
|
||||
inputs.self.modules.nixos.common-services
|
||||
inputs.self.modules.nixos.common-tailscale
|
||||
inputs.self.modules.nixos.common-users
|
||||
|
||||
# User aspects
|
||||
inputs.self.modules.nixos.user
|
||||
inputs.self.modules.nixos.root
|
||||
|
||||
# Desktop aspects
|
||||
inputs.self.modules.nixos.desktop-boot
|
||||
|
|
|
|||
|
|
@ -6,7 +6,12 @@
|
|||
modules = [
|
||||
inputs.agenix.nixosModules.default
|
||||
{ networking.hostName = "rotterdam"; }
|
||||
{ nixpkgs.overlays = [ inputs.agenix.overlays.default inputs.self.overlays.default ]; }
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
inputs.agenix.overlays.default
|
||||
inputs.self.overlays.default
|
||||
];
|
||||
}
|
||||
|
||||
# Common aspects (always included)
|
||||
inputs.self.modules.nixos.common-boot
|
||||
|
|
@ -19,7 +24,10 @@
|
|||
inputs.self.modules.nixos.common-security
|
||||
inputs.self.modules.nixos.common-services
|
||||
inputs.self.modules.nixos.common-tailscale
|
||||
inputs.self.modules.nixos.common-users
|
||||
|
||||
# User aspects
|
||||
inputs.self.modules.nixos.user
|
||||
inputs.self.modules.nixos.root
|
||||
|
||||
# Desktop aspects
|
||||
inputs.self.modules.nixos.desktop-boot
|
||||
|
|
|
|||
|
|
@ -6,7 +6,12 @@
|
|||
modules = [
|
||||
inputs.agenix.nixosModules.default
|
||||
{ networking.hostName = "trantor"; }
|
||||
{ nixpkgs.overlays = [ inputs.agenix.overlays.default inputs.self.overlays.default ]; }
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
inputs.agenix.overlays.default
|
||||
inputs.self.overlays.default
|
||||
];
|
||||
}
|
||||
|
||||
# Common aspects (always included)
|
||||
inputs.self.modules.nixos.common-boot
|
||||
|
|
@ -19,7 +24,10 @@
|
|||
inputs.self.modules.nixos.common-security
|
||||
inputs.self.modules.nixos.common-services
|
||||
inputs.self.modules.nixos.common-tailscale
|
||||
inputs.self.modules.nixos.common-users
|
||||
|
||||
# User aspects
|
||||
inputs.self.modules.nixos.user
|
||||
inputs.self.modules.nixos.root
|
||||
|
||||
# Server aspects
|
||||
inputs.self.modules.nixos.server-boot
|
||||
|
|
|
|||
12
aspects/users/root.nix
Normal file
12
aspects/users/root.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
flake.modules.nixos.root =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
users.root = {
|
||||
shell = pkgs.fish;
|
||||
hashedPassword = "!";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,10 +1,33 @@
|
|||
# aspects/users/user.nix
|
||||
{ inputs, ... }:
|
||||
|
||||
{
|
||||
flake.homeConfigurations = {
|
||||
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" = inputs.home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
|
||||
extraSpecialArgs = { inherit inputs; hostname = "rotterdam"; };
|
||||
extraSpecialArgs = {
|
||||
inherit inputs;
|
||||
hostname = "rotterdam";
|
||||
};
|
||||
modules = [
|
||||
{ nixpkgs.overlays = [ inputs.self.overlays.default ]; }
|
||||
|
||||
|
|
@ -50,7 +73,10 @@
|
|||
|
||||
"user@io" = inputs.home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
|
||||
extraSpecialArgs = { inherit inputs; hostname = "io"; };
|
||||
extraSpecialArgs = {
|
||||
inherit inputs;
|
||||
hostname = "io";
|
||||
};
|
||||
modules = [
|
||||
{ nixpkgs.overlays = [ inputs.self.overlays.default ]; }
|
||||
|
||||
|
|
@ -88,4 +114,5 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue