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

@ -15,12 +15,12 @@
./nfs.nix
./radicale.nix
../../modules/DEFAULT/COMMON
../../modules/DEFAULT/SERVER
../../modules/HOME-MANAGER/COMMON
../../modules/default
];
server.enable = true;
common.syncthing = {
enable = true;
devices = {

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

View file

@ -3,10 +3,20 @@
imports = [
./hardware-configuration.nix
./disko.nix
./jovian.nix
../../modules/DEFAULT/COMMON
../../modules/DEFAULT/DESKTOP
../../modules/HOME-MANAGER/COMMON
../../modules/default
];
desktop = {
enable = true;
autostart.enable = false;
hyprland = {
hardware.Lillie = true;
};
};
}

47
hosts/Lillie/jovian.nix Normal file
View file

@ -0,0 +1,47 @@
{ pkgs, ... }:
{
jovian = {
decky-loader = {
enable = true;
user = "willifan";
extraPackages = with pkgs; [
# Generic packages
curl
unzip
util-linux
gnugrep
readline.out
procps
pciutils
libpulseaudio
# SimpleDeckyTDP
ryzenadj # actual TDP util
kmod # modprobe for acpi_call check
];
extraPythonPackages = pythonPackages: with pythonPackages; [
pyyaml # hhd-decky
aiohttp
certifi
];
};
devices.steamdeck = {
enable = true;
enableGyroDsuService = true;
};
hardware.has.amd.gpu = true;
steam = {
enable = true;
user = "willifan";
autoStart = true;
desktopSession = "hyprland";
};
};
environment.systemPackages = with pkgs; [
python3
];
}

View file

@ -4,12 +4,20 @@
./hardware-configuration.nix
./disko.nix
../../modules/DEFAULT/COMMON
../../modules/DEFAULT/DESKTOP
../../modules/HOME-MANAGER/COMMON
../../modules/default
];
desktop = {
enable = true;
hyprlock.enable = false;
hypridle.enable = false;
hyprland = {
hardware.Puenktchen = true;
};
};
common.syncthing = {
enable = true;
devices = {