about summary refs log tree commit diff
path: root/lib
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
parent5e3887b73742609ae0a335cfce828ce65044ea47 (diff)
downloadnixrc-3a5e1df0689d33957a12dcb3fd77ddeeaba3077a.tar.gz
nixrc-3a5e1df0689d33957a12dcb3fd77ddeeaba3077a.zip
chore: 2nd darwin cleanup
Diffstat (limited to 'lib')
-rw-r--r--lib/default.nix1
-rw-r--r--lib/mk_home.nix27
2 files changed, 1 insertions, 27 deletions
diff --git a/lib/default.nix b/lib/default.nix
index 704a15e..b75be10 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -3,7 +3,6 @@ inputs:
 {
   mkSystem = import ./mk_system.nix inputs;
   mkHome = import ./mk_home.nix inputs;
-  mkDarwin = import ./mk_darwin.nix inputs;
   nixosConfigurationsAsPackages = import ./nixos_configurations_as_packages.nix inputs;
   homeConfigurationsAsPackages = import ./home_configurations_as_packages.nix inputs;
 }
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 {