aboutsummaryrefslogtreecommitdiff
path: root/profiles/admin-user
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-07-21 17:57:36 -0700
committerFranck Cuny <franck@fcuny.net>2025-07-21 17:57:36 -0700
commit5484afc2ce90ab7d2d33d1a9e822d497f44c4e5d (patch)
tree9f8d541e57956e7639b12801375ad91693a95b2c /profiles/admin-user
parentmove all profiles, modules, and flakes to top-level (diff)
downloadinfra-5484afc2ce90ab7d2d33d1a9e822d497f44c4e5d.tar.gz
keep organizing into modules and profiles
Diffstat (limited to 'profiles/admin-user')
-rw-r--r--profiles/admin-user/home-manager.nix12
-rw-r--r--profiles/admin-user/user.nix22
2 files changed, 34 insertions, 0 deletions
diff --git a/profiles/admin-user/home-manager.nix b/profiles/admin-user/home-manager.nix
new file mode 100644
index 0000000..7a9ae43
--- /dev/null
+++ b/profiles/admin-user/home-manager.nix
@@ -0,0 +1,12 @@
+{
+ adminUser,
+ ...
+}:
+{
+ home-manager = {
+ users.${adminUser.name} = {
+ home.username = "${adminUser.name}";
+ inherit (adminUser) userinfo;
+ };
+ };
+}
diff --git a/profiles/admin-user/user.nix b/profiles/admin-user/user.nix
new file mode 100644
index 0000000..e05ae6d
--- /dev/null
+++ b/profiles/admin-user/user.nix
@@ -0,0 +1,22 @@
+{
+ adminUser,
+ pkgs,
+ ...
+}:
+{
+ nix.settings.trusted-users = [ adminUser.name ];
+ users = {
+ users.${adminUser.name} = {
+ inherit (adminUser) uid;
+ shell = pkgs.fish;
+ isNormalUser = true;
+ openssh.authorizedKeys.keys = [
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINBkozy+X96u5ciX766bJ/AyQ3xm1tXZTIr5+4PVFZFi"
+ ];
+ extraGroups = [
+ "wheel"
+ "docker"
+ ];
+ };
+ };
+}