superfreq: init
This commit is contained in:
parent
1cbe5d7e2a
commit
78afacde79
6 changed files with 48 additions and 2 deletions
|
|
@ -41,6 +41,7 @@
|
|||
./starship.nix
|
||||
./streamcontroller.nix
|
||||
./stylix.nix
|
||||
./superfreq.nix
|
||||
./supersonic.nix
|
||||
./sway.nix
|
||||
./teams.nix
|
||||
|
|
|
|||
|
|
@ -417,6 +417,7 @@ in {
|
|||
|
||||
# other programs
|
||||
"${browserName}"
|
||||
(lib.mkIf config.mods.oxi.hyprdock.enable "hyprdock --server")
|
||||
(lib.mkIf config.mods.hypr.hyprpaper.enable "hyprpaper")
|
||||
(lib.mkIf config.mods.hypr.hyprland.useIronbar "ironbar")
|
||||
(lib.mkIf config.mods.oxi.oxipaste.enable "oxipaste_daemon")
|
||||
|
|
|
|||
|
|
@ -34,6 +34,12 @@
|
|||
type = lib.types.bool;
|
||||
description = "Enables hyprdock";
|
||||
};
|
||||
settings = lib.mkOption {
|
||||
default = {};
|
||||
example = {};
|
||||
type = with lib.types; attrsOf anything;
|
||||
description = "settings for hyprdock";
|
||||
};
|
||||
};
|
||||
oxicalc = {
|
||||
enable = lib.mkOption {
|
||||
|
|
@ -47,7 +53,10 @@
|
|||
config = lib.mkIf config.mods.oxi.enable (
|
||||
lib.optionalAttrs (options ? home.packages) {
|
||||
programs = {
|
||||
hyprdock.enable = lib.mkIf config.mods.oxi.hyprdock.enable true;
|
||||
hyprdock = {
|
||||
enable = config.mods.oxi.hyprdock.enable;
|
||||
settings = config.mods.oxi.hyprdock.settings;
|
||||
};
|
||||
oxicalc.enable = lib.mkIf config.mods.oxi.oxicalc.enable true;
|
||||
ReSet = lib.mkIf config.mods.oxi.ReSet.enable {
|
||||
enable = true;
|
||||
|
|
@ -65,5 +74,8 @@
|
|||
};
|
||||
};
|
||||
}
|
||||
// lib.optionalAttrs (options ? services.logind) {
|
||||
services.logind.lidSwitchExternalPower = "ignore";
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
28
modules/programs/superfreq.nix
Normal file
28
modules/programs/superfreq.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
lib,
|
||||
options,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options.mods.superfreq = {
|
||||
enable = lib.mkOption {
|
||||
default = false;
|
||||
example = true;
|
||||
type = lib.types.bool;
|
||||
description = ''Enables superfreq'';
|
||||
};
|
||||
settings = lib.mkOption {
|
||||
default = {};
|
||||
example = {};
|
||||
type = with lib.types; attrsOf anything;
|
||||
description = ''Superfreq config'';
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.optionalAttrs (options ? services.superfreq) {
|
||||
services.superfreq = {
|
||||
enable = config.mods.superfreq.enable;
|
||||
settings = config.mods.superfreq.settings;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue