From 406fb69029ece18c8b9473c9bf100b453a402880 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Thu, 4 Jan 2024 21:51:31 +0530 Subject: [PATCH] refactor --- common/users/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/common/users/default.nix b/common/users/default.nix index 547ef97..7161fc0 100644 --- a/common/users/default.nix +++ b/common/users/default.nix @@ -3,23 +3,23 @@ , ... }: let - user = secrets.users; + users = secrets.users; in { users.mutableUsers = false; users.users = { root = { - inherit (user.root) hashedPassword; + inherit (users.root) hashedPassword; }; - "${user.primary.userName}" = { + "${users.primary.userName}" = { uid = 1000; - inherit (user.primary) hashedPassword; - description = user.primary.realName; + inherit (users.primary) hashedPassword; + description = users.primary.realName; isNormalUser = true; extraGroups = [ "docker" "libvirtd" "networkmanager" "tss" "wheel" ]; shell = pkgs.zsh; openssh.authorizedKeys.keys = [ - user.primary.sshPublicKey + users.primary.sshPublicKey secrets.phone.sshPublicKey ]; };