This commit is contained in:
alsaiduq-lab 2025-07-07 00:21:25 -06:00
parent bf03f98a7d
commit a7c8007c73
4 changed files with 56 additions and 26 deletions

26
flake.lock generated
View file

@ -21,11 +21,11 @@
"nixpkgs-lib": "nixpkgs-lib" "nixpkgs-lib": "nixpkgs-lib"
}, },
"locked": { "locked": {
"lastModified": 1749398372, "lastModified": 1751413152,
"narHash": "sha256-tYBdgS56eXYaWVW3fsnPQ/nFlgWi/Z2Ymhyu21zVM98=", "narHash": "sha256-Tyw1RjYEsp5scoigs1384gIg6e0GoBVjms4aXFfRssQ=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "flake-parts", "repo": "flake-parts",
"rev": "9305fe4e5c2a6fcf5ba6a3ff155720fbe4076569", "rev": "77826244401ea9de6e3bac47c2db46005e1f30b5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -99,11 +99,11 @@
"i3-dotfiles": { "i3-dotfiles": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1751442530, "lastModified": 1751769706,
"narHash": "sha256-5NItrRRLwBpRkp1XjBdP0AUpM61PJh0FvxseWa3QXBw=", "narHash": "sha256-o/ICsU+icmiYsNM3jvibHAINxEg27UsBCoT/yfkQ1WU=",
"ref": "refs/heads/master", "ref": "refs/heads/master",
"rev": "063264a5bfaa2f0ffdb51f7c740c53e909b98a0b", "rev": "23d41c072d0debdbc7c5f1b13a9883cf1d50a31a",
"revCount": 4, "revCount": 5,
"type": "git", "type": "git",
"url": "ssh://git@github.com/alsaiduq-lab/i3-dotfiles" "url": "ssh://git@github.com/alsaiduq-lab/i3-dotfiles"
}, },
@ -120,11 +120,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1751680518, "lastModified": 1751767731,
"narHash": "sha256-mKR7jCd00vvWUADhue8AjVn6qeBO+RIytW1z0s4FlrQ=", "narHash": "sha256-0tO8Dz1fE0XgqC/F2dFyqBnzfDl4+TL+AkdXS712jPQ=",
"owner": "fufexan", "owner": "fufexan",
"repo": "nix-gaming", "repo": "nix-gaming",
"rev": "def70f68003c61e95ed15248af94af7a1d3795a7", "rev": "93eaf06673e89eb32ebc7ece1786289761cd032b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -148,11 +148,11 @@
}, },
"nixpkgs-lib": { "nixpkgs-lib": {
"locked": { "locked": {
"lastModified": 1748740939, "lastModified": 1751159883,
"narHash": "sha256-rQaysilft1aVMwF14xIdGS3sj1yHlI6oKQNBRTF40cc=", "narHash": "sha256-urW/Ylk9FIfvXfliA1ywh75yszAbiTEVgpPeinFyVZo=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixpkgs.lib", "repo": "nixpkgs.lib",
"rev": "656a64127e9d791a334452c6b6606d17539476e2", "rev": "14a40a1d7fb9afa4739275ac642ed7301a9ba1ab",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -21,6 +21,7 @@
./modules/spotify.nix ./modules/spotify.nix
./modules/obs.nix ./modules/obs.nix
./modules/udiskie.nix ./modules/udiskie.nix
./modules/mpv.nix
# temp removed, currently broken on nixpkgs? lmao # temp removed, currently broken on nixpkgs? lmao
# ./modules/bambustudio.nix # ./modules/bambustudio.nix
]; ];

View file

@ -0,0 +1,37 @@
{pkgs, ...}: let
modernx = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/cyl0/ModernX/0.6.1/modernx.lua";
sha256 = "11n7qqaj2f3l53wg7vqdf007zky45nkviwy10xmb9kxwddnpmxsm";
};
modernxFont = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/cyl0/ModernX/0.6.1/Material-Design-Iconic-Font.ttf";
sha256 = "06nsghfgsvhqfcvfd9k1dp3mvh5xz0cz5k5vqcby4v5nxki5p90q";
};
in {
home.packages = with pkgs; [
mpv
mpvScripts.thumbfast
];
home.file.".config/mpv/mpv.conf".text = ''
profile=gpu-hq
osc=no
border=no
script=~~/scripts/modernx.lua
script=~~/scripts/thumbfast.lua
script-opts=modernx-theme=Nordic
sub-font="Noto Sans"
sub-font-size=40
'';
home.file.".config/mpv/scripts/modernx.lua".source =
modernx;
home.file.".config/mpv/scripts/thumbfast.lua".source = "${pkgs.mpvScripts.thumbfast}/share/mpv/scripts/thumbfast.lua";
home.file.".config/mpv/script-opts/thumbfast.conf".source = "${pkgs.mpvScripts.thumbfast}/share/mpv/script-opts/thumbfast.conf";
home.file.".config/mpv/fonts/Material-Design-Iconic-Font.ttf".source =
modernxFont;
}

View file

@ -3,20 +3,12 @@
enable = true; enable = true;
package = pkgs.openrgb-with-all-plugins; package = pkgs.openrgb-with-all-plugins;
motherboard = "amd"; motherboard = "amd";
server.port = 6742;
}; };
services.udev.packages = [pkgs.openrgb]; services.udev.packages = [pkgs.openrgb-with-all-plugins];
boot.kernelModules = ["i2c-dev"]; boot.kernelModules = ["i2c-dev" "i2c-piix4"];
hardware.i2c.enable = true; users.groups.i2c.members = ["cobray"];
environment.systemPackages = [pkgs.openrgb-with-all-plugins];
systemd.services.openrgb-server = { systemd.services.openrgb.serviceConfig.Environment = "QT_QPA_PLATFORM=offscreen";
description = "OpenRGB Network Server";
after = ["network.target"];
wantedBy = ["multi-user.target"];
serviceConfig = {
ExecStart = "${pkgs.openrgb-with-all-plugins}/bin/openrgb --server";
Restart = "on-failure";
};
};
} }