mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-18 17:11:39 +01:00
bettered up the pww package
This commit is contained in:
parent
8196d6e741
commit
cf7f8dcda7
6 changed files with 35 additions and 22 deletions
18
flake.lock
18
flake.lock
|
@ -165,11 +165,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1685865037,
|
"lastModified": 1685885003,
|
||||||
"narHash": "sha256-atwfu0IUL2f6oWFt3KG1uqPTj7DxUoYW7+KVOv+o5DY=",
|
"narHash": "sha256-+OB0EvZBfGvnlTGg6mtyUCqkMnUp9DkmRUU4d7BZBVE=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "57ed23cd29e7b72518e19d2917e2b2880a94162c",
|
"rev": "607d8fad96436b134424b9935166a7cd0884003e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -185,11 +185,11 @@
|
||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1685808451,
|
"lastModified": 1685951361,
|
||||||
"narHash": "sha256-IxiTI9WDvhIM8ciAmBX+EARu/B4h+quWLo/8w86tXrc=",
|
"narHash": "sha256-Hx9yVkyEjVf5ohiWW2HmSuGgxDaVOqGLMIGSz/HV6f8=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "Hyprland",
|
"repo": "Hyprland",
|
||||||
"rev": "df98db50924c05f0bd7a8c95cdab5d4ece13a1f1",
|
"rev": "1a4e6e6a4b3272118a51bebb4a45ecd642383209",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -268,11 +268,11 @@
|
||||||
"rust-overlay": "rust-overlay"
|
"rust-overlay": "rust-overlay"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1685709197,
|
"lastModified": 1685953862,
|
||||||
"narHash": "sha256-ASoXZVoXj6L9PzNDfuDrAxrqaDuH7e1qTzdzkOODu4M=",
|
"narHash": "sha256-aROVoLllFZde9EWr3EP97fXIlOghgrdmO6TeYkZRs5g=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "lanzaboote",
|
"repo": "lanzaboote",
|
||||||
"rev": "e422970c1bc3351bb7a20cf6e30e78d975280ed3",
|
"rev": "45d04a45d3dfcdee5246f7c0dfed056313de2a61",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -1,24 +1,26 @@
|
||||||
{ stdenv, lib, buildGoModule, path, pkgs, go, fetchFromGitHub, playerctl }:
|
{ lib, buildGoModule, makeWrapper, fetchFromGitHub, playerctl }:
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "pww";
|
pname = "pww";
|
||||||
version = "unstable-2023-04-06";
|
version = "0.0.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "abenz1267";
|
owner = "abenz1267";
|
||||||
repo = "pww";
|
repo = "pww";
|
||||||
rev = "8c973e600052d1c94a0921ed10d0723c123187c6"; # unstable because 6.0.0 has some crashes
|
rev = "v${version}";
|
||||||
hash = "sha256-IqLo1MlPGaM0n0TEhptiM5FvqJ8bsEPn7N2EEL6iWK8=";
|
hash = "sha256-nqNSzipOa0gj9qF49f/1R5QZMSY9xmjBnAVkiXdrSa4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ playerctl ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
outputs = [ "out" ];
|
|
||||||
|
|
||||||
vendorSha256 = "sha256-3PnXB8AfZtgmYEPJuh0fwvG38dtngoS/lxyx3H+rvFs=";
|
vendorSha256 = "sha256-3PnXB8AfZtgmYEPJuh0fwvG38dtngoS/lxyx3H+rvFs=";
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram $out/bin/${pname} \
|
||||||
|
--prefix PATH : "${lib.makeBinPath [ playerctl ]}"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Utility wrapper around playerctl";
|
description = "Utility wrapper around playerctl";
|
||||||
homepage = "https://github.com/Mic92/sops-nix";
|
homepage = "https://github.com/abenz1267/pww";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ therealr5 ];
|
maintainers = with maintainers; [ therealr5 ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, lib, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
|
# fixes qt themes
|
||||||
|
environment.variables = {
|
||||||
|
"QT_STYLE_OVERRIDE" = lib.mkForce "kvantum";
|
||||||
|
"QT_QPA_PLATFORMTHEME" = lib.mkForce "Dracula";
|
||||||
|
};
|
||||||
# open ports for kde connect
|
# open ports for kde connect
|
||||||
networking.firewall = rec {
|
networking.firewall = rec {
|
||||||
allowedTCPPortRanges = [{ from = 1714; to = 1764; }];
|
allowedTCPPortRanges = [{ from = 1714; to = 1764; }];
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ self, config, pkgs, hyprland, ... }:
|
{ self, config, pkgs, hyprland, ... }:
|
||||||
{
|
{
|
||||||
systemd.user.services.waybar.Service.Environment = "PATH=${pkgs.hyprland}/bin:${pkgs.playerctl}/bin:${pkgs.pulseaudio}/bin";
|
systemd.user.services.waybar.Service.Environment = "PATH=${pkgs.hyprland}/bin";
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemd.enable = true;
|
systemd.enable = true;
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
format = " {}";
|
format = " {}";
|
||||||
max-length = 80;
|
max-length = 80;
|
||||||
return-type = "json";
|
return-type = "json";
|
||||||
exec = "${self.packages.x86_64-linux.pww}/bin/pww -w spotifyd:title -f '{{title}} - {{artist}}' -p None 2> /dev/null";
|
exec = "${self.packages.x86_64-linux.pww}/bin/pww -w spotifyd:title -p None 2> /dev/null";
|
||||||
};
|
};
|
||||||
cpu = {
|
cpu = {
|
||||||
format = "{usage}% ";
|
format = "{usage}% ";
|
||||||
|
|
|
@ -19,6 +19,7 @@ in
|
||||||
user = "root";
|
user = "root";
|
||||||
port = 2222;
|
port = 2222;
|
||||||
};
|
};
|
||||||
|
falkenstein-1 = matchBlocks."rfive.de";
|
||||||
"kaki" = {
|
"kaki" = {
|
||||||
hostname = "kaki.ifsr.de";
|
hostname = "kaki.ifsr.de";
|
||||||
user = "root";
|
user = "root";
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
{ pkgs, nix-colors, ... }:
|
{ pkgs, nix-colors, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
# home.packages = with pkgs; [ libsForQt5.qtstyleplugin-kvantum ];
|
home.packages = with pkgs; [ libsForQt5.qtstyleplugin-kvantum ];
|
||||||
colorScheme = nix-colors.colorSchemes.dracula;
|
colorScheme = nix-colors.colorSchemes.dracula;
|
||||||
|
|
||||||
# theme hardcoded to dracula, too lazy to make all this base16
|
# theme hardcoded to dracula, too lazy to make all this base16
|
||||||
home.sessionVariables.GTK_THEME = "Dracula";
|
home.sessionVariables.GTK_THEME = "Dracula";
|
||||||
home.sessionVariables.QT_QPA_PLATFORMTHEME = "Dracula";
|
|
||||||
qt = {
|
qt = {
|
||||||
enable = true;
|
enable = true;
|
||||||
style = {
|
style = {
|
||||||
|
@ -31,4 +30,9 @@
|
||||||
package = pkgs.dracula-theme;
|
package = pkgs.dracula-theme;
|
||||||
size = 16;
|
size = 16;
|
||||||
};
|
};
|
||||||
|
xdg.configFile = {
|
||||||
|
"Kvantum/Dracula/Dracula.kvconfig".source = "${pkgs.dracula-theme}/share/Kvantum/Dracula/Dracula.kvconfig";
|
||||||
|
"Kvantum/Dracula/Dracula.svg".source = "${pkgs.dracula-theme}/share/Kvantum/Dracula/Dracula.svg";
|
||||||
|
"Kvantum/kvantum.kvconfig".text = "[General]\ntheme=Dracula";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue