Compare commits
2 Commits
ab7d28ac0f
...
148597d593
| Author | SHA1 | Date | |
|---|---|---|---|
| 148597d593 | |||
| 087f015340 |
@@ -20,6 +20,7 @@
|
|||||||
sydpkgs.overlay.enable = true;
|
sydpkgs.overlay.enable = true;
|
||||||
dank-material-shell.enable = true;
|
dank-material-shell.enable = true;
|
||||||
kdeconnect.enable = true;
|
kdeconnect.enable = true;
|
||||||
|
upower.enable = true;
|
||||||
|
|
||||||
users.users = [
|
users.users = [
|
||||||
# "crumb"
|
# "crumb"
|
||||||
|
|||||||
@@ -21,9 +21,5 @@ in {
|
|||||||
"DankMaterialShell/settings.json".source =
|
"DankMaterialShell/settings.json".source =
|
||||||
json.generate "settings.json" cfg.settings;
|
json.generate "settings.json" cfg.settings;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.niri.settings.switch-events = {
|
|
||||||
lid-close.action.spawn = ["dms" "ipc" "lock" "lock"];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 {
|
in {
|
||||||
options.sydnix.users.msyds.dank-material-shell = {
|
options.sydnix.users.msyds.dank-material-shell = {
|
||||||
enable = lib.mkEnableOption "Dank Material Shell";
|
enable = lib.mkEnableOption "Dank Material Shell";
|
||||||
@@ -167,7 +172,7 @@ in {
|
|||||||
showControlCenterButton = true;
|
showControlCenterButton = true;
|
||||||
showCapsLockIndicator = true;
|
showCapsLockIndicator = true;
|
||||||
controlCenterShowNetworkIcon = true;
|
controlCenterShowNetworkIcon = true;
|
||||||
controlCenterShowBluetoothIcon = true;
|
controlCenterShowBluetoothIcon = on ["fruitbook"];
|
||||||
controlCenterShowAudioIcon = true;
|
controlCenterShowAudioIcon = true;
|
||||||
controlCenterShowVpnIcon = true;
|
controlCenterShowVpnIcon = true;
|
||||||
controlCenterShowBrightnessIcon = false;
|
controlCenterShowBrightnessIcon = false;
|
||||||
@@ -286,9 +291,9 @@ in {
|
|||||||
batterySuspendTimeout = 0;
|
batterySuspendTimeout = 0;
|
||||||
batterySuspendBehavior = 0;
|
batterySuspendBehavior = 0;
|
||||||
batteryProfileName = "";
|
batteryProfileName = "";
|
||||||
lockBeforeSuspend = false;
|
lockBeforeSuspend = true;
|
||||||
loginctlLockIntegration = true;
|
loginctlLockIntegration = true;
|
||||||
fadeToLockEnabled = false;
|
fadeToLockEnabled = true;
|
||||||
fadeToLockGracePeriod = 5;
|
fadeToLockGracePeriod = 5;
|
||||||
launchPrefix = "";
|
launchPrefix = "";
|
||||||
brightnessDevicePins = {};
|
brightnessDevicePins = {};
|
||||||
|
|||||||
12
modules/nixos/upower.nix
Normal file
12
modules/nixos/upower.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user