feat: attempt home ci

This commit is contained in:
Kat Inskip 2025-07-22 13:37:49 -07:00
parent c8368a050e
commit 07aa0b62a0
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
16 changed files with 288 additions and 141 deletions

View file

@ -1,4 +1,6 @@
{pkgs, config, ...}: {
{pkgs, config, lib, ...}: let
inherit (lib.meta) getExe getExe';
in {
programs.niri.settings.spawn-at-startup = let
import-gsettings = pkgs.writeShellScriptBin "import-gsettings" ''
# usage: import-gsettings
@ -15,15 +17,16 @@
${pkgs.glib}/bin/gsettings set "$gnome_schema" cursor-theme "$cursor_theme"
${pkgs.glib}/bin/gsettings set "$gnome_schema" font-name "$font_name"
'';
systemctl = getExe' pkgs.systemd "systemctl";
in [
{
command = [
"${import-gsettings}/bin/import-gsettings"
"${getExe import-gsettings}"
];
}
{
command = [
"${pkgs.systemd}/bin/systemctl"
"${systemctl}"
"--user"
"start"
"waybar.service"
@ -31,7 +34,7 @@
}
{
command = [
"${pkgs.systemd}/bin/systemctl"
"${systemctl}"
"--user"
"restart"
"konawall-py.service"
@ -39,7 +42,7 @@
}
{
command = [
"${pkgs.systemd}/bin/systemctl"
"${systemctl}"
"--user"
"start"
"mako.service"
@ -53,7 +56,12 @@
# program autostart
{
command = [
"${pkgs.dbus}/bin/dbus-update-activation-environment"
"${getExe' config.programs.niriswitcher.package "niriswitcher"}"
];
}
{
command = [
"${getExe' pkgs.dbus "dbus-update-activation-environment"}"
"--all"
];
}
@ -66,17 +74,17 @@
}
{
command = [
"${pkgs.udiskie}/bin/udiskie"
"${getExe pkgs.udiskie}"
];
}
{
command = [
"${pkgs.pasystray}/bin/pasystray"
"${getExe pkgs.pasystray}"
];
}
{
command = [
"${pkgs.networkmanagerapplet}/bin/nm-applet"
"${getExe pkgs.networkmanagerapplet}"
];
}
{

View file

@ -38,6 +38,14 @@ in {
"Mod+D".action = sh ''${getExe config.programs.fuzzel.package} -T "${getExe config.programs.wezterm.package} start"'';
"Mod+Escape".action = sh ''${getExe config.programs.wlogout.package} -p layer-shell'';
"Mod+Shift+Escape".action = sh ''${getExe config.programs.swaylock.package} -f'';
"Alt+Tab" = {
repeat = false;
action.spawn = ["${getExe' pkgs.glib "gdbus"}" "call" "--session" "--dest" "io.github.isaksamsten.Niriswitcher" "--object-path" "/io/github/isaksamsten/Niriswitcher" "--method" "io.github.isaksamsten.Niriswitcher.application"];
};
"Alt+Shift+Tab" = {
repeat = false;
action.spawn = ["${getExe' pkgs.glib "gdbus"}" "call" "--session" "--dest" "io.github.isaksamsten.Niriswitcher" "--object-path" "/io/github/isaksamsten/Niriswitcher" "--method" "io.github.isaksamsten.Niriswitcher.application"];
};
};
# ▄ █
# ▄▄▄ ▄▄█▄▄ ▄▄▄ ▄▄▄ █ ▄

View file

@ -76,6 +76,7 @@ in {
};
debug = {
wait-for-frame-completion-in-pipewire = {};
deactivate-unfocused-windows = {};
};
workspaces = {
browser = {};

View file

@ -0,0 +1,19 @@
_: {
programs.niriswitcher = {
enable = true;
settings = {
keys = {
modifier = "Super";
switch = {
next = "Tab";
prev = "Shift+Tab";
};
};
center_on_focus = true;
appearance = {
system_theme = "dark";
icon_size = 64;
};
};
};
}