-
-
Notifications
You must be signed in to change notification settings - Fork 430
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ config, lib, pkgs, ... }: | ||
|
||
let | ||
cfg = config.system.startup; | ||
in | ||
|
||
{ | ||
meta.maintainers = [ | ||
lib.maintainers.samasaur or "samasaur" | ||
]; | ||
|
||
options = { | ||
system.startup.chime = lib.mkOption { | ||
type = with lib.types; nullOr bool; | ||
default = null; | ||
example = false; | ||
description = lib.mdDoc '' | ||
Whether to enable the startup chime. | ||
By default, this option does not affect your system configuration in any way. | ||
However, this means that after it has been set once, unsetting it will not | ||
return to the old behavior. It will allow the setting to be controlled in | ||
System Settings, though. | ||
''; | ||
}; | ||
}; | ||
|
||
config = { | ||
system.nvram.variables."StartupMute" = lib.mkIf (cfg.chime != null) (if cfg.chime then "%00" else "%01"); | ||
}; | ||
} |