mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
feat: attempt home ci
This commit is contained in:
parent
c8368a050e
commit
07aa0b62a0
16 changed files with 288 additions and 141 deletions
|
|
@ -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}"
|
||||
];
|
||||
}
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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"];
|
||||
};
|
||||
};
|
||||
# ▄ █
|
||||
# ▄▄▄ ▄▄█▄▄ ▄▄▄ ▄▄▄ █ ▄
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ in {
|
|||
};
|
||||
debug = {
|
||||
wait-for-frame-completion-in-pipewire = {};
|
||||
deactivate-unfocused-windows = {};
|
||||
};
|
||||
workspaces = {
|
||||
browser = {};
|
||||
|
|
|
|||
19
home/environments/niri/niriswitcher.nix
Normal file
19
home/environments/niri/niriswitcher.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
_: {
|
||||
services = {
|
||||
fluidsynth = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
})
|
||||
];
|
||||
|
||||
programs.moonlight-mod = {
|
||||
programs.moonlight = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
extraConfig = ''
|
||||
local wezterm = require 'wezterm';
|
||||
local config = {}
|
||||
config.front_end = "OpenGL"
|
||||
config.font = wezterm.font_with_fallback({
|
||||
"Monaspace Krypton",
|
||||
"JetBrains Mono",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue