chore: collapse packages

This commit is contained in:
fufsob committed 2026-09-14 09:55:24 +00:00
1 parent ab2167ff9c
commit e6b92ecac7
29 files changed
+151 -111

No files matched your search

+18
View File
@@ -20,12 +20,30 @@ let
packages = import ../../pkgs/default.nix { inherit pkgs; };
nftr = import ./nftables.nix { inherit lib pkgs cfg; };
derived = import ./derived.nix { inherit lib cfg; };
# Scripts share one store name per block, and journald names a unit's output
# after its ExecStart basename; tag each unit with its own name instead.
unitsWithOwnSyslogIdentifier = lib.mkOption {
type = lib.types.attrsOf (
lib.types.submodule (
{ name, ... }:
{
config.serviceConfig.SyslogIdentifier = lib.mkIf (
lib.hasPrefix "proxy-suite-" name || name == "zapret-discord-youtube"
) (lib.mkDefault (lib.removeSuffix "@" name));
}
)
);
};
in
{
imports = [
./options
];
options.systemd.services = unitsWithOwnSyslogIdentifier;
options.systemd.user.services = unitsWithOwnSyslogIdentifier;
config = lib.mkMerge [
{
# xray and sing-box default to this flake's own nixpkgs (redirect it