chore: devide xrays systems
This commit is contained in:
26
nixos/system/bfs.netherland.xray/bfs.netherland.xray.nix
Normal file
26
nixos/system/bfs.netherland.xray/bfs.netherland.xray.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
inputs,
|
||||
flake,
|
||||
self,
|
||||
}: {
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
# TODO:
|
||||
# white list
|
||||
# torent
|
||||
# rate limit
|
||||
# ping - game and speak
|
||||
|
||||
imports = [
|
||||
self.nixosModules.xray-system
|
||||
];
|
||||
|
||||
hectic.generic.xray-system = {
|
||||
enable = true;
|
||||
defaultSopsFile = ../../../sus/bfs.xray.yaml;
|
||||
};
|
||||
}
|
||||
21
nixos/system/bfs.netherland.xray/default.nix
Normal file
21
nixos/system/bfs.netherland.xray/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
flake,
|
||||
self,
|
||||
inputs,
|
||||
system,
|
||||
...
|
||||
}: let
|
||||
# Use folder name as name of this system; sanitize for hostName (no dots)
|
||||
name = builtins.baseNameOf ./.;
|
||||
hostName = builtins.replaceStrings ["."] ["-"] name;
|
||||
|
||||
in self.lib.nixpkgs-lib.nixosSystem {
|
||||
pkgs = import inputs.nixpkgs {
|
||||
inherit system;
|
||||
overlays = [ self.overlays.default ];
|
||||
};
|
||||
modules = [
|
||||
{ networking.hostName = hostName; }
|
||||
(import ./${name}.nix { inherit flake self inputs; })
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user