Compare commits

..

2 Commits

Author SHA1 Message Date
Zynh Ludwig 9aa9ce6dfe power-button: module init 2024-09-17 03:54:00 -07:00
Zynh Ludwig 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.audio.enable = lib.mkDefault true;
snowhawk.env.enable = lib.mkDefault true; snowhawk.env.enable = lib.mkDefault true;
snowhawk.sops.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"; path = "/home/ravenshade/obsidian";
devices = [ "msiserver" "macbook" "s22" ]; devices = [ "msiserver" "macbook" "s22" ];
}; };
"sync" = {
id = "default";
label = "sync";
path = "/home/ravenshade/sync";
devices = [ "macbook" ];
};
}; };
gui = { gui = {