Compare commits
3 commits
68f9b7b136
...
8ca39c9733
Author | SHA1 | Date | |
---|---|---|---|
8ca39c9733 | |||
fef9786d6c | |||
1afa060f70 |
6 changed files with 73 additions and 44 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";
|
||||||
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
feishin0_16_0,
|
feishin0_17,
|
||||||
fluffychat2,
|
fluffychat2,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
@ -122,7 +122,7 @@
|
||||||
ansible
|
ansible
|
||||||
celluloid
|
celluloid
|
||||||
discord
|
discord
|
||||||
feishin0_16_0.feishin
|
feishin0_17.feishin
|
||||||
ghostty
|
ghostty
|
||||||
gimp3
|
gimp3
|
||||||
glabels-qt
|
glabels-qt
|
||||||
|
|
10
flake.lock
generated
10
flake.lock
generated
|
@ -15,7 +15,7 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"feishin0_16_0": {
|
"feishin0_17": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1751534869,
|
"lastModified": 1751534869,
|
||||||
"narHash": "sha256-kUYk/jPyX5Lnhv7vUUfNVSHUDA8k28xi2H5bt6a1EHg=",
|
"narHash": "sha256-kUYk/jPyX5Lnhv7vUUfNVSHUDA8k28xi2H5bt6a1EHg=",
|
||||||
|
@ -162,11 +162,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1751479989,
|
"lastModified": 1751582995,
|
||||||
"narHash": "sha256-M5KgdpVBVcW4HRVq9/OSRbrxlwsQ1ogEKqnvzsClDqU=",
|
"narHash": "sha256-u7ubvtxdTnFPpV27AHpgoKn7qHuE7sgWgza/1oj5nzA=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "34627c90f062da515ea358360f448da57769236e",
|
"rev": "7a732ed41ca0dd64b4b71b563ab9805a80a7d693",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -204,7 +204,7 @@
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"feishin0_16_0": "feishin0_16_0",
|
"feishin0_17": "feishin0_17",
|
||||||
"fluffychat2": "fluffychat2",
|
"fluffychat2": "fluffychat2",
|
||||||
"lanzaboote": "lanzaboote",
|
"lanzaboote": "lanzaboote",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
|
|
45
flake.nix
45
flake.nix
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
# Updated packages.
|
# Updated packages.
|
||||||
fluffychat2.url = "github:NixOS/nixpkgs?ref=pull/419632/head"; # FluffyChat 2.0.0
|
fluffychat2.url = "github:NixOS/nixpkgs?ref=pull/419632/head"; # FluffyChat 2.0.0
|
||||||
feishin0_16_0.url = "github:NixOS/nixpkgs?ref=pull/414929/head"; # Feishin 0.16.0
|
feishin0_17.url = "github:NixOS/nixpkgs?ref=pull/414929/head"; # Feishin 0.17.0
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
lanzaboote,
|
lanzaboote,
|
||||||
nixos-hardware,
|
nixos-hardware,
|
||||||
fluffychat2,
|
fluffychat2,
|
||||||
feishin0_16_0,
|
feishin0_17,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
fluffychat2 = import fluffychat2 { inherit system; };
|
fluffychat2 = import fluffychat2 { inherit system; };
|
||||||
feishin0_16_0 = import feishin0_16_0 { inherit system; };
|
feishin0_17 = import feishin0_17 { inherit system; };
|
||||||
};
|
};
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
|
@ -71,47 +71,18 @@
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
(nixpkgs + "/nixos/modules/virtualisation/proxmox-lxc.nix")
|
(nixpkgs + "/nixos/modules/virtualisation/proxmox-lxc.nix")
|
||||||
|
{ networking.hostName = "technitium"; }
|
||||||
{
|
./configuration/containers/technitium.nix
|
||||||
networking.hostName = "technitium";
|
|
||||||
|
|
||||||
services.technitium-dns-server = {
|
|
||||||
enable = true;
|
|
||||||
openFirewall = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "25.05";
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosConfigurations.lxc-firefox-syncserver = nixpkgs.lib.nixosSystem rec {
|
nixosConfigurations.lxc-firefox-syncserver = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
(nixpkgs + "/nixos/modules/virtualisation/proxmox-lxc.nix")
|
(nixpkgs + "/nixos/modules/virtualisation/proxmox-lxc.nix")
|
||||||
|
{ networking.hostName = "firefox-syncserver"; }
|
||||||
{
|
./configuration/containers/firefox-syncserver.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";
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
30
hardware-configuration/vm-docker.nix
Normal file
30
hardware-configuration/vm-docker.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{ lib, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/cac60222-9b38-4938-8b17-5fddd67e8e26";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/home/docker/volumes" =
|
||||||
|
{ device = "/dev/disk/by-uuid/95461a94-ad91-43b9-b502-2b5d4496b84e";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices =
|
||||||
|
[ { device = "/dev/disk/by-uuid/025beadb-a89b-4abe-8d0c-b55401316319"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue