removed empty lines
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
xdotool
|
||||
xclip
|
||||
wl-clipboard-rs
|
||||
|
||||
fd # modern find, faster searches
|
||||
fzf # fuzzy finder! super cool and useful
|
||||
ripgrep # modern grep
|
||||
@@ -34,7 +33,6 @@
|
||||
graphviz # graphs
|
||||
tetex # export pdf
|
||||
languagetool # proofreader for English
|
||||
|
||||
# lsps
|
||||
yaml-language-server
|
||||
markdownlint-cli
|
||||
|
||||
@@ -33,7 +33,6 @@ in
|
||||
description = "Go development shell with Emacs tooling, REPL, formatter, and linter";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkMerge [
|
||||
{
|
||||
environment.variables = { inherit GOPATH; };
|
||||
|
||||
@@ -14,14 +14,12 @@ let
|
||||
"ombi"
|
||||
"flaresolverr"
|
||||
];
|
||||
|
||||
servicesConfig = lib.listToAttrs (
|
||||
map (serviceName: {
|
||||
name = serviceName;
|
||||
value.openFirewall = config.my.servers.${serviceName}.enable or false;
|
||||
}) nativeServicesWithOpenFirewall
|
||||
);
|
||||
|
||||
in
|
||||
{
|
||||
options.my.network.firewall = {
|
||||
@@ -37,10 +35,8 @@ in
|
||||
description = "Additional ports to open (like syncthing, gitea, etc.)";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.my.network.firewall.enabledServicePorts {
|
||||
services = servicesConfig;
|
||||
|
||||
networking.firewall.allowedTCPPorts =
|
||||
config.my.network.firewall.staticPorts
|
||||
++ config.my.network.firewall.additionalPorts
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{ lib, config, ... }:
|
||||
let
|
||||
setup = import ../servers/setup.nix { inherit lib config; };
|
||||
|
||||
standardProxyServices = {
|
||||
"firefox-syncserver" = {
|
||||
type = "proxyReverse";
|
||||
@@ -73,7 +72,6 @@ let
|
||||
type = "proxyReversePrivate";
|
||||
};
|
||||
};
|
||||
|
||||
generateProxyConfig =
|
||||
serviceName: serviceConfig:
|
||||
let
|
||||
@@ -89,9 +87,7 @@ let
|
||||
throw "Unknown proxy type: ${serviceConfig.type}";
|
||||
in
|
||||
lib.nameValuePair cfg.host (lib.mkIf cfg.enableProxy (proxyFunc cfg));
|
||||
|
||||
standardProxyConfigs = lib.mapAttrs' generateProxyConfig standardProxyServices;
|
||||
|
||||
in
|
||||
{
|
||||
config = lib.mkIf config.my.enableProxy {
|
||||
|
||||
@@ -14,26 +14,22 @@
|
||||
];
|
||||
description = "List of supported nix build features for this system";
|
||||
};
|
||||
|
||||
buildMachines = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.attrs;
|
||||
default = [ ];
|
||||
description = "List of remote build machines configuration";
|
||||
};
|
||||
|
||||
cores = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.int;
|
||||
default = null;
|
||||
description = "Number of cores to use for builds (null = auto-detect)";
|
||||
};
|
||||
|
||||
maxJobs = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.int;
|
||||
default = null;
|
||||
description = "Maximum number of parallel jobs (null = auto-detect)";
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
nix.settings = lib.mkMerge [
|
||||
{
|
||||
@@ -46,7 +42,6 @@
|
||||
max-jobs = config.my.nix.maxJobs;
|
||||
})
|
||||
];
|
||||
|
||||
nix.buildMachines = lib.mkIf (config.my.nix.buildMachines != [ ]) config.my.nix.buildMachines;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,13 +35,11 @@
|
||||
default = { };
|
||||
description = "Configuration for multiple scripts.";
|
||||
};
|
||||
|
||||
config = lib.mkIf (lib.any (s: s.enable) (lib.attrValues config.my.scripts)) {
|
||||
users.users.jawz.packages =
|
||||
config.my.scripts
|
||||
|> lib.mapAttrsToList (_name: script: lib.optional (script.enable && script.install) script.package)
|
||||
|> lib.flatten;
|
||||
|
||||
systemd.user.services =
|
||||
config.my.scripts
|
||||
|> lib.mapAttrs' (
|
||||
@@ -63,7 +61,6 @@
|
||||
}
|
||||
)
|
||||
);
|
||||
|
||||
systemd.user.timers =
|
||||
config.my.scripts
|
||||
|> lib.mapAttrs' (
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
export LC=$list_root/comic.txt
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
systemd.user = {
|
||||
services =
|
||||
|
||||
@@ -13,7 +13,6 @@ in
|
||||
./gitea-actions-runners/ryujinx.nix
|
||||
./gitea-actions-runners/nixos.nix
|
||||
];
|
||||
|
||||
options.my.servers.gitea = setup.mkOptions "gitea" "git" 9083;
|
||||
config = {
|
||||
sops.secrets = lib.mkIf cfg.enable { gitea.sopsFile = ../../secrets/env.yaml; };
|
||||
|
||||
@@ -51,12 +51,10 @@ in
|
||||
# in this example we are using a hostname which is resolved via DNS
|
||||
# (if you aren't using DNS remove the resolver line and change the variable to point to an IP address
|
||||
resolver ${cfg.ip} valid=30;
|
||||
|
||||
location = / {
|
||||
return 302 http://$host/web/;
|
||||
#return 302 https://$host/web/;
|
||||
}
|
||||
|
||||
location = /web/ {
|
||||
# Proxy main Jellyfin traffic
|
||||
proxy_pass ${cfg.local}/web/index.html;
|
||||
|
||||
@@ -213,7 +213,6 @@ in
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
virtualisation.oci-containers.containers = {
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
{
|
||||
options.my.users.nixremote = {
|
||||
enable = lib.mkEnableOption "nixremote user for distributed builds";
|
||||
|
||||
authorizedKeys = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.path;
|
||||
default = [
|
||||
@@ -12,20 +11,17 @@
|
||||
];
|
||||
description = "List of SSH public key files to authorize for nixremote user";
|
||||
};
|
||||
|
||||
gid = lib.mkOption {
|
||||
type = lib.types.int;
|
||||
default = 555;
|
||||
description = "Group ID for the nixremote group";
|
||||
};
|
||||
|
||||
home = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "/var/nixremote/";
|
||||
description = "Home directory for the nixremote user";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.my.users.nixremote.enable {
|
||||
users = {
|
||||
groups.nixremote.gid = config.my.users.nixremote.gid;
|
||||
|
||||
Reference in New Issue
Block a user