Move lxc config out of flake
This commit is contained in:
parent
68f9b7b136
commit
1afa060f70
3 changed files with 33 additions and 34 deletions
20
configuration/containers/firefox-syncserver.nix
Normal file
20
configuration/containers/firefox-syncserver.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
services.mysql.package = pkgs.mariadb;
|
||||
|
||||
services.firefox-syncserver = {
|
||||
enable = true;
|
||||
secrets = ./firefox-syncserver.env;
|
||||
settings.host = "0.0.0.0";
|
||||
singleNode = {
|
||||
enable = true;
|
||||
hostname = "0.0.0.0";
|
||||
url = "https://fxsync.fern.garden";
|
||||
capacity = 1;
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 5000 ];
|
||||
|
||||
system.stateVersion = "25.05";
|
||||
}
|
8
configuration/containers/technitium.nix
Normal file
8
configuration/containers/technitium.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
services.technitium-dns-server = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
system.stateVersion = "25.05";
|
||||
}
|
39
flake.nix
39
flake.nix
|
@ -71,47 +71,18 @@
|
|||
|
||||
modules = [
|
||||
(nixpkgs + "/nixos/modules/virtualisation/proxmox-lxc.nix")
|
||||
|
||||
{
|
||||
networking.hostName = "technitium";
|
||||
|
||||
services.technitium-dns-server = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
system.stateVersion = "25.05";
|
||||
}
|
||||
{ networking.hostName = "technitium"; }
|
||||
./configuration/containers/technitium.nix
|
||||
];
|
||||
};
|
||||
|
||||
nixosConfigurations.lxc-firefox-syncserver = nixpkgs.lib.nixosSystem rec {
|
||||
nixosConfigurations.lxc-firefox-syncserver = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
|
||||
modules = [
|
||||
(nixpkgs + "/nixos/modules/virtualisation/proxmox-lxc.nix")
|
||||
|
||||
{
|
||||
networking.hostName = "firefox-syncserver";
|
||||
|
||||
services.mysql.package = nixpkgs.legacyPackages.${system}.mariadb;
|
||||
|
||||
services.firefox-syncserver = {
|
||||
enable = true;
|
||||
secrets = ./firefox-syncserver.env;
|
||||
settings.host = "0.0.0.0";
|
||||
singleNode = {
|
||||
enable = true;
|
||||
hostname = "0.0.0.0";
|
||||
url = "https://fxsync.fern.garden";
|
||||
capacity = 1;
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 5000 ];
|
||||
|
||||
system.stateVersion = "25.05";
|
||||
}
|
||||
{ networking.hostName = "firefox-syncserver"; }
|
||||
./configuration/containers/firefox-syncserver.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue