diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-12-13 15:19:21 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-12-13 15:19:21 -0800 |
| commit | 771039f64d44a60f9691582fe559e26b431bbbe8 (patch) | |
| tree | 1f980dd57b0f3256825f04f101c81ae458a4b424 /modules | |
| parent | update builders configuration (diff) | |
| download | infra-771039f64d44a60f9691582fe559e26b431bbbe8.tar.gz | |
remove abstractions for managing users
Diffstat (limited to '')
| -rw-r--r-- | modules/default-darwin.nix | 1 | ||||
| -rw-r--r-- | modules/default.nix | 3 | ||||
| -rw-r--r-- | modules/home-manager.nix | 12 | ||||
| -rw-r--r-- | modules/host-config.nix | 15 | ||||
| -rw-r--r-- | modules/user.nix | 24 |
5 files changed, 0 insertions, 55 deletions
diff --git a/modules/default-darwin.nix b/modules/default-darwin.nix index bf8c660..4b4daaa 100644 --- a/modules/default-darwin.nix +++ b/modules/default-darwin.nix @@ -1,7 +1,6 @@ { ... }: { imports = [ - ./host-config.nix ./ssh.nix ]; } diff --git a/modules/default.nix b/modules/default.nix index f936646..257c72e 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -1,10 +1,7 @@ { ... }: { imports = [ - ./home-manager.nix - ./host-config.nix ./remote-unlock.nix ./ssh.nix - ./user.nix ]; } diff --git a/modules/home-manager.nix b/modules/home-manager.nix deleted file mode 100644 index 7a9ae43..0000000 --- a/modules/home-manager.nix +++ /dev/null @@ -1,12 +0,0 @@ -{ - adminUser, - ... -}: -{ - home-manager = { - users.${adminUser.name} = { - home.username = "${adminUser.name}"; - inherit (adminUser) userinfo; - }; - }; -} diff --git a/modules/host-config.nix b/modules/host-config.nix deleted file mode 100644 index b10d85f..0000000 --- a/modules/host-config.nix +++ /dev/null @@ -1,15 +0,0 @@ -{ lib, ... }: -let - inherit (lib) mkOption; - inherit (lib.types) - attrs - ; -in -{ - options = { - adminUser = mkOption { - type = attrs; - default = { }; - }; - }; -} diff --git a/modules/user.nix b/modules/user.nix deleted file mode 100644 index 8a9dafb..0000000 --- a/modules/user.nix +++ /dev/null @@ -1,24 +0,0 @@ -{ - adminUser, - pkgs, - ... -}: -{ - nix.settings.trusted-users = [ adminUser.name ]; - users = { - users.${adminUser.name} = { - inherit (adminUser) uid; - shell = pkgs.fish; - isNormalUser = true; - hashedPassword = "$6$Llw8m62nKMLLN9mm$3.a4CKUFlqwkG8vjBryLlBNwTwgH63vpg2nhYwRoQzG76Q91vTXnlYDujS4G5yGrWoatkKZx5epCx4/NAvRh2/"; - openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINBkozy+X96u5ciX766bJ/AyQ3xm1tXZTIr5+4PVFZFi" - ]; - extraGroups = [ - "wheel" - ]; - }; - }; - - programs.fish.enable = true; -} |
