From 23ea85a688c183a79301ef07ca8972e81b3d8e39 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Tue, 12 Dec 2023 06:36:06 +0000 Subject: [PATCH] Add nil (nix lsp) to root user for editing /etc/nixos/ more easily --- flake.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index f6b67adc..5fe973b1 100644 --- a/flake.nix +++ b/flake.nix @@ -178,7 +178,10 @@ useUserPackages = true; users = { root = { - imports = [ ./home/default.nix ]; + imports = [ + ./home/default.nix + ({ pkgs, ... }: { home.packages = with pkgs; [ nil ]; }) + ]; home = { inherit stateVersion; username = "root";