Compare commits

...

3 commits

7 changed files with 152 additions and 148 deletions

View file

@ -4,11 +4,7 @@
system.stateVersion = "25.11";
custom =
let
privateDomain = config.custom.networking.overlay.domain;
in
{
custom = {
boot.loader.grub.enable = true;
networking = {
@ -30,7 +26,7 @@
syncthing = {
enable = true;
isServer = true;
gui.domain = "syncthing.${privateDomain}";
gui.domain = "syncthing.${config.custom.networking.overlay.domain}";
doBackups = true;
};
@ -40,40 +36,40 @@
web-services = {
atuin = {
enable = true;
domain = "atuin.${privateDomain}";
domain = "atuin.${config.custom.networking.overlay.domain}";
};
filebrowser = {
enable = true;
domain = "files.${privateDomain}";
domain = "files.${config.custom.networking.overlay.domain}";
doBackups = true;
};
radicale = {
enable = true;
domain = "dav.${privateDomain}";
domain = "dav.${config.custom.networking.overlay.domain}";
doBackups = true;
};
actualbudget = {
enable = true;
domain = "budget.${privateDomain}";
domain = "budget.${config.custom.networking.overlay.domain}";
doBackups = true;
};
karakeep = {
enable = true;
domain = "bookmarks.${privateDomain}";
domain = "bookmarks.${config.custom.networking.overlay.domain}";
};
grafana = {
enable = true;
domain = "grafana.${privateDomain}";
domain = "grafana.${config.custom.networking.overlay.domain}";
};
gatus = {
enable = true;
domain = "status.${privateDomain}";
domain = "status.${config.custom.networking.overlay.domain}";
generateDefaultEndpoints = true;
};
};

View file

@ -67,8 +67,6 @@
MAXTEMP=hwmon2/pwm2=100
MINSTART=hwmon2/pwm2=35
MINSTOP=hwmon2/pwm2=25
MINPWM=hwmon2/pwm2=0
MAXPWM=hwmon2/pwm2=255
'';
};
}

View file

@ -4,11 +4,7 @@
system.stateVersion = "25.11";
custom =
let
sproutedDomain = "sprouted.cloud";
in
{
custom = {
boot.loader.systemd-boot.enable = true;
networking = {
@ -30,47 +26,43 @@
];
};
web-services =
let
sstorkDomain = "sstork.dev";
in
{
web-services = {
personal-blog = {
enable = true;
domain = sstorkDomain;
domain = "sstork.dev";
};
forgejo = {
enable = true;
domain = "git.${sstorkDomain}";
domain = "git.sstork.dev";
doBackups = true;
};
outline = {
enable = true;
domain = "wiki.${sproutedDomain}";
domain = "wiki.sprouted.cloud";
doBackups = true;
};
it-tools = {
enable = true;
domain = "it-tools.${sproutedDomain}";
domain = "it-tools.sprouted.cloud";
};
networking-toolbox = {
enable = true;
domain = "net-tools.${sproutedDomain}";
domain = "net-tools.sprouted.cloud";
};
privatebin = {
enable = true;
domain = "pastebin.${sproutedDomain}";
domain = "pastebin.sprouted.cloud";
branding.name = "SproutedBin";
};
screego = {
enable = true;
domain = "mirror.${sproutedDomain}";
domain = "mirror.sprouted.cloud";
};
};
};

View file

@ -18,8 +18,11 @@
services = {
wpaperd.enable = true;
hypridle.enable = true;
cliphist.enable = true;
hypridle = {
enable = true;
lockCommand = "pidof hyprlock || hyprlock";
};
};
};

View file

@ -14,7 +14,13 @@
noctalia-shell.enable = true;
};
services.cliphist.enable = true;
services = {
cliphist.enable = true;
hypridle = {
enable = true;
lockCommand = "noctalia-shell ipc call lockScreen lock";
};
};
};
home.packages = [ pkgs.grimblast ];
@ -35,8 +41,8 @@
bind = SUPER, V, exec, $ipc launcher clipboard
# Manage session
bindrl = SUPER CONTROL, L, exec, $ipc lockScreen lock
bindrl = SUPER CONTROL, S, exec, $ipc sessionMenu lockAndSuspend
bindrl = SUPER CONTROL, L, exec, loginctl lock-session
bindrl = SUPER CONTROL, S, exec, systemctl sleep
'';
};
}

View file

@ -96,7 +96,7 @@
largeButtonsStyle = false;
countdownDuration = 3000;
};
idle.enabled = true;
idle.enabled = false;
audio.mprisBlacklist = [ "firefox" ];
network.bluetoothAutoConnect = false;
location = {

View file

@ -4,17 +4,26 @@
lib,
...
}:
let
cfg = config.custom.services.hypridle;
in
{
options.custom.services.hypridle.enable = lib.mkEnableOption "";
options.custom.services.hypridle = {
enable = lib.mkEnableOption "";
lockCommand = lib.mkOption {
type = lib.types.nonEmptyStr;
default = "";
};
};
config = lib.mkIf config.custom.services.hypridle.enable {
config = lib.mkIf cfg.enable {
services.hypridle = {
enable = true;
package = pkgs-unstable.hypridle;
settings = {
general = {
lock_cmd = lib.mkIf config.custom.programs.hyprlock.enable "pidof hyprlock || hyprlock";
lock_cmd = cfg.lockCommand;
before_sleep_cmd = "loginctl lock-session";
after_sleep_cmd = "hyprctl dispatch dpms on";
};