superfreq: init
This commit is contained in:
parent
1cbe5d7e2a
commit
78afacde79
6 changed files with 48 additions and 2 deletions
|
|
@ -49,10 +49,13 @@
|
||||||
oxidash.url = "github:Xetibo/OxiDash";
|
oxidash.url = "github:Xetibo/OxiDash";
|
||||||
oxipaste.url = "github:Xetibo/OxiPaste";
|
oxipaste.url = "github:Xetibo/OxiPaste";
|
||||||
oxirun.url = "github:Xetibo/OxiRun";
|
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.url = "github:Xetibo/ReSet";
|
||||||
reset-plugins.url = "github:Xetibo/ReSet-Plugins";
|
reset-plugins.url = "github:Xetibo/ReSet-Plugins";
|
||||||
|
|
||||||
|
superfreq.url = "github:NotAShelf/superfreq";
|
||||||
|
|
||||||
# absolute insanity
|
# absolute insanity
|
||||||
chaoticNyx.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
|
chaoticNyx.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,7 @@
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
inputs.stylix.nixosModules.stylix
|
inputs.stylix.nixosModules.stylix
|
||||||
inputs.disko.nixosModules.disko
|
inputs.disko.nixosModules.disko
|
||||||
|
inputs.superfreq.nixosModules.default
|
||||||
../base
|
../base
|
||||||
../home
|
../home
|
||||||
../modules
|
../modules
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,7 @@
|
||||||
./starship.nix
|
./starship.nix
|
||||||
./streamcontroller.nix
|
./streamcontroller.nix
|
||||||
./stylix.nix
|
./stylix.nix
|
||||||
|
./superfreq.nix
|
||||||
./supersonic.nix
|
./supersonic.nix
|
||||||
./sway.nix
|
./sway.nix
|
||||||
./teams.nix
|
./teams.nix
|
||||||
|
|
|
||||||
|
|
@ -417,6 +417,7 @@ in {
|
||||||
|
|
||||||
# other programs
|
# other programs
|
||||||
"${browserName}"
|
"${browserName}"
|
||||||
|
(lib.mkIf config.mods.oxi.hyprdock.enable "hyprdock --server")
|
||||||
(lib.mkIf config.mods.hypr.hyprpaper.enable "hyprpaper")
|
(lib.mkIf config.mods.hypr.hyprpaper.enable "hyprpaper")
|
||||||
(lib.mkIf config.mods.hypr.hyprland.useIronbar "ironbar")
|
(lib.mkIf config.mods.hypr.hyprland.useIronbar "ironbar")
|
||||||
(lib.mkIf config.mods.oxi.oxipaste.enable "oxipaste_daemon")
|
(lib.mkIf config.mods.oxi.oxipaste.enable "oxipaste_daemon")
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,12 @@
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
description = "Enables hyprdock";
|
description = "Enables hyprdock";
|
||||||
};
|
};
|
||||||
|
settings = lib.mkOption {
|
||||||
|
default = {};
|
||||||
|
example = {};
|
||||||
|
type = with lib.types; attrsOf anything;
|
||||||
|
description = "settings for hyprdock";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
oxicalc = {
|
oxicalc = {
|
||||||
enable = lib.mkOption {
|
enable = lib.mkOption {
|
||||||
|
|
@ -47,7 +53,10 @@
|
||||||
config = lib.mkIf config.mods.oxi.enable (
|
config = lib.mkIf config.mods.oxi.enable (
|
||||||
lib.optionalAttrs (options ? home.packages) {
|
lib.optionalAttrs (options ? home.packages) {
|
||||||
programs = {
|
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;
|
oxicalc.enable = lib.mkIf config.mods.oxi.oxicalc.enable true;
|
||||||
ReSet = lib.mkIf config.mods.oxi.ReSet.enable {
|
ReSet = lib.mkIf config.mods.oxi.ReSet.enable {
|
||||||
enable = true;
|
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