summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpkgs/apply-config/apply-config10
1 files changed, 4 insertions, 6 deletions
diff --git a/pkgs/apply-config/apply-config b/pkgs/apply-config/apply-config
index 0ab7ff0..c827823 100755
--- a/pkgs/apply-config/apply-config
+++ b/pkgs/apply-config/apply-config
@@ -102,23 +102,21 @@ Options:
(define (install-in-env built-config)
(define cmd
- '(nix-env -p /nix/var/nix/profiles/system --set ,built-config))
+ `(nix-env -p /nix/var/nix/profiles/system --set ,built-config))
(if (or (equal? action 'switch) (equal? action 'boot))
- (begin
- (log-verbose cmd)
- do-process! cmd)
+ (run-command cmd)
(log-verbose
"skipping nix-env profile installation")))
(define (switch-to-configuration built-config)
(define cmd
- `(systemd-run
+ `(sudo systemd-run
-E LOCALE_ARCHIVE
-E NIXOS_INSTALL_BOOTLOADER
--collect
- ;; --no-ask-password
+ --no-ask-password
--pty
--quiet
--same-dir