From e6a8bbf95b76b1f5820a39b227d492eba5760b34 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Mon, 25 Sep 2023 18:49:31 +0000 Subject: [PATCH] Fix home-manager for root --- sets/buildMachines.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/sets/buildMachines.nix b/sets/buildMachines.nix index b1e8257..56e293b 100644 --- a/sets/buildMachines.nix +++ b/sets/buildMachines.nix @@ -1,4 +1,4 @@ -{ ... }: +{ config, ... }: { nix = { @@ -15,8 +15,12 @@ ''; }; - home-manager.users.root.programs.ssh = { - enable = true; - userKnownHostsFile = "~/.ssh/known_hosts ${../home/ssh/extra_known_hosts}"; + home-manager.users.root = { + home.stateVersion = config.system.stateVersion; + programs.ssh = { + enable = true; + userKnownHostsFile = + "~/.ssh/known_hosts ${../home/ssh/extra_known_hosts}"; + }; }; }