Beefcake root ssh access for remote nixos-rebuilds
This commit is contained in:
parent
972baf18ad
commit
7a77d70837
2 changed files with 9 additions and 3 deletions
10
flake.nix
10
flake.nix
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue