Rename modules auto-cpufreq and boot-loader

This commit is contained in:
SebastianStork 2024-03-15 09:42:06 +01:00
parent e50ba91241
commit bb1a8c5b44
4 changed files with 8 additions and 8 deletions

View file

@ -7,7 +7,7 @@
networking.hostName = "dell-laptop"; networking.hostName = "dell-laptop";
myConfig = { myConfig = {
boot.systemd.enable = true; boot-loader.systemd-boot.enable = true;
dm.lightdm.enable = true; dm.lightdm.enable = true;
de.qtile.enable = true; de.qtile.enable = true;
@ -22,7 +22,7 @@
vpn.lgs.enable = true; vpn.lgs.enable = true;
comma.enable = true; comma.enable = true;
sops.enable = true; sops.enable = true;
powersave.enable = true; auto-cpufreq.enable = true;
doas.enable = false; doas.enable = false;
}; };

View file

@ -3,9 +3,9 @@
lib, lib,
... ...
}: { }: {
options.myConfig.powersave.enable = lib.mkEnableOption ""; options.myConfig.auto-cpufreq.enable = lib.mkEnableOption "";
config = lib.mkIf config.myConfig.powersave.enable { config = lib.mkIf config.myConfig.auto-cpufreq.enable {
services.auto-cpufreq = { services.auto-cpufreq = {
enable = true; enable = true;
settings = { settings = {

View file

@ -3,9 +3,9 @@
lib, lib,
... ...
}: { }: {
options.myConfig.boot.systemd.enable = lib.mkEnableOption ""; options.myConfig.boot-loader.systemd-boot.enable = lib.mkEnableOption "";
config = lib.mkIf config.myConfig.boot.systemd.enable { config = lib.mkIf config.myConfig.boot-loader.systemd-boot.enable {
boot.tmp.cleanOnBoot = true; boot.tmp.cleanOnBoot = true;
boot.loader = { boot.loader = {
systemd-boot = { systemd-boot = {

View file

@ -9,11 +9,11 @@
./auto-gc.nix ./auto-gc.nix
./sops.nix ./sops.nix
./bluetooth.nix ./bluetooth.nix
./powersave.nix ./auto-cpufreq.nix
./x-input.nix ./x-input.nix
./de.nix ./de.nix
./dm.nix ./dm.nix
./sound.nix ./sound.nix
./boot.nix ./boot-loader.nix
]; ];
} }