diff --git a/apps/aarch64-darwin/apply b/apps/aarch64-darwin/apply index 96a64f0..9cb6450 100755 --- a/apps/aarch64-darwin/apply +++ b/apps/aarch64-darwin/apply @@ -33,7 +33,7 @@ _prompt() { } insert_secrets_output() { - local pattern="outputs = { self, darwin, nix-homebrew, homebrew-bundle, homebrew-core, homebrew-cask, home-manager, nixpkgs, disko, agenix } @inputs:" + local pattern="outputs = { self, darwin, nix-homebrew, homebrew-bundle, homebrew-core, homebrew-cask, home-manager, nixpkgs, agenix } @inputs:" local insert_text="secrets " awk -v pat="$pattern" -v insert="$insert_text" ' diff --git a/flake.nix b/flake.nix index bfa29b3..7a7e08f 100644 --- a/flake.nix +++ b/flake.nix @@ -78,7 +78,6 @@ inherit user hostname; }; modules = [ - inputs.disko.nixosModules.disko inputs.home-manager.nixosModules.home-manager ./hosts/nixos/${hostname} ]; diff --git a/hosts/darwin/shared.nix b/hosts/darwin/shared.nix index e6fd6c7..a2ebc95 100644 --- a/hosts/darwin/shared.nix +++ b/hosts/darwin/shared.nix @@ -1,10 +1,4 @@ { - agenix, - config, - pkgs, - lib, - ... -}: { imports = [ ../../profiles/base ../../profiles/darwin diff --git a/profiles/darwin/default.nix b/profiles/darwin/default.nix index d2b1c83..93e511d 100644 --- a/profiles/darwin/default.nix +++ b/profiles/darwin/default.nix @@ -69,4 +69,44 @@ ]; }; }; + + launchd.agents = { + pbcopy = { + enable = true; + config = { + Label = "localhost.pbcopy"; + ProgramArguments = [ "/usr/bin/pbcopy" ]; + KeepAlive = { + Crashed = true; + SuccessfulExit = false; + }; + ProcessType = "Background"; + inetdCompatibility = { Wait = false; }; + Sockets = { + Listener = { + SockServiceName = "2224"; + SockNodeName = "127.0.0.1"; + }; + }; + }; + }; + pbpaste = { + enable = true; + config = { + Label = "localhost.pbpaste"; + ProgramArguments = [ "/usr/bin/pbpaste" ]; + KeepAlive = { + Crashed = true; + SuccessfulExit = false; + }; + ProcessType = "Background"; + inetdCompatibility = { Wait = false; }; + Sockets = { + Listener = { + SockServiceName = "2225"; + SockNodeName = "127.0.0.1"; + }; + }; + }; + }; }