Compare commits

...

2 commits

Author SHA1 Message Date
9aa9ce6dfe power-button: module init 2024-09-17 03:54:00 -07:00
eb4e36de4f syncthing: include default folder sync 2024-09-15 01:43:22 -07:00
3 changed files with 27 additions and 0 deletions

View file

@ -14,4 +14,5 @@ in
snowhawk.audio.enable = lib.mkDefault true;
snowhawk.env.enable = lib.mkDefault true;
snowhawk.sops.enable = lib.mkDefault true;
snowhawk.power-button.enable = lib.mkDefault true;
}

20
modules/power-button.nix Normal file
View file

@ -0,0 +1,20 @@
{ config, lib }:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.snowhawk.power-button;
in
{
options.snowhawk.power-button = {
enable = mkEnableOption "power-button nixos module";
};
config = mkIf cfg.enable {
services.logind = {
powerKey = "suspend";
powerKeyLongPress = "poweroff";
};
};
}

View file

@ -36,6 +36,12 @@ in
path = "/home/ravenshade/obsidian";
devices = [ "msiserver" "macbook" "s22" ];
};
"sync" = {
id = "default";
label = "sync";
path = "/home/ravenshade/sync";
devices = [ "macbook" ];
};
};
gui = {