mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
Cleanup
This commit is contained in:
parent
e285ab3183
commit
9fb4a18ee5
11 changed files with 22 additions and 44 deletions
|
|
@ -2,8 +2,8 @@
|
||||||
config,
|
config,
|
||||||
inputs,
|
inputs,
|
||||||
self,
|
self,
|
||||||
lib,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,4 @@
|
||||||
{
|
{ config, lib, ... }@moduleArgs:
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}@moduleArgs:
|
|
||||||
let
|
let
|
||||||
cfg = config.custom.programs.hyprlock;
|
cfg = config.custom.programs.hyprlock;
|
||||||
in
|
in
|
||||||
|
|
@ -17,9 +13,11 @@ in
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
programs.hyprlock = {
|
programs.hyprlock = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
general.immediate_render = true;
|
general.immediate_render = true;
|
||||||
auth."fingerprint:enabled" = cfg.fprintAuth;
|
auth."fingerprint:enabled" = cfg.fprintAuth;
|
||||||
|
|
||||||
animations.enabled = false;
|
animations.enabled = false;
|
||||||
input-field.monitor = "";
|
input-field.monitor = "";
|
||||||
background = {
|
background = {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,4 @@
|
||||||
{
|
{ config, lib, ... }:
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
{
|
||||||
options.custom.services.hypridle.enable = lib.mkEnableOption "";
|
options.custom.services.hypridle.enable = lib.mkEnableOption "";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,4 @@
|
||||||
{
|
{ config, lib, ... }:
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
{
|
||||||
options.custom.de.hyprland.enable = lib.mkEnableOption "";
|
options.custom.de.hyprland.enable = lib.mkEnableOption "";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,4 @@
|
||||||
{
|
{ config, lib, ... }:
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
let
|
||||||
cfg = config.custom.services.actualbudget;
|
cfg = config.custom.services.actualbudget;
|
||||||
in
|
in
|
||||||
|
|
@ -20,10 +16,12 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
users.groups.actual = { };
|
users = {
|
||||||
users.users.actual = {
|
groups.actual = { };
|
||||||
isSystemUser = true;
|
users.actual = {
|
||||||
group = "actual";
|
isSystemUser = true;
|
||||||
|
group = config.users.groups.actual.name;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.actual = {
|
services.actual = {
|
||||||
|
|
|
||||||
|
|
@ -42,8 +42,7 @@ in
|
||||||
|
|
||||||
# environmentFile = config.sops.templates."hedgedoc/environment".path;
|
# environmentFile = config.sops.templates."hedgedoc/environment".path;
|
||||||
settings = {
|
settings = {
|
||||||
domain = cfg.domain;
|
inherit (cfg) domain port;
|
||||||
inherit (cfg) port;
|
|
||||||
protocolUseSSL = true;
|
protocolUseSSL = true;
|
||||||
allowAnonymous = false;
|
allowAnonymous = false;
|
||||||
allowEmailRegister = false;
|
allowEmailRegister = false;
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,6 @@ in
|
||||||
log_type = "file";
|
log_type = "file";
|
||||||
default_phone_region = "DE";
|
default_phone_region = "DE";
|
||||||
maintenance_window_start = "2"; # UTC
|
maintenance_window_start = "2"; # UTC
|
||||||
defaultapp = "side_menu";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
configureRedis = true;
|
configureRedis = true;
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,4 @@
|
||||||
{
|
{ config, lib, ... }:
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
let
|
||||||
cfg = config.custom.services.ntfy;
|
cfg = config.custom.services.ntfy;
|
||||||
in
|
in
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
cfg = config.custom.services.syncthing;
|
cfg = config.custom.services.syncthing;
|
||||||
tsCfg = config.custom.services.tailscale;
|
tailscaleCfg = config.custom.services.tailscale;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.custom.services.syncthing = {
|
options.custom.services.syncthing = {
|
||||||
|
|
@ -21,7 +21,7 @@ in
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
assertions = [
|
assertions = [
|
||||||
{
|
{
|
||||||
assertion = tsCfg.enable;
|
assertion = tailscaleCfg.enable;
|
||||||
message = "syncthing requires tailscale";
|
message = "syncthing requires tailscale";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
@ -44,7 +44,7 @@ in
|
||||||
|> lib.mapAttrs (
|
|> lib.mapAttrs (
|
||||||
name: value: {
|
name: value: {
|
||||||
id = value.config.custom.services.syncthing.deviceId;
|
id = value.config.custom.services.syncthing.deviceId;
|
||||||
addresses = [ "tcp://${name}.${tsCfg.domain}:22000" ];
|
addresses = [ "tcp://${name}.${tailscaleCfg.domain}:22000" ];
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,4 @@
|
||||||
{
|
{ config, lib, ... }:
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
let
|
||||||
cfg = config.custom.services.uptimeKuma;
|
cfg = config.custom.services.uptimeKuma;
|
||||||
in
|
in
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
self,
|
|
||||||
inputs,
|
inputs,
|
||||||
|
self,
|
||||||
pkgs,
|
pkgs,
|
||||||
pkgs-unstable,
|
pkgs-unstable,
|
||||||
lib,
|
lib,
|
||||||
|
|
@ -18,7 +18,7 @@ in
|
||||||
zsh.enable = lib.mkEnableOption "";
|
zsh.enable = lib.mkEnableOption "";
|
||||||
homeManager = {
|
homeManager = {
|
||||||
enable = lib.mkEnableOption "";
|
enable = lib.mkEnableOption "";
|
||||||
configPath = lib.mkOption {
|
configPaths = lib.mkOption {
|
||||||
type = lib.types.listOf lib.types.path;
|
type = lib.types.listOf lib.types.path;
|
||||||
default = [
|
default = [
|
||||||
"${self}/users/shared-home.nix"
|
"${self}/users/shared-home.nix"
|
||||||
|
|
@ -53,7 +53,7 @@ in
|
||||||
inherit inputs self pkgs-unstable;
|
inherit inputs self pkgs-unstable;
|
||||||
};
|
};
|
||||||
|
|
||||||
users.seb.imports = cfg.homeManager.configPath;
|
users.seb.imports = cfg.homeManager.configPaths;
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue