Make homeDirectory setting a default

Some hosts may have different home path
This commit is contained in:
2026-05-14 15:17:23 +02:00
parent 6f260619a7
commit 00049f5255
2 changed files with 9 additions and 4 deletions

View File

@@ -1,8 +1,8 @@
{ primaryUser, ... }:
{ lib, primaryUser, ... }:
{
imports = [
./common.nix
];
home.homeDirectory = "/home/${primaryUser}";
home.homeDirectory = lib.mkDefault "/home/${primaryUser}";
}

View File

@@ -1,10 +1,15 @@
{ pkgs, primaryUser, ... }:
{
pkgs,
lib,
primaryUser,
...
}:
{
imports = [
./common.nix
];
home.homeDirectory = "/Users/${primaryUser}";
home.homeDirectory = lib.mkDefault "/Users/${primaryUser}";
home.packages = with pkgs; [
secretive