aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--overlays/default.nix24
-rw-r--r--snowfall/overlays/openrgb/default.nix20
2 files changed, 20 insertions, 24 deletions
diff --git a/overlays/default.nix b/overlays/default.nix
deleted file mode 100644
index c7ab079..0000000
--- a/overlays/default.nix
+++ /dev/null
@@ -1,24 +0,0 @@
-{ config, pkgs, lib, ... }:
-
-{
- nixpkgs.overlays = [
- (final: prev: {
- openrgb = prev.openrgb.overrideAttrs (old: {
- src = prev.fetchFromGitLab {
- owner = "CalcProgrammer1";
- repo = "OpenRGB";
- rev = "44c839c1160864c25170306bc1ab392333a682af";
- hash = "sha256-k/Rt8VgaZJGktKj/Lv9G/EwtFykk1n1K2Mc3unEpF48=";
- };
-
- postPatch = ''
- patchShebangs scripts/build-udev-rules.sh
- substituteInPlace scripts/build-udev-rules.sh \
- --replace /bin/chmod "${prev.coreutils}/bin/chmod"
- substituteInPlace scripts/build-udev-rules.sh \
- --replace /usr/bin/env "${prev.coreutils}/bin/env"
- '';
- });
- })
- ];
-} \ No newline at end of file
diff --git a/snowfall/overlays/openrgb/default.nix b/snowfall/overlays/openrgb/default.nix
new file mode 100644
index 0000000..b86ad86
--- /dev/null
+++ b/snowfall/overlays/openrgb/default.nix
@@ -0,0 +1,20 @@
+{ ... }:
+
+final: prev: {
+ openrgb = prev.openrgb.overrideAttrs (old: {
+ src = prev.fetchFromGitLab {
+ owner = "CalcProgrammer1";
+ repo = "OpenRGB";
+ rev = "44c839c1160864c25170306bc1ab392333a682af";
+ hash = "sha256-k/Rt8VgaZJGktKj/Lv9G/EwtFykk1n1K2Mc3unEpF48=";
+ };
+
+ postPatch = ''
+ patchShebangs scripts/build-udev-rules.sh
+ substituteInPlace scripts/build-udev-rules.sh \
+ --replace /bin/chmod "${prev.coreutils}/bin/chmod"
+ substituteInPlace scripts/build-udev-rules.sh \
+ --replace /usr/bin/env "${prev.coreutils}/bin/env"
+ '';
+ });
+}