about summary refs log tree commit diff
path: root/lib/mk_home.nix
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-09-22 17:45:20 +0900
committersefidel <contact@sefidel.net>2023-09-22 17:45:20 +0900
commit3a5e1df0689d33957a12dcb3fd77ddeeaba3077a (patch)
tree1a8784e772bed014ca09ed31e320d33386e2e7cb /lib/mk_home.nix
parent5e3887b73742609ae0a335cfce828ce65044ea47 (diff)
downloadnixrc-3a5e1df0689d33957a12dcb3fd77ddeeaba3077a.tar.gz
nixrc-3a5e1df0689d33957a12dcb3fd77ddeeaba3077a.zip
chore: 2nd darwin cleanup
Diffstat (limited to 'lib/mk_home.nix')
-rw-r--r--lib/mk_home.nix27
1 files changed, 1 insertions, 26 deletions
diff --git a/lib/mk_home.nix b/lib/mk_home.nix
index 899be0f..925fdbe 100644
--- a/lib/mk_home.nix
+++ b/lib/mk_home.nix
@@ -15,34 +15,9 @@ let
 
     home = {
       inherit username;
-      homeDirectory = if pkgs.stdenv.isDarwin then "/Users/${username}" else "/home/${username}";
+      homeDirectory = "/home/${username}";
       stateVersion = version;
     };
-
-    # Make applications pop up in finder/spotlight
-    disabledModules = [ "targets/darwin/linkapps.nix" ];
-    home.activation = lib.mkIf pkgs.stdenv.isDarwin {
-      copyApplications =
-        let
-          apps = pkgs.buildEnv {
-            name = "home-manager-applications";
-            paths = config.home.packages;
-            pathsToLink = "/Applications";
-          };
-        in
-        lib.hm.dag.entryAfter [ "writeBoundary" ] ''
-          baseDir="$HOME/Applications/Home Manager Apps"
-          if [ -d "$baseDir" ]; then
-            rm -rf "$baseDir"
-          fi
-          mkdir -p "$baseDir"
-          for appFile in ${apps}/Applications/*; do
-            target="$baseDir/$(basename "$appFile")"
-            $DRY_RUN_CMD cp ''${VERBOSE_ARG:+-v} -fHRL "$appFile" "$baseDir"
-            $DRY_RUN_CMD chmod ''${VERBOSE_ARG:+-v} -R +w "$target"
-          done
-        '';
-    };
   };
 in
 home-manager.lib.homeManagerConfiguration {