diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-12-30 19:02:53 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-12-30 19:02:53 -0800 |
| commit | dacf64ca7fd6d6d2cf927c709a74cb7adc8e6236 (patch) | |
| tree | b57889c0d611f11bdecba29c7a777c6100ba92df /machines/mbp-work.nix | |
| parent | include relevant programs in work profile (diff) | |
| download | infra-dacf64ca7fd6d6d2cf927c709a74cb7adc8e6236.tar.gz | |
add back some abstractions related to user management
Diffstat (limited to 'machines/mbp-work.nix')
| -rw-r--r-- | machines/mbp-work.nix | 16 |
1 files changed, 6 insertions, 10 deletions
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"; - }; }; } |
