superfreq: init

This commit is contained in:
DashieTM 2025-05-16 21:52:32 +02:00
parent 1cbe5d7e2a
commit 78afacde79
6 changed files with 48 additions and 2 deletions

View file

@ -49,10 +49,13 @@
oxidash.url = "github:Xetibo/OxiDash";
oxipaste.url = "github:Xetibo/OxiPaste";
oxirun.url = "github:Xetibo/OxiRun";
hyprdock.url = "github:Xetibo/hyprdock";
# For now until merged into Xetibo
hyprdock.url = "github:DashieTM/hyprdock";
reset.url = "github:Xetibo/ReSet";
reset-plugins.url = "github:Xetibo/ReSet-Plugins";
superfreq.url = "github:NotAShelf/superfreq";
# absolute insanity
chaoticNyx.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";

View file

@ -49,6 +49,7 @@
inputs.home-manager.nixosModules.home-manager
inputs.stylix.nixosModules.stylix
inputs.disko.nixosModules.disko
inputs.superfreq.nixosModules.default
../base
../home
../modules

View file

@ -41,6 +41,7 @@
./starship.nix
./streamcontroller.nix
./stylix.nix
./superfreq.nix
./supersonic.nix
./sway.nix
./teams.nix

View file

@ -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")

View file

@ -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";
}
);
}

View 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;
};
};
}