wry, many thing

This commit is contained in:
atagen 2026-04-08 11:43:10 +10:00
parent 6e62eccfba
commit 848ed62c5d
47 changed files with 1598 additions and 1201 deletions

View file

@ -9,10 +9,25 @@
}:
let
inherit (lib) getExe;
shotta =
let
grim = lib.getExe pkgs.grim;
slurp = lib.getExe pkgs.slurp;
wl-copy = lib.getExe' pkgs.wl-clipboard-rs "wl-copy";
wl-paste = lib.getExe' pkgs.wl-clipboard-rs "wl-paste";
in
pkgs.writeScriptBin "shotta" ''
#! /usr/bin/env nu
let savePath = $"~/screenshots/(date now | format date "%Y-%m-%d-%H-%M-%S").png" | path expand
${grim} -g $"(${slurp})" -c - | ${wl-copy}
${wl-paste} o> $savePath
'';
ui = config.rice.roles config.rice.palette.hex;
in
{
user.packages = getPkgs {
# quickshell stuff
environment.systemPackages = getPkgs {
inherit shotta;
inherit (pkgs.kdePackages) qtbase qtdeclarative;
inherit (pkgs) wl-clipboard quickshell;
};
@ -23,7 +38,6 @@ in
];
services.stasis = {
enable = false;
extraPathPackages = [ (config.programs.niri.package) ];
extraConfig = ''
default:
dpms_off:
@ -43,40 +57,55 @@ in
excludedApps = [ "Bitwarden" ];
};
quick.services = {
noti.cmd = "${getExe pkgs.swaynotificationcenter}";
shell = {
cmd = "${getExe pkgs.quickshell}";
restart = true;
};
# pwManager.cmd = "${getExe config.apps.passwordManager}";
# music = "${getExe config.apps.streamPlayer}";
};
# user.systemd.services.music = {
# environment.PATH = lib.mkForce "/run/current-system/sw/bin:/run/current-system/sw/sbin:/etc/profiles/per-user/${mainUser}/bin:/etc/profiles/per-user/${mainUser}/sbin";
# unitConfig = {
# Description = "airdrome";
# Requires = [
# "graphical-session.target"
# ];
# After = [
# "graphical-session.target"
# "niri.target"
# ];
# PartOf = [ "graphical-session.target" ];
# };
# serviceConfig = {
# ExecStart = "${getExe config.apps.streamPlayer}";
# Type = "forking";
# };
# wantedBy = [ "graphical-session.target" ];
# };
environment.files."/home/${mainUser}/.config/quickshell" = {
source = "/home/${mainUser}/.nix/graphical/desktop/quickshell";
uid = 1000;
gid = 100;
};
# generate Colours.qml from palette into the source tree via arbys
environment.files."/home/${mainUser}/.nix/graphical/desktop/quickshell/rice/Colours.qml" =
let
pal = config.rice.palette.hex;
in
{
source = pkgs.writeText "Colours.qml" ''
pragma Singleton
import Quickshell
Singleton {
property var c: {
"bg": "${ui.bg}",
"fg": "${ui.fg}",
"black": "${pal.normal.black}",
"black_b": "${pal.bright.black}",
"red": "${pal.normal.red}",
"red_b": "${pal.bright.red}",
"green": "${pal.normal.green}",
"green_b": "${pal.bright.green}",
"yellow": "${pal.normal.yellow}",
"yellow_b": "${pal.bright.yellow}",
"blue": "${pal.normal.blue}",
"blue_b": "${pal.bright.blue}",
"magenta": "${pal.normal.magenta}",
"magenta_b": "${pal.bright.magenta}",
"cyan": "${pal.normal.cyan}",
"cyan_b": "${pal.bright.cyan}",
"white": "${pal.normal.white}",
"white_b": "${pal.bright.white}",
}
}
'';
uid = 1000;
gid = 100;
};
}