summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstuebinm2024-05-28 00:40:11 +0200
committerstuebinm2024-05-28 00:40:11 +0200
commit64a0c125747eb309faca1b905c0b46e98b4ad768 (patch)
tree5c12fde17fc2d8e00fa79038c4b0cfa923badce4
parent9a11bd85bef5547592c52bcb550e39e9075500d5 (diff)
pkgs/apply-config: random fixes
-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