mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-18 09:01: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": {
|
||||
"lastModified": 1685865037,
|
||||
"narHash": "sha256-atwfu0IUL2f6oWFt3KG1uqPTj7DxUoYW7+KVOv+o5DY=",
|
||||
"lastModified": 1685885003,
|
||||
"narHash": "sha256-+OB0EvZBfGvnlTGg6mtyUCqkMnUp9DkmRUU4d7BZBVE=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "57ed23cd29e7b72518e19d2917e2b2880a94162c",
|
||||
"rev": "607d8fad96436b134424b9935166a7cd0884003e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -185,11 +185,11 @@
|
|||
"xdph": "xdph"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1685808451,
|
||||
"narHash": "sha256-IxiTI9WDvhIM8ciAmBX+EARu/B4h+quWLo/8w86tXrc=",
|
||||
"lastModified": 1685951361,
|
||||
"narHash": "sha256-Hx9yVkyEjVf5ohiWW2HmSuGgxDaVOqGLMIGSz/HV6f8=",
|
||||
"owner": "hyprwm",
|
||||
"repo": "Hyprland",
|
||||
"rev": "df98db50924c05f0bd7a8c95cdab5d4ece13a1f1",
|
||||
"rev": "1a4e6e6a4b3272118a51bebb4a45ecd642383209",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -268,11 +268,11 @@
|
|||
"rust-overlay": "rust-overlay"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1685709197,
|
||||
"narHash": "sha256-ASoXZVoXj6L9PzNDfuDrAxrqaDuH7e1qTzdzkOODu4M=",
|
||||
"lastModified": 1685953862,
|
||||
"narHash": "sha256-aROVoLllFZde9EWr3EP97fXIlOghgrdmO6TeYkZRs5g=",
|
||||
"owner": "nix-community",
|
||||
"repo": "lanzaboote",
|
||||
"rev": "e422970c1bc3351bb7a20cf6e30e78d975280ed3",
|
||||
"rev": "45d04a45d3dfcdee5246f7c0dfed056313de2a61",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -1,24 +1,26 @@
|
|||
{ stdenv, lib, buildGoModule, path, pkgs, go, fetchFromGitHub, playerctl }:
|
||||
{ lib, buildGoModule, makeWrapper, fetchFromGitHub, playerctl }:
|
||||
buildGoModule rec {
|
||||
pname = "pww";
|
||||
version = "unstable-2023-04-06";
|
||||
version = "0.0.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "abenz1267";
|
||||
repo = "pww";
|
||||
rev = "8c973e600052d1c94a0921ed10d0723c123187c6"; # unstable because 6.0.0 has some crashes
|
||||
hash = "sha256-IqLo1MlPGaM0n0TEhptiM5FvqJ8bsEPn7N2EEL6iWK8=";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-nqNSzipOa0gj9qF49f/1R5QZMSY9xmjBnAVkiXdrSa4=";
|
||||
};
|
||||
|
||||
buildInputs = [ playerctl ];
|
||||
|
||||
outputs = [ "out" ];
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
vendorSha256 = "sha256-3PnXB8AfZtgmYEPJuh0fwvG38dtngoS/lxyx3H+rvFs=";
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/${pname} \
|
||||
--prefix PATH : "${lib.makeBinPath [ playerctl ]}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Utility wrapper around playerctl";
|
||||
homepage = "https://github.com/Mic92/sops-nix";
|
||||
homepage = "https://github.com/abenz1267/pww";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ therealr5 ];
|
||||
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
|
||||
networking.firewall = rec {
|
||||
allowedTCPPortRanges = [{ from = 1714; to = 1764; }];
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ 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 = {
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
|
@ -33,7 +33,7 @@
|
|||
format = " {}";
|
||||
max-length = 80;
|
||||
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 = {
|
||||
format = "{usage}% ";
|
||||
|
|
|
@ -19,6 +19,7 @@ in
|
|||
user = "root";
|
||||
port = 2222;
|
||||
};
|
||||
falkenstein-1 = matchBlocks."rfive.de";
|
||||
"kaki" = {
|
||||
hostname = "kaki.ifsr.de";
|
||||
user = "root";
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
{ pkgs, nix-colors, ... }:
|
||||
{
|
||||
|
||||
# home.packages = with pkgs; [ libsForQt5.qtstyleplugin-kvantum ];
|
||||
home.packages = with pkgs; [ libsForQt5.qtstyleplugin-kvantum ];
|
||||
colorScheme = nix-colors.colorSchemes.dracula;
|
||||
|
||||
# theme hardcoded to dracula, too lazy to make all this base16
|
||||
home.sessionVariables.GTK_THEME = "Dracula";
|
||||
home.sessionVariables.QT_QPA_PLATFORMTHEME = "Dracula";
|
||||
qt = {
|
||||
enable = true;
|
||||
style = {
|
||||
|
@ -31,4 +30,9 @@
|
|||
package = pkgs.dracula-theme;
|
||||
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