Compare commits

...

2 Commits

Author SHA1 Message Date
148597d593 refactor(fruitbook): niri 대신에 dms로 잠금
All checks were successful
build / build (push) Successful in 1m47s
2026-03-22 01:27:45 -06:00
087f015340 fix(fruitbook): 전지 그림을 보임
그런데 한 거만 해야 돼: upower을 켰어.
2026-03-22 01:18:52 -06:00
4 changed files with 23 additions and 9 deletions

View File

@@ -20,6 +20,7 @@
sydpkgs.overlay.enable = true;
dank-material-shell.enable = true;
kdeconnect.enable = true;
upower.enable = true;
users.users = [
# "crumb"

View File

@@ -21,9 +21,5 @@ in {
"DankMaterialShell/settings.json".source =
json.generate "settings.json" cfg.settings;
};
programs.niri.settings.switch-events = {
lid-close.action.spawn = ["dms" "ipc" "lock" "lock"];
};
};
}

View File

@@ -1,6 +1,11 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, host, ... }:
let cfg = config.sydnix.users.msyds.dank-material-shell;
let
cfg = config.sydnix.users.msyds.dank-material-shell;
on = hosts:
if builtins.isString hosts
then hosts == host
else builtins.elem host hosts;
in {
options.sydnix.users.msyds.dank-material-shell = {
enable = lib.mkEnableOption "Dank Material Shell";
@@ -167,7 +172,7 @@ in {
showControlCenterButton = true;
showCapsLockIndicator = true;
controlCenterShowNetworkIcon = true;
controlCenterShowBluetoothIcon = true;
controlCenterShowBluetoothIcon = on ["fruitbook"];
controlCenterShowAudioIcon = true;
controlCenterShowVpnIcon = true;
controlCenterShowBrightnessIcon = false;
@@ -286,9 +291,9 @@ in {
batterySuspendTimeout = 0;
batterySuspendBehavior = 0;
batteryProfileName = "";
lockBeforeSuspend = false;
lockBeforeSuspend = true;
loginctlLockIntegration = true;
fadeToLockEnabled = false;
fadeToLockEnabled = true;
fadeToLockGracePeriod = 5;
launchPrefix = "";
brightnessDevicePins = {};

12
modules/nixos/upower.nix Normal file
View File

@@ -0,0 +1,12 @@
{ config, lib, pkgs, ... }:
let cfg = config.sydnix.upower;
in {
options.sydnix.upower = {
enable = lib.mkEnableOption "UPower";
};
config = lib.mkIf cfg.enable {
services.upower.enable = true;
};
}