diff --git a/hosts/shared.nix b/hosts/shared.nix index ff17784..ecd14a6 100644 --- a/hosts/shared.nix +++ b/hosts/shared.nix @@ -2,8 +2,8 @@ config, inputs, self, - lib, pkgs, + lib, ... }: { diff --git a/modules/home/programs/hyprlock.nix b/modules/home/programs/hyprlock.nix index b17a849..cfbed7a 100644 --- a/modules/home/programs/hyprlock.nix +++ b/modules/home/programs/hyprlock.nix @@ -1,8 +1,4 @@ -{ - config, - lib, - ... -}@moduleArgs: +{ config, lib, ... }@moduleArgs: let cfg = config.custom.programs.hyprlock; in @@ -17,9 +13,11 @@ in config = lib.mkIf cfg.enable { programs.hyprlock = { enable = true; + settings = { general.immediate_render = true; auth."fingerprint:enabled" = cfg.fprintAuth; + animations.enabled = false; input-field.monitor = ""; background = { diff --git a/modules/home/services/hypridle.nix b/modules/home/services/hypridle.nix index 73f0386..1442314 100644 --- a/modules/home/services/hypridle.nix +++ b/modules/home/services/hypridle.nix @@ -1,8 +1,4 @@ -{ - config, - lib, - ... -}: +{ config, lib, ... }: { options.custom.services.hypridle.enable = lib.mkEnableOption ""; diff --git a/modules/system/de/hyprland.nix b/modules/system/de/hyprland.nix index 313f04b..de1d393 100644 --- a/modules/system/de/hyprland.nix +++ b/modules/system/de/hyprland.nix @@ -1,8 +1,4 @@ -{ - config, - lib, - ... -}: +{ config, lib, ... }: { options.custom.de.hyprland.enable = lib.mkEnableOption ""; diff --git a/modules/system/services/actualbudget/default.nix b/modules/system/services/actualbudget/default.nix index ae49688..2ffbf70 100644 --- a/modules/system/services/actualbudget/default.nix +++ b/modules/system/services/actualbudget/default.nix @@ -1,8 +1,4 @@ -{ - config, - lib, - ... -}: +{ config, lib, ... }: let cfg = config.custom.services.actualbudget; in @@ -20,10 +16,12 @@ in }; config = lib.mkIf cfg.enable { - users.groups.actual = { }; - users.users.actual = { - isSystemUser = true; - group = "actual"; + users = { + groups.actual = { }; + users.actual = { + isSystemUser = true; + group = config.users.groups.actual.name; + }; }; services.actual = { diff --git a/modules/system/services/hedgedoc/default.nix b/modules/system/services/hedgedoc/default.nix index c6fad59..d9b4ea0 100644 --- a/modules/system/services/hedgedoc/default.nix +++ b/modules/system/services/hedgedoc/default.nix @@ -42,8 +42,7 @@ in # environmentFile = config.sops.templates."hedgedoc/environment".path; settings = { - domain = cfg.domain; - inherit (cfg) port; + inherit (cfg) domain port; protocolUseSSL = true; allowAnonymous = false; allowEmailRegister = false; diff --git a/modules/system/services/nextcloud/default.nix b/modules/system/services/nextcloud/default.nix index 2aea91a..50f2eae 100644 --- a/modules/system/services/nextcloud/default.nix +++ b/modules/system/services/nextcloud/default.nix @@ -46,7 +46,6 @@ in log_type = "file"; default_phone_region = "DE"; maintenance_window_start = "2"; # UTC - defaultapp = "side_menu"; }; configureRedis = true; diff --git a/modules/system/services/ntfy.nix b/modules/system/services/ntfy.nix index 7791bd4..d2411e6 100644 --- a/modules/system/services/ntfy.nix +++ b/modules/system/services/ntfy.nix @@ -1,8 +1,4 @@ -{ - config, - lib, - ... -}: +{ config, lib, ... }: let cfg = config.custom.services.ntfy; in diff --git a/modules/system/services/syncthing/default.nix b/modules/system/services/syncthing/default.nix index c536c21..65430a4 100644 --- a/modules/system/services/syncthing/default.nix +++ b/modules/system/services/syncthing/default.nix @@ -6,7 +6,7 @@ }: let cfg = config.custom.services.syncthing; - tsCfg = config.custom.services.tailscale; + tailscaleCfg = config.custom.services.tailscale; in { options.custom.services.syncthing = { @@ -21,7 +21,7 @@ in config = lib.mkIf cfg.enable { assertions = [ { - assertion = tsCfg.enable; + assertion = tailscaleCfg.enable; message = "syncthing requires tailscale"; } ]; @@ -44,7 +44,7 @@ in |> lib.mapAttrs ( name: value: { id = value.config.custom.services.syncthing.deviceId; - addresses = [ "tcp://${name}.${tsCfg.domain}:22000" ]; + addresses = [ "tcp://${name}.${tailscaleCfg.domain}:22000" ]; } ); diff --git a/modules/system/services/uptime-kuma/default.nix b/modules/system/services/uptime-kuma/default.nix index cc60bc9..b9b26a1 100644 --- a/modules/system/services/uptime-kuma/default.nix +++ b/modules/system/services/uptime-kuma/default.nix @@ -1,8 +1,4 @@ -{ - config, - lib, - ... -}: +{ config, lib, ... }: let cfg = config.custom.services.uptimeKuma; in diff --git a/modules/system/users/seb.nix b/modules/system/users/seb.nix index 25b1060..d7c430e 100644 --- a/modules/system/users/seb.nix +++ b/modules/system/users/seb.nix @@ -1,7 +1,7 @@ { config, - self, inputs, + self, pkgs, pkgs-unstable, lib, @@ -18,7 +18,7 @@ in zsh.enable = lib.mkEnableOption ""; homeManager = { enable = lib.mkEnableOption ""; - configPath = lib.mkOption { + configPaths = lib.mkOption { type = lib.types.listOf lib.types.path; default = [ "${self}/users/shared-home.nix" @@ -53,7 +53,7 @@ in inherit inputs self pkgs-unstable; }; - users.seb.imports = cfg.homeManager.configPath; + users.seb.imports = cfg.homeManager.configPaths; }; }) ]