Beefcake root ssh access for remote nixos-rebuilds

This commit is contained in:
Daniel Flanagan 2023-09-05 21:15:35 -05:00
parent 972baf18ad
commit 7a77d70837
2 changed files with 9 additions and 3 deletions

View file

@ -53,7 +53,7 @@
modules =
[
inputs.disko.nixosModules.disko
./machines/musicbox-disks.nix
self.diskoConfigurations.unencrypted
{ _module.args.disks = [ "/dev/sda" ]; }
./machines/musicbox.nix
inputs.home-manager.nixosModules.home-manager
@ -90,12 +90,16 @@
system = "x86_64-linux";
};
};
beefcake = inputs.nixpkgs.lib.nixosSystem {
defaults = {
environment.etc."nixos/configuration.nix".text = ''
throw "sorry, no nixos-rebuild, use colmena"
'';
};
beefcake = {
deployment = {
targetHost = "beefcake";
targetUser = "daniel";
};
modules = self.nixosConfigurations.beefcake.modules;
};
};
};

View file

@ -117,6 +117,8 @@
# packages = with pkgs; [];
};
users.users.root.openssh.authorizedKeys.keys = config.users.users.daniel.openssh.authorizedKeys.keys;
users.users.lytedev = {
# for running my services and applications and stuff
isNormalUser = true;