updated
This commit is contained in:
parent
bf03f98a7d
commit
a7c8007c73
4 changed files with 56 additions and 26 deletions
26
flake.lock
generated
26
flake.lock
generated
|
|
@ -21,11 +21,11 @@
|
|||
"nixpkgs-lib": "nixpkgs-lib"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1749398372,
|
||||
"narHash": "sha256-tYBdgS56eXYaWVW3fsnPQ/nFlgWi/Z2Ymhyu21zVM98=",
|
||||
"lastModified": 1751413152,
|
||||
"narHash": "sha256-Tyw1RjYEsp5scoigs1384gIg6e0GoBVjms4aXFfRssQ=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "9305fe4e5c2a6fcf5ba6a3ff155720fbe4076569",
|
||||
"rev": "77826244401ea9de6e3bac47c2db46005e1f30b5",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -99,11 +99,11 @@
|
|||
"i3-dotfiles": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1751442530,
|
||||
"narHash": "sha256-5NItrRRLwBpRkp1XjBdP0AUpM61PJh0FvxseWa3QXBw=",
|
||||
"lastModified": 1751769706,
|
||||
"narHash": "sha256-o/ICsU+icmiYsNM3jvibHAINxEg27UsBCoT/yfkQ1WU=",
|
||||
"ref": "refs/heads/master",
|
||||
"rev": "063264a5bfaa2f0ffdb51f7c740c53e909b98a0b",
|
||||
"revCount": 4,
|
||||
"rev": "23d41c072d0debdbc7c5f1b13a9883cf1d50a31a",
|
||||
"revCount": 5,
|
||||
"type": "git",
|
||||
"url": "ssh://git@github.com/alsaiduq-lab/i3-dotfiles"
|
||||
},
|
||||
|
|
@ -120,11 +120,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1751680518,
|
||||
"narHash": "sha256-mKR7jCd00vvWUADhue8AjVn6qeBO+RIytW1z0s4FlrQ=",
|
||||
"lastModified": 1751767731,
|
||||
"narHash": "sha256-0tO8Dz1fE0XgqC/F2dFyqBnzfDl4+TL+AkdXS712jPQ=",
|
||||
"owner": "fufexan",
|
||||
"repo": "nix-gaming",
|
||||
"rev": "def70f68003c61e95ed15248af94af7a1d3795a7",
|
||||
"rev": "93eaf06673e89eb32ebc7ece1786289761cd032b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -148,11 +148,11 @@
|
|||
},
|
||||
"nixpkgs-lib": {
|
||||
"locked": {
|
||||
"lastModified": 1748740939,
|
||||
"narHash": "sha256-rQaysilft1aVMwF14xIdGS3sj1yHlI6oKQNBRTF40cc=",
|
||||
"lastModified": 1751159883,
|
||||
"narHash": "sha256-urW/Ylk9FIfvXfliA1ywh75yszAbiTEVgpPeinFyVZo=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixpkgs.lib",
|
||||
"rev": "656a64127e9d791a334452c6b6606d17539476e2",
|
||||
"rev": "14a40a1d7fb9afa4739275ac642ed7301a9ba1ab",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
./modules/spotify.nix
|
||||
./modules/obs.nix
|
||||
./modules/udiskie.nix
|
||||
./modules/mpv.nix
|
||||
# temp removed, currently broken on nixpkgs? lmao
|
||||
# ./modules/bambustudio.nix
|
||||
];
|
||||
|
|
|
|||
37
home-manager/modules/mpv.nix
Normal file
37
home-manager/modules/mpv.nix
Normal 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;
|
||||
}
|
||||
|
|
@ -3,20 +3,12 @@
|
|||
enable = true;
|
||||
package = pkgs.openrgb-with-all-plugins;
|
||||
motherboard = "amd";
|
||||
server.port = 6742;
|
||||
};
|
||||
|
||||
services.udev.packages = [pkgs.openrgb];
|
||||
boot.kernelModules = ["i2c-dev"];
|
||||
hardware.i2c.enable = true;
|
||||
environment.systemPackages = [pkgs.openrgb-with-all-plugins];
|
||||
services.udev.packages = [pkgs.openrgb-with-all-plugins];
|
||||
boot.kernelModules = ["i2c-dev" "i2c-piix4"];
|
||||
users.groups.i2c.members = ["cobray"];
|
||||
|
||||
systemd.services.openrgb-server = {
|
||||
description = "OpenRGB Network Server";
|
||||
after = ["network.target"];
|
||||
wantedBy = ["multi-user.target"];
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.openrgb-with-all-plugins}/bin/openrgb --server";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
systemd.services.openrgb.serviceConfig.Environment = "QT_QPA_PLATFORM=offscreen";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue