refactor
This commit is contained in:
@@ -11,6 +11,9 @@
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
./disk-config.nix
|
||||
./hardware-configuration.nix
|
||||
./openssh.nix
|
||||
./pgbackrest.nix
|
||||
./secrets.nix
|
||||
../../modules/pgbackrest.nix
|
||||
../../profiles/core.nix
|
||||
../../profiles/fail2ban.nix
|
||||
@@ -21,19 +24,6 @@
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
];
|
||||
|
||||
sops.secrets.mindy-pgbackrest = {
|
||||
sopsFile = ../../secrets/mindy-pgbackrest;
|
||||
format = "binary";
|
||||
owner = "postgres";
|
||||
group = "postgres";
|
||||
};
|
||||
|
||||
my.pgbackrest = {
|
||||
enable = true;
|
||||
secretFile = "/run/secrets/mindy-pgbackrest";
|
||||
s3.bucket = "mindy-pgbackrest";
|
||||
};
|
||||
|
||||
home-manager.users.${user} = {
|
||||
pkgs,
|
||||
lib,
|
||||
@@ -61,14 +51,6 @@
|
||||
];
|
||||
};
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PermitRootLogin = "yes";
|
||||
PasswordAuthentication = false;
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
networking.hostName = hostname;
|
||||
|
||||
9
hosts/mindy/openssh.nix
Normal file
9
hosts/mindy/openssh.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{...}: {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PermitRootLogin = "yes";
|
||||
PasswordAuthentication = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
7
hosts/mindy/pgbackrest.nix
Normal file
7
hosts/mindy/pgbackrest.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{...}: {
|
||||
my.pgbackrest = {
|
||||
enable = true;
|
||||
secretFile = "/run/secrets/mindy-pgbackrest";
|
||||
s3.bucket = "mindy-pgbackrest";
|
||||
};
|
||||
}
|
||||
8
hosts/mindy/secrets.nix
Normal file
8
hosts/mindy/secrets.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{...}: {
|
||||
sops.secrets.mindy-pgbackrest = {
|
||||
sopsFile = ../../secrets/mindy-pgbackrest;
|
||||
format = "binary";
|
||||
owner = "postgres";
|
||||
group = "postgres";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user