Skip to content

Commit

Permalink
lib/flake-helpers: fix double sudo during activation
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Aug 6, 2024
1 parent e5350ec commit 8f46868
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions home-manager/darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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" // {
Expand Down
2 changes: 1 addition & 1 deletion lib/flake-helpers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}'
'';
};
};
Expand Down

0 comments on commit 8f46868

Please sign in to comment.