chore: collapse packages
This commit is contained in:
29 files changed
+151
-111
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user