mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 06:52:13 +05:30
Split system config into tons of modules!
This commit is contained in:
parent
74c00ca4ef
commit
8262f63886
21 changed files with 266 additions and 180 deletions
7
system/hardware/bluetooth.nix
Normal file
7
system/hardware/bluetooth.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Bluetooth
|
||||
hardware.bluetooth.enable = true;
|
||||
services.blueman.enable = true;
|
||||
}
|
6
system/hardware/opengl.nix
Normal file
6
system/hardware/opengl.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# OpenGL
|
||||
hardware.opengl.enable = true;
|
||||
}
|
11
system/hardware/openrgb.nix
Normal file
11
system/hardware/openrgb.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [ pkgs.openrgb-with-all-plugins ];
|
||||
|
||||
# OpenRGB setup
|
||||
services.hardware.openrgb = {
|
||||
enable = true;
|
||||
motherboard = "amd";
|
||||
};
|
||||
}
|
9
system/hardware/power.nix
Normal file
9
system/hardware/power.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [ pkgs.auto-cpufreq ];
|
||||
systemd.services.auto-cpufreq.enable = true;
|
||||
|
||||
services.upower.enable = true;
|
||||
systemd.services.upower.enable = true;
|
||||
}
|
9
system/hardware/printing.nix
Normal file
9
system/hardware/printing.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Enable printing
|
||||
services.printing.enable = true;
|
||||
services.avahi.enable = true;
|
||||
services.avahi.nssmdns = true;
|
||||
services.avahi.openFirewall = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue