completely refactor and modularize flake

This commit is contained in:
willifan 2024-12-26 23:10:52 +01:00
parent 3b1ed7e281
commit b7210fcf8e
141 changed files with 884 additions and 2605 deletions

View file

@ -0,0 +1,16 @@
{ ... }:
{
services.auto-cpufreq = {
enable = true;
settings = {
battery = {
governor = "powersave";
turbo = "never";
};
charger = {
governor = "powersave";
turbo = "never";
};
};
};
}

View file

@ -0,0 +1,6 @@
{ pkgs, ... }:
{
services.udev.extraRules = ''
ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="intel_backlight", MODE="0666", RUN+="${pkgs.coreutils}/bin/chmod a+w /sys/class/backlight/%k/brightness"
'';
}

View file

@ -1,14 +1,20 @@
{ ... }:
{
imports = [
./auto-cpufreq.nix
./backlight.nix
./hardware-configuration.nix
#./disko.nix
../../modules/DEFAULT/COMMON
../../modules/DEFAULT/DESKTOP
../../modules/HOME-MANAGER/COMMON
../../modules/default
];
desktop = {
enable = true;
hyprland.hardware.Lenni.enable = true;
};
common.syncthing = {
enable = true;
devices = {
@ -16,4 +22,7 @@
};
};
hardware.bluetooth.enable = true;
services.hardware.bolt.enable = true;
}