From dacf64ca7fd6d6d2cf927c709a74cb7adc8e6236 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 30 Dec 2025 19:02:53 -0800 Subject: add back some abstractions related to user management --- machines/mbp-work.nix | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'machines/mbp-work.nix') diff --git a/machines/mbp-work.nix b/machines/mbp-work.nix index 8050987..b0541ac 100644 --- a/machines/mbp-work.nix +++ b/machines/mbp-work.nix @@ -1,26 +1,22 @@ -{ pkgs, ... }: +{ adminUser, pkgs, ... }: { imports = [ ../profiles/darwin.nix ../profiles/home-manager.nix + ../profiles/users/home-manager.nix ]; - users.users.fcuny = { - home = "/Users/fcuny"; + users.users.${adminUser.name} = { + home = "/Users/${adminUser.name}"; shell = pkgs.fish; }; - home-manager.users.fcuny = { + home-manager.users.${adminUser.name} = { home.stateVersion = "23.05"; - home.username = "fcuny"; - home.homeDirectory = "/Users/fcuny"; + home.homeDirectory = "/Users/${adminUser.name}"; imports = [ ../home/profiles/mac.nix ../home/profiles/work.nix ]; - userinfo = { - email = "fcuny@roblox.com"; - fullName = "Franck Cuny"; - }; }; } -- cgit v1.2.3