Switch to lix
This commit is contained in:
parent
764a05c73c
commit
d0c6f19a09
22 changed files with 544 additions and 632 deletions
34
machines/persephone/hardware.nix
Normal file
34
machines/persephone/hardware.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
# I2C
|
||||
environment.systemPackages = with pkgs; [
|
||||
i2c-tools
|
||||
lm_sensors
|
||||
];
|
||||
|
||||
boot.kernelModules = [ "i2c-dev" ];
|
||||
boot.blacklistedKernelModules = [
|
||||
# The spd5118 driver is in conflict with openrgb by holding onto I2C adresses when using Kingston Fury DRAM.
|
||||
# On boot, I need to access those i2c regions in other to poweroff the RGB lighting.
|
||||
# Then, I manually enable the kernel module in any script.
|
||||
# It's possible to let this module disabled, but I lose the ability to get temperature values for the DIMMs.
|
||||
# https://gitlab.com/CalcProgrammer1/OpenRGB/-/merge_requests/2557
|
||||
"spd5118"
|
||||
];
|
||||
|
||||
hardware.i2c.enable = true;
|
||||
|
||||
# OpenRGB
|
||||
services.udev.packages = [ pkgs.openrgb ];
|
||||
services.hardware.openrgb = {
|
||||
enable = true;
|
||||
startupProfile = "off";
|
||||
};
|
||||
|
||||
system.activationScripts.openrgbOff = ''
|
||||
mkdir -p /var/lib/OpenRGB
|
||||
cp ${./off.orp} /var/lib/OpenRGB/off.orp
|
||||
chmod 0644 /var/lib/OpenRGB/off.orp
|
||||
'';
|
||||
}
|
||||
51
machines/persephone/networking.nix
Normal file
51
machines/persephone/networking.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
|
||||
networking.hostName = "persephone";
|
||||
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
|
||||
networking.wireless.iwd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
General = {
|
||||
EnableNetworkConfiguration = false; # Let dhcpcd handle this
|
||||
};
|
||||
Network = {
|
||||
EnableIPv6 = true;
|
||||
NameResolvingService = "systemd";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking.dhcpcd = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
nohook resolv.conf # Don't let dhcpcd manage resolv.conf
|
||||
'';
|
||||
};
|
||||
|
||||
networking.resolvconf.enable = false;
|
||||
|
||||
services.avahi.enable = true;
|
||||
|
||||
services.resolved = {
|
||||
enable = true;
|
||||
|
||||
dnssec = "true";
|
||||
domains = [ "~." ];
|
||||
fallbackDns = [
|
||||
"9.9.9.9#dns.quad9.net"
|
||||
"149.112.112.112#dns.quad9.net"
|
||||
"2620:fe::fe#dns.quad9.net"
|
||||
"2620:fe::9#dns.quad9.net"
|
||||
];
|
||||
|
||||
extraConfig = ''
|
||||
DNSOverTLS=yes
|
||||
'';
|
||||
};
|
||||
|
||||
services.openssh.enable = true;
|
||||
}
|
||||
BIN
machines/persephone/off.orp
Normal file
BIN
machines/persephone/off.orp
Normal file
Binary file not shown.
17
machines/persephone/remove_systemd_service.patch
Normal file
17
machines/persephone/remove_systemd_service.patch
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
diff --git a/OpenRGB.pro b/OpenRGB.pro
|
||||
index df7082b6..0022e5fa 100644
|
||||
--- a/OpenRGB.pro
|
||||
+++ b/OpenRGB.pro
|
||||
@@ -588,9 +588,9 @@ contains(QMAKE_PLATFORM, linux) {
|
||||
icon.files+=qt/org.openrgb.OpenRGB.png
|
||||
metainfo.path=$$PREFIX/share/metainfo/
|
||||
metainfo.files+=qt/org.openrgb.OpenRGB.metainfo.xml
|
||||
- systemd_service.path=/etc/systemd/system
|
||||
- systemd_service.files+=qt/openrgb.service
|
||||
- INSTALLS += target desktop icon metainfo udev_rules systemd_service
|
||||
+ # systemd_service.path=/etc/systemd/system
|
||||
+ # systemd_service.files+=qt/openrgb.service
|
||||
+ INSTALLS += target desktop icon metainfo udev_rules # systemd_service
|
||||
}
|
||||
|
||||
#-----------------------------------------------------------------------------------------------#
|
||||
Loading…
Add table
Add a link
Reference in a new issue