From 7f73c9eee033fbc2febcdeb13d891439c8f792b8 Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Thu, 21 May 2026 15:31:08 -0700 Subject: Add prometheus --- hosts/common/users/trent/default.nix | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 hosts/common/users/trent/default.nix (limited to 'hosts/common/users/trent/default.nix') diff --git a/hosts/common/users/trent/default.nix b/hosts/common/users/trent/default.nix new file mode 100644 index 0000000..0e94b1c --- /dev/null +++ b/hosts/common/users/trent/default.nix @@ -0,0 +1,34 @@ +{ pkgs, inputs, config, ... }: +let + ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups; + uid = 1001; +in +{ + users.groups.trent.gid = uid; + users.users.trent = { + description = "Trent Guthrie"; + extraGroups = [ + "audio" + "video" + "wheel" + ] ++ ifTheyExist [ + "adbusers" + "dialout" + "gamemode" + "networkmanager" + "vboxsf" + "vboxusers" + ]; + group = "trent"; + home = "/home/trent"; + isNormalUser = true; + openssh.authorizedKeys.keys = [ + (builtins.readFile ./keys/id.pub) + #(builtins.readFile ./keys/id_other.pub) + ]; + + packages = [ pkgs.home-manager ]; + shell = pkgs.zsh; + uid = uid; + }; +} -- cgit v1.3.1