From 3a5e1df0689d33957a12dcb3fd77ddeeaba3077a Mon Sep 17 00:00:00 2001 From: sefidel Date: Fri, 22 Sep 2023 17:45:20 +0900 Subject: chore: 2nd darwin cleanup --- lib/default.nix | 1 - lib/mk_home.nix | 27 +-------------------------- 2 files changed, 1 insertion(+), 27 deletions(-) (limited to 'lib') 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 { -- cgit 1.4.1