use root-with-key authorization instead of target user for deploys

This commit is contained in:
Haak Saxberg 2022-07-31 22:42:37 -07:00
parent 7b984f6190
commit 50a384ce2c
2 changed files with 8 additions and 1 deletions

View file

@ -6,6 +6,7 @@
storage.legacy = { };
};
defaults = {
imports = [
# make sure you have properly added the home-manager channel!
@ -16,11 +17,14 @@
# for nixops to log in and perform operations as haak (instead of root)
security.sudo.wheelNeedsPassword = false;
users.users.root.openssh.authorizedKeys.keys = [
(import ../system/framework/keys.nix).public
];
home-manager.users.haak = (import ../home/commandline.nix);
};
nas = {
deployment.targetHost = "192.168.1.65";
deployment.targetUser = "haak";
imports = [ ../system/xps11/configuration.nix ];
};
}