diff --git a/init.el b/init.el index df13a1b..b5abdfc 100644 --- a/init.el +++ b/init.el @@ -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")))))