From 5440c73f19ae9bfac70c79da83241c158ceb7d4a Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 8 Nov 2024 15:58:13 +0100 Subject: ... --- accounts/gkleen@sif/default.nix | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) (limited to 'accounts/gkleen@sif/default.nix') diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix index 5bdd1651..189fabfa 100644 --- a/accounts/gkleen@sif/default.nix +++ b/accounts/gkleen@sif/default.nix @@ -698,16 +698,16 @@ in { packages = with pkgs; [ fira fira-code powerline-fonts nerdfonts pwvucontrol wrappedKeepassxc wl-clipboard-rs mumble pulseaudio-ctl - pamixer libnotify screen-message wrappedYTMDesktop qt5ct - playerctl evince thunderbird zoom-us steam steam-run - wireshark virt-manager rclone cached-nix-shell worktime - fira-code-symbols libreoffice xournalpp google-chrome - nixos-shell virt-viewer freerdp gnome-icon-theme - paper-icon-theme sshpassSecret weechat element-desktop - matrix-synapse-tools.synadm + pamixer libnotify screen-message wrappedYTMDesktop + libsForQt5.qt5ct playerctl evince thunderbird zoom-us steam + steam-run wireshark virt-manager rclone cached-nix-shell + worktime fira-code-symbols libreoffice xournalpp + google-chrome nixos-shell virt-viewer freerdp + gnome-icon-theme paper-icon-theme sshpassSecret weechat + element-desktop matrix-synapse-tools.synadm flakeInputs.deploy-rs.packages.${config.nixpkgs.system}.deploy-rs sieve-connect gimp inkscape udiskie glab nitrokey-app - pynitrokey gtklock wlrctl remmina openscad + pynitrokey gtklock wlrctl remmina openscad spice-record ]; file = { @@ -886,6 +886,24 @@ in { StartupWMClass = "Element"; }; }; + rainbow = { + name = "Rainbow"; + exec = toString (pkgs.writeShellScript "rainbow" '' + exec -- \ + ${config.systemd.package}/bin/systemd-run --wait --user --slice-inherit \ + --property 'CPUAccounting=yes' --property 'CPUQuotaPeriodSec=50ms' \ + --property 'Environment=DSCP=46' \ + -- ${pkgs.dscp}/bin/dscp ${pkgs.google-chrome}/bin/google-chrome-stable \ + --force-device-scale-factor=1.5 \ + --class=Rainbow \ + --kiosk "https://web.openrainbow.com" \ + --user-data-dir=''${HOME}/.config/google-chrome-rainbow + ''); + icon = pkgs.fetchurl { + url = "https://web.openrainbow.com/rb/2.139.17/assets/skins/rainbow/images/homepage/logo__rainbow.svg"; + hash = "sha256-5fmo8rDqVDpzkGaPjk4Y+SsSZpAsY7VUQSFW6WdHwuU="; + }; + }; }; fonts = { -- cgit v1.2.3