Change path for nixos flake to use sudo

This commit is contained in:
Evie Litherland-Smith 2024-05-11 17:10:54 +01:00
parent ed16385ea9
commit 655044ccf2

View file

@ -326,7 +326,7 @@
(defun my/open-nixos-flake ()
"Open NixOS system config flake."
(interactive)
(let ((flake "/etc/nixos/flake.nix"))
(let ((flake "/sudo::/etc/nixos/flake.nix"))
(if (file-exists-p flake)
(find-file flake)
(warn (concat flake " not found")))))