| author | |
| committer | |
| log | 637042c243b76c67f5bbb8617e334a660bc5b4ef |
| tree | 9c7329e8e5f0593e3349c6eb3e3335a517f0d8f7 |
| parent | 7ffada5c7b5bf2ef4d15f9ef91415feaf65a19ef |
| signature | Commit is signed but in an unrecognized format. |
2 files changed, 7 insertions(+), 0 deletions(-)
hosts/laptop/home.nix+2| ... | @@ -3,11 +3,13 @@ | ... | @@ -3,11 +3,13 @@ |
| 3 | config, | 3 | config, |
| 4 | pkgs, | 4 | pkgs, |
| 5 | lib, | 5 | lib, |
| 6 | currentSystemUser, | ||
| 6 | ... | 7 | ... |
| 7 | }: { | 8 | }: { |
| 8 | programs = import ../shared/home-programs.nix {inherit inputs config pkgs lib;}; | 9 | programs = import ../shared/home-programs.nix {inherit inputs config pkgs lib;}; |
| 9 | 10 | ||
| 10 | home = { | 11 | home = { |
| 12 | username = currentSystemUser; | ||
| 11 | homeDirectory = "/Users/nmarks/"; | 13 | homeDirectory = "/Users/nmarks/"; |
| 12 | # Home Manager needs a bit of information about you and the paths it should | 14 | # Home Manager needs a bit of information about you and the paths it should |
| 13 | # manage. | 15 | # manage. |
lib/mkSystem.nix+5| ... | @@ -30,6 +30,11 @@ | ... | @@ -30,6 +30,11 @@ |
| 30 | hostConfig = ../hosts/${host}/configuration.nix; | 30 | hostConfig = ../hosts/${host}/configuration.nix; |
| 31 | homeConfig = ../hosts/${host}/home.nix; | 31 | homeConfig = ../hosts/${host}/home.nix; |
| 32 | 32 | ||
| 33 | homeDir = | ||
| 34 | if darwin | ||
| 35 | then "/Users/nmarks/" | ||
| 36 | else "/home/nmarks"; | ||
| 37 | |||
| 33 | # NixOS vs nix-darwin functions | 38 | # NixOS vs nix-darwin functions |
| 34 | systemFunc = | 39 | systemFunc = |
| 35 | if darwin | 40 | if darwin |