mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-26 10:06:13 +01:00
Split off vpsRemoteAccess module
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
87fe56b9ab
commit
45e7f50e88
|
@ -9,6 +9,7 @@
|
||||||
./pin-nixpkgs.nix
|
./pin-nixpkgs.nix
|
||||||
./pulseaudio.nix
|
./pulseaudio.nix
|
||||||
./vault-agent.nix
|
./vault-agent.nix
|
||||||
|
./vps-remote-access.nix
|
||||||
./sshd-emacs.nix
|
./sshd-emacs.nix
|
||||||
./xserver
|
./xserver
|
||||||
../hardware/default.nix
|
../hardware/default.nix
|
||||||
|
|
|
@ -16,9 +16,13 @@ inputs: {
|
||||||
pins = inputs;
|
pins = inputs;
|
||||||
overlays = inputs.self.overlays;
|
overlays = inputs.self.overlays;
|
||||||
|
|
||||||
hardware."${hostName}" = true;
|
hardware.${hostName} = true;
|
||||||
flakes.enable = true;
|
flakes.enable = true;
|
||||||
sshdEmacs = true;
|
sshdEmacs.enable = true;
|
||||||
|
vpsRemoteAccess =
|
||||||
|
{ enable = true;
|
||||||
|
trustedWheel = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.groups.nix-cache =
|
users.groups.nix-cache =
|
||||||
|
@ -39,10 +43,6 @@ inputs: {
|
||||||
[ pkgs.git ];
|
[ pkgs.git ];
|
||||||
|
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
|
||||||
passwordAuthentication = true;
|
|
||||||
permitRootLogin = "no";
|
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
Match User nix-cache
|
Match User nix-cache
|
||||||
ChrootDirectory /var/nix-cache
|
ChrootDirectory /var/nix-cache
|
||||||
|
|
|
@ -11,12 +11,11 @@ inputs: {
|
||||||
hardware.toothpick = true;
|
hardware.toothpick = true;
|
||||||
flakes.enable = true;
|
flakes.enable = true;
|
||||||
sshdEmacs.enable = true;
|
sshdEmacs.enable = true;
|
||||||
|
vpsRemoteAccess =
|
||||||
|
{ enable = true;
|
||||||
|
trustedWheel = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nix.trustedUsers =
|
|
||||||
[ "@wheel" ];
|
|
||||||
|
|
||||||
services.openssh.enable = true;
|
|
||||||
|
|
||||||
environment.systemPackages =
|
environment.systemPackages =
|
||||||
[ pkgs.git
|
[ pkgs.git
|
||||||
|
@ -42,9 +41,9 @@ inputs: {
|
||||||
services.nfs.server.enable = true;
|
services.nfs.server.enable = true;
|
||||||
|
|
||||||
# create default network with `podman -r network create default`
|
# create default network with `podman -r network create default`
|
||||||
virtualisation.podman = {
|
# virtualisation.podman = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
};
|
# };
|
||||||
|
|
||||||
virtualisation.docker = {
|
virtualisation.docker = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -361,7 +360,7 @@ inputs: {
|
||||||
}
|
}
|
||||||
# thy - main
|
# thy - main
|
||||||
{ publicKey =
|
{ publicKey =
|
||||||
"t04ttCF+EaiAcCKbJh/Z+QR0FCspmGe4BpUbKp2t+Co=";
|
"dEwoaWN1CiCorGwogggUNhbNsXvfYgfw7GqFxvSKGBk=";
|
||||||
allowedIPs =
|
allowedIPs =
|
||||||
[ "10.64.0.6/32" ];
|
[ "10.64.0.6/32" ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue