change many thing

This commit is contained in:
atagen 2026-02-16 11:32:22 +11:00
parent b2d69d270e
commit fe668b5b9e
30 changed files with 632 additions and 470 deletions

View file

@ -4,35 +4,24 @@
inputs,
mainUser,
getPkgs,
getFlakePkg',
...
}:
let
inherit (lib) getExe getExe';
stable = inputs.nixpkgs-stable;
inherit (stable.legacyPackages.x86_64-linux) quickshell;
inherit (lib) getExe;
in
{
user.packages = getPkgs {
# quickshell stuff
inherit (pkgs.kdePackages) qtbase qtdeclarative;
inherit (pkgs) wl-clipboard;
inherit quickshell;
inherit (pkgs) wl-clipboard quickshell;
};
imports = [ inputs.stasis.nixosModules.default ];
services.stasis.enable = true;
quick.services = {
swaync = "${getExe pkgs.swaynotificationcenter}";
quickshell = "${getExe quickshell}";
swayidle =
let
niri = getFlakePkg' inputs.niri "niri-unstable";
systemctl = getExe' pkgs.systemd "systemctl";
in
''
${lib.getExe pkgs.swayidle} -w \
timeout 1800 '${systemctl} suspend' \
timeout 600 '${niri} msg action power-off-monitors'
'';
quickshell = "${getExe pkgs.quickshell}";
};
environment.files."/home/${mainUser}/.config/quickshell" = {