add postgres container
This commit is contained in:
parent
0c65cf06d3
commit
0e824a12bf
2 changed files with 41 additions and 0 deletions
10
flake.nix
10
flake.nix
|
|
@ -103,6 +103,16 @@
|
||||||
./hosts/hedgedoc
|
./hosts/hedgedoc
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
nixosConfigurations."sql" = nixpkgs.lib.nixosSystem {
|
||||||
|
#system = "x86_64-linux";
|
||||||
|
#pkgs = import nixpkgs { inherit system; };
|
||||||
|
inherit system;
|
||||||
|
modules = [
|
||||||
|
agenix.nixosModules.default
|
||||||
|
{ environment.systemPackages = [ (agenix.packages.${system}.default) ]; }
|
||||||
|
./hosts/sql
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
#);
|
#);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
31
hosts/sql/default.nix
Normal file
31
hosts/sql/default.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../common.nix
|
||||||
|
../../services/openssh.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
networking = {
|
||||||
|
hostName = "sql";
|
||||||
|
firewall = {
|
||||||
|
# TODO: add postgres from internal network
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
openssh.banner = ''
|
||||||
|
___
|
||||||
|
/\_ \
|
||||||
|
____ __ \//\ \
|
||||||
|
/',__\ /'__`\ \ \ \
|
||||||
|
/\__, `\/\ \L\ \ \_\ \_
|
||||||
|
\/\____/\ \___, \/\____\
|
||||||
|
\/___/ \/___/\ \/____/
|
||||||
|
\ \_\
|
||||||
|
\/_/
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
system.stateVersion = "25.11";
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue