Revamp
This commit is contained in:
parent
e06b409221
commit
2c37447ec3
26 changed files with 861 additions and 494 deletions
20
modules/nixos/system.nix
Normal file
20
modules/nixos/system.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkMerge;
|
||||
in
|
||||
{
|
||||
config = mkMerge [
|
||||
(mkIf config.services.hardware.openrgb.enable {
|
||||
system.activationScripts.openrgbOff = ''
|
||||
mkdir -p /var/lib/OpenRGB
|
||||
cp ${../../config/openrgb/off.orp} /var/lib/OpenRGB/off.orp
|
||||
chmod 0644 /var/lib/OpenRGB/off.orp
|
||||
'';
|
||||
})
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue