From 085935f5740253b24e1bcb42abe76fba56acffa5 Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Mon, 5 Jun 2023 13:40:24 -0400 Subject: [PATCH] Fix $HOME on darwin --- home/default.nix | 7 ++++--- modules/darwin/default.nix | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/home/default.nix b/home/default.nix index e75a652..170388a 100644 --- a/home/default.nix +++ b/home/default.nix @@ -466,8 +466,9 @@ in { home.file = { ".config/nvim/lua".source = ./nvim/lua; ".aws/config".source = ./.aws/config; - ".config/autostart/albert.desktop" = { - source = pkgs.albert + "/share/applications/albert.desktop"; - }; + }; + + home.file.".config/autostart/albert.desktop" = lib.mkIf stdenv.isLinux { + source = pkgs.albert + "/share/applications/albert.desktop"; }; } diff --git a/modules/darwin/default.nix b/modules/darwin/default.nix index 76f4596..8877746 100644 --- a/modules/darwin/default.nix +++ b/modules/darwin/default.nix @@ -1,4 +1,5 @@ {pkgs, ...}: { + users.users."dave.gallant".home = "/Users/dave.gallant"; imports = [ ./brew.nix ./preferences.nix