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 =
|
modules =
|
||||||
[
|
[
|
||||||
inputs.disko.nixosModules.disko
|
inputs.disko.nixosModules.disko
|
||||||
./machines/musicbox-disks.nix
|
self.diskoConfigurations.unencrypted
|
||||||
{ _module.args.disks = [ "/dev/sda" ]; }
|
{ _module.args.disks = [ "/dev/sda" ]; }
|
||||||
./machines/musicbox.nix
|
./machines/musicbox.nix
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
@ -90,12 +90,16 @@
|
||||||
system = "x86_64-linux";
|
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 = {
|
deployment = {
|
||||||
targetHost = "beefcake";
|
targetHost = "beefcake";
|
||||||
targetUser = "daniel";
|
targetUser = "daniel";
|
||||||
};
|
};
|
||||||
modules = self.nixosConfigurations.beefcake.modules;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -117,6 +117,8 @@
|
||||||
# packages = with pkgs; [];
|
# packages = with pkgs; [];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
users.users.root.openssh.authorizedKeys.keys = config.users.users.daniel.openssh.authorizedKeys.keys;
|
||||||
|
|
||||||
users.users.lytedev = {
|
users.users.lytedev = {
|
||||||
# for running my services and applications and stuff
|
# for running my services and applications and stuff
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
|
Loading…
Reference in a new issue