From 8f468688bc20849d58dece7545d43d87a56605bc Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Tue, 6 Aug 2024 21:23:35 +0100 Subject: [PATCH] lib/flake-helpers: fix double sudo during activation --- home-manager/darwin/default.nix | 4 +--- lib/flake-helpers.nix | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/home-manager/darwin/default.nix b/home-manager/darwin/default.nix index 5b27c3e1..ed1f545c 100644 --- a/home-manager/darwin/default.nix +++ b/home-manager/darwin/default.nix @@ -9,9 +9,7 @@ let cfg = config.home-manager.darwin; in { - imports = [ - ./trampoline-apps.nix - ]; + imports = [ ./trampoline-apps.nix ]; options.home-manager.darwin = { enable = lib.mkEnableOption "Darwin (macOS) config" // { diff --git a/lib/flake-helpers.nix b/lib/flake-helpers.nix index 861ff07e..f84b6d86 100644 --- a/lib/flake-helpers.nix +++ b/lib/flake-helpers.nix @@ -133,7 +133,7 @@ in drv = pkgs.writeShellScriptBin "activate" '' ${ pkgs.lib.getExe' nix-darwin.packages.${pkgs.system}.darwin-rebuild "darwin-rebuild" - } switch --flake .#${hostname} + } switch --flake '.#${hostname}' ''; }; };