feat: add corectrl module
This commit is contained in:
parent
d6ce0a7f61
commit
43d4b8ab04
@ -127,6 +127,8 @@ in
|
|||||||
wal_init_zero = "off";
|
wal_init_zero = "off";
|
||||||
wal_recycle = "off";
|
wal_recycle = "off";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ataraxia.programs.corectrl.enable = true;
|
||||||
ataraxia.programs.steam.enable = true;
|
ataraxia.programs.steam.enable = true;
|
||||||
ataraxia.vpn.sing-box.enable = true;
|
ataraxia.vpn.sing-box.enable = true;
|
||||||
ataraxia.vpn.sing-box.config = "ataraxia-singbox";
|
ataraxia.vpn.sing-box.config = "ataraxia-singbox";
|
||||||
|
36
modules/nixos/applications/corectrl.nix
Normal file
36
modules/nixos/applications/corectrl.nix
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
options,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
inherit (builtins) hasAttr;
|
||||||
|
inherit (lib) mkEnableOption mkIf;
|
||||||
|
cfg = config.ataraxia.programs.corectrl;
|
||||||
|
defaultUser = config.ataraxia.defaults.users.defaultUser;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.ataraxia.programs.corectrl = {
|
||||||
|
enable = mkEnableOption "Enable corectrl program";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.corectrl = {
|
||||||
|
enable = true;
|
||||||
|
gpuOverclock.enable = true;
|
||||||
|
# gpuOverclock.ppfeaturemask = "0xffffffff";
|
||||||
|
};
|
||||||
|
|
||||||
|
home-manager = mkIf (hasAttr "home-manager" options) {
|
||||||
|
users.${defaultUser} = {
|
||||||
|
startupApplications = [ "${pkgs.corectrl}/bin/corectrl" ];
|
||||||
|
|
||||||
|
persist.state.directories = [
|
||||||
|
".config/corectrl"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user