Change path for nixos flake to use sudo
This commit is contained in:
parent
ed16385ea9
commit
655044ccf2
2
init.el
2
init.el
|
@ -326,7 +326,7 @@
|
||||||
(defun my/open-nixos-flake ()
|
(defun my/open-nixos-flake ()
|
||||||
"Open NixOS system config flake."
|
"Open NixOS system config flake."
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((flake "/etc/nixos/flake.nix"))
|
(let ((flake "/sudo::/etc/nixos/flake.nix"))
|
||||||
(if (file-exists-p flake)
|
(if (file-exists-p flake)
|
||||||
(find-file flake)
|
(find-file flake)
|
||||||
(warn (concat flake " not found")))))
|
(warn (concat flake " not found")))))
|
||||||
|
|
Loading…
Reference in a new issue