Extract primaryUser into module args

This commit is contained in:
2026-03-29 09:41:38 +02:00
parent 2b6a9f52b9
commit 5a8f0aa4df
4 changed files with 6 additions and 5 deletions

View File

@@ -62,7 +62,6 @@
exec /run/wrappers/bin/fusermount -u "$1"
'')
silver-searcher
file
nixfmt
nixd

View File

@@ -1,12 +1,14 @@
{ pkgs, ... }:
{ pkgs, primaryUser, ... }:
{
nixpkgs.hostPlatform = "x86_64-darwin";
# TODO: consider
# https://nest.pijul.com/yonkeltron/macOS-nix-config:main/ZLDSMIXK5XFW6.EIAAA
# and
# https://github.com/bgub/nix-macos-starter/tree/main
home.username = "artem";
home.homeDirectory = "/Users/artem";
home.username = primaryUser;
home.homeDirectory = "/Users/${primaryUser}";
home.packages = with pkgs; [
secretive