Nix configurations for my personal machines (Linux & macOS)
at main 578 B view raw
1{ 2 delib, 3 moduleSystem, 4 homeManagerUser, 5 config, 6 ... 7}: 8delib.module { 9 name = "home"; 10 11 myconfig.always.args.shared.homeConfig = 12 if moduleSystem == "home" 13 then config 14 else config.home-manager.users.${homeManagerUser}; 15 16 home.always = {myconfig, ...}: let 17 inherit (myconfig.constants) username; 18 in { 19 home = { 20 inherit username; 21 homeDirectory = 22 if moduleSystem == "darwin" 23 then "/Users/${username}" 24 else "/home/${username}"; 25 }; 26 news.display = "silent"; 27 programs.home-manager.enable = false; 28 }; 29}