Compare commits
2 commits
ffbca576ff
...
9aa9ce6dfe
Author | SHA1 | Date | |
---|---|---|---|
9aa9ce6dfe | |||
eb4e36de4f |
3 changed files with 27 additions and 0 deletions
|
@ -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
20
modules/power-button.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue