Compare commits
No commits in common. "b51124c2682b51b8d0f319e068621bb130661bbf" and "e3d8f98e5c571078c10ada733717bf1968665657" have entirely different histories.
b51124c268
...
e3d8f98e5c
|
@ -1,26 +0,0 @@
|
|||
{ pterodactyl, ... }:
|
||||
{
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
device = "/dev/vda";
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostName = "gameserver-node-1";
|
||||
};
|
||||
|
||||
#environment.systemPackages = [
|
||||
# pterodactyl.packages."x86_64-linux".pterodactyl-wings
|
||||
#];
|
||||
|
||||
imports = [
|
||||
pterodactyl.nixosModules.pterodactyl-wings
|
||||
];
|
||||
|
||||
services.wings = {
|
||||
enable = false;
|
||||
configuration = "";
|
||||
};
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./configuration.nix
|
||||
];
|
||||
}
|
|
@ -24,6 +24,7 @@
|
|||
users.users.builder = {
|
||||
isNormalUser = true;
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK/plZfxF/RtB+pJsUYx9HUgRcB56EoO0uj+j3AGzZta root@cherry"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKeIiHkHA5c6/jZx+BB28c5wchdzlFI7R1gbvNmPyoOg root@kiara"
|
||||
];
|
||||
};
|
||||
|
|
|
@ -13,5 +13,5 @@
|
|||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
system.stateVersion = "23.05";
|
||||
}
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
# - https://github.com/NixOS/nixpkgs/issues/236736#issuecomment-1704670598
|
||||
# - https://nixos.org/manual/nixos/stable/#sect-nixos-systemd-nixos
|
||||
|
||||
{ pkgs, ... }:
|
||||
{ nixpkgs-unstable, ... }:
|
||||
{
|
||||
systemd.packages = [ pkgs.qbittorrent-nox ];
|
||||
systemd.packages = [ nixpkgs-unstable.legacyPackages."x86_64-linux".qbittorrent-nox ];
|
||||
|
||||
systemd.services."qbittorrent-nox@torrent" = {
|
||||
overrideStrategy = "asDropin";
|
||||
|
|
|
@ -16,22 +16,7 @@
|
|||
'';
|
||||
};
|
||||
locations."/.well-known/matrix/client" = {
|
||||
return = "200 '
|
||||
{
|
||||
\"m.homeserver\": {
|
||||
\"base_url\": \"https://matrix.nekover.se\"
|
||||
},
|
||||
\"m.identity_server\": {
|
||||
\"base_url\": \"https://vector.im\"
|
||||
},
|
||||
\"org.matrix.msc3575.proxy\": {
|
||||
\"url\": \"https://matrix.nekover.se\"
|
||||
},
|
||||
\"org.matrix.msc2965.authentication\": {
|
||||
\"issuer\": \"https://nekover.se/\",
|
||||
\"account\": \"https://matrix-auth.nekover.se/account\"
|
||||
}
|
||||
}'";
|
||||
return = "200 '{\"m.homeserver\": {\"base_url\": \"https://matrix.nekover.se\"}, \"m.identity_server\": {\"base_url\": \"https://vector.im\"}, \"org.matrix.msc3575.proxy\": {\"url\": \"https://matrix.nekover.se\"}, \"org.matrix.msc2965.authentication\": {\"issuer\": \"https://id.nekover.se/realms/nekoverse\", \"account\": \"https://id.nekover.se/realms/nekoverse/account/\"}}'";
|
||||
extraConfig = ''
|
||||
default_type application/json;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
|
|
55
flake.lock
55
flake.lock
|
@ -55,11 +55,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731892054,
|
||||
"narHash": "sha256-BJtD9NGUWaBe4OZ1JO77w8qBP9yHDJJUjsxkG/milFc=",
|
||||
"lastModified": 1732151224,
|
||||
"narHash": "sha256-5IgpueM8SGLOadzUJK6Gk37zEBXGd56BkNOtoWmnZos=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixos-generators",
|
||||
"rev": "15a87ccb45e06d24a9fd5f99a49782efe11b23f0",
|
||||
"rev": "3280fdde8c8f0276c9f5286ad5c0f433dfa5d56c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -101,11 +101,11 @@
|
|||
},
|
||||
"nixpkgs-master": {
|
||||
"locked": {
|
||||
"lastModified": 1732074992,
|
||||
"narHash": "sha256-HxcMSQ0SRjKFyf0vTUuoFbmrZSHPMWwppeAGZ+LS4vE=",
|
||||
"lastModified": 1732154639,
|
||||
"narHash": "sha256-GeEhJmh0/KEQmoe4Lmsv9VC0SrQn4K9V27KbHJ0Zs/g=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "5a27cc051d111db0b33537d80cc2f8b8d2e687f2",
|
||||
"rev": "516819d9b5b97ee1f461aecb4caed7aa6b769d5d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -117,11 +117,11 @@
|
|||
},
|
||||
"nixpkgs-unstable": {
|
||||
"locked": {
|
||||
"lastModified": 1732007104,
|
||||
"narHash": "sha256-qaWPxgLAvtIHTDcm0qJuc+WNYjcy4ZKigOyn2ag4ihM=",
|
||||
"lastModified": 1732136765,
|
||||
"narHash": "sha256-622zKMMp0mw2a+fJJoVQdNmxwRGDkWsDTn5OSPK8DLk=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "0705964c881cea8896474610188905ba41b59b08",
|
||||
"rev": "e35b0f3f9787cfe51f406f7dd5a4446a858bfdb2",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -132,22 +132,6 @@
|
|||
}
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1729265718,
|
||||
"narHash": "sha256-4HQI+6LsO3kpWTYuVGIzhJs1cetFcwT7quWCk/6rqeo=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "ccc0c2126893dd20963580b6478d1a10a4512185",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixpkgs-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_3": {
|
||||
"locked": {
|
||||
"lastModified": 1717602782,
|
||||
"narHash": "sha256-pL9jeus5QpX5R+9rsp3hhZ+uplVHscNJh8n8VpqscM0=",
|
||||
|
@ -162,31 +146,12 @@
|
|||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
"pterodactyl": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1730915158,
|
||||
"narHash": "sha256-qQvhHUbC5yKD6x/G0P2tvHoRf92Nd/QWB76CRnV5oyI=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "1eff87119f6e48b6b1d1afef468ee4ff1aebe333",
|
||||
"revCount": 3,
|
||||
"type": "git",
|
||||
"url": "https://git.nekover.se/fi/pterodactyl.git"
|
||||
},
|
||||
"original": {
|
||||
"type": "git",
|
||||
"url": "https://git.nekover.se/fi/pterodactyl.git"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixos-generators": "nixos-generators",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"nixpkgs-master": "nixpkgs-master",
|
||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||
"pterodactyl": "pterodactyl",
|
||||
"simple-nixos-mailserver": "simple-nixos-mailserver"
|
||||
}
|
||||
},
|
||||
|
@ -194,7 +159,7 @@
|
|||
"inputs": {
|
||||
"blobs": "blobs",
|
||||
"flake-compat": "flake-compat",
|
||||
"nixpkgs": "nixpkgs_3",
|
||||
"nixpkgs": "nixpkgs_2",
|
||||
"nixpkgs-24_05": "nixpkgs-24_05",
|
||||
"utils": "utils"
|
||||
},
|
||||
|
|
|
@ -8,12 +8,9 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
simple-nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-24.05";
|
||||
pterodactyl = {
|
||||
url = "git+https://git.nekover.se/fi/pterodactyl.git";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, nixpkgs-unstable, nixpkgs-master, nixos-generators, simple-nixos-mailserver, pterodactyl, ... }@inputs:
|
||||
outputs = { self, nixpkgs, nixpkgs-unstable, nixpkgs-master, nixos-generators, simple-nixos-mailserver, ... }@inputs:
|
||||
let
|
||||
hosts = import ./hosts.nix inputs;
|
||||
helper = import ./helper.nix inputs;
|
||||
|
@ -31,7 +28,7 @@
|
|||
nodeNixpkgs = builtins.mapAttrs (name: host: host.pkgs) hosts;
|
||||
|
||||
specialArgs = {
|
||||
inherit nixpkgs-unstable nixpkgs-master hosts simple-nixos-mailserver pterodactyl;
|
||||
inherit nixpkgs-unstable nixpkgs-master hosts simple-nixos-mailserver;
|
||||
|
||||
# Provide environment for secret key command
|
||||
keyCommandEnv = [ "env" "GNUPGHOME=/home/yuri/.passinfra_gnupg" "PASSWORD_STORE_DIR=/home/yuri/pass/infra" ];
|
||||
|
|
19
hosts.nix
19
hosts.nix
|
@ -26,10 +26,6 @@ let
|
|||
}) hosts;
|
||||
in
|
||||
generateDefaults {
|
||||
gameserver-node-1 = {
|
||||
site = "vs";
|
||||
environment = "proxmox";
|
||||
};
|
||||
hydra = {
|
||||
site = "vs";
|
||||
environment = "proxmox";
|
||||
|
@ -61,17 +57,12 @@ in
|
|||
site = "vs";
|
||||
environment = "proxmox";
|
||||
};
|
||||
mail-2 = {
|
||||
site = "wg";
|
||||
environment = "proxmox";
|
||||
};
|
||||
mastodon = {
|
||||
hostNixpkgs = nixpkgs-unstable;
|
||||
site = "vs";
|
||||
environment = "proxmox";
|
||||
};
|
||||
matrix = {
|
||||
hostNixpkgs = nixpkgs-unstable;
|
||||
site = "vs";
|
||||
environment = "proxmox";
|
||||
};
|
||||
|
@ -79,11 +70,6 @@ in
|
|||
site = "vs";
|
||||
environment = "proxmox";
|
||||
};
|
||||
navidrome = {
|
||||
hostNixpkgs = nixpkgs-unstable;
|
||||
site = "wg";
|
||||
environment = "proxmox";
|
||||
};
|
||||
netbox = {
|
||||
site = "vs";
|
||||
environment = "proxmox";
|
||||
|
@ -106,7 +92,6 @@ in
|
|||
environment = "proxmox";
|
||||
};
|
||||
torrent = {
|
||||
hostNixpkgs = nixpkgs-unstable;
|
||||
site = "vs";
|
||||
environment = "proxmox";
|
||||
};
|
||||
|
@ -118,10 +103,6 @@ in
|
|||
site = "af";
|
||||
environment = "openstack";
|
||||
};
|
||||
web-public-1 = {
|
||||
site = "wg";
|
||||
environment = "proxmox";
|
||||
};
|
||||
web-public-2 = {
|
||||
site = "vs";
|
||||
environment = "proxmox";
|
||||
|
|
Loading…
Reference in a new issue