aboutsummaryrefslogtreecommitdiff
path: root/machines/mbp-work.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-12-30 19:02:53 -0800
committerFranck Cuny <franck@fcuny.net>2025-12-30 19:02:53 -0800
commitdacf64ca7fd6d6d2cf927c709a74cb7adc8e6236 (patch)
treeb57889c0d611f11bdecba29c7a777c6100ba92df /machines/mbp-work.nix
parentinclude relevant programs in work profile (diff)
downloadinfra-dacf64ca7fd6d6d2cf927c709a74cb7adc8e6236.tar.gz
add back some abstractions related to user management
Diffstat (limited to '')
-rw-r--r--machines/mbp-work.nix16
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";
- };
};
}