wip: more niri tweaks

This commit is contained in:
Nickolaj Jepsen 2025-04-30 15:59:52 +02:00
parent 5627b17333
commit be51b67524
5 changed files with 110 additions and 62 deletions

View file

@ -48,6 +48,10 @@ in {
# Editor
"editor.linkedEditing" = true;
"files.exclude" = {
"**/*.egg-info" = true;
"**/__pycache__" = true;
};
# Files
"files.autoSave" = "afterDelay";
@ -58,7 +62,12 @@ in {
# AI
"github.copilot.editor.enableAutoCompletions" = true;
"github.copilot.enable" = {"*" = true;};
"github.copilot.enable" = {
"*" = true;
"plaintext" = true;
"markdown" = true;
"scminput" = true;
};
"chat.agent.enabled" = true;
"github.copilot.chat.agent.thinkingTool" = true;
"github.copilot.chat.codesearch.enabled" = true;

View file

@ -25,6 +25,8 @@ in {
programs.ssh = {
enable = true;
forwardAgent = true;
serverAliveInterval = 60;
serverAliveCountMax = 10;
matchBlocks = {
"*" = {
identityFile = "${config.age.secrets.ssh-key.path}";

View file

@ -1,4 +1,18 @@
{pkgsUnstable, ...}: {
{pkgsUnstable, pkgs, lib, inputs, ...}:
let
mesa-nixpkgs =
import
(fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/d3c42f187194c26d9f0309a8ecc469d6c878ce33.tar.gz";
sha256 = "sha256:0bmnxsn9r4qfslg4mahsl9y9719ykifbazpxxn1fqf47zbbanxkh";
}
)
{
inherit (pkgs.stdenv.hostPlatform) system;
config = { };
overlays = [ ];
};
in {
# TODO: Move these to a separate module
fireproof.home-manager.programs.waybar = {
enable = true;
@ -87,16 +101,14 @@
#tray > .needs-attention {
-gtk-icon-effect: highlight;
background-color: #eb4d4b;
}
#tray > .active {
-gtk-icon-effect: highlight;
background-color: #eb4d4b;
}'';
};
programs.niri = {
enable = true;
package = pkgsUnstable.niri;
# package = (pkgsUnstable.niri.override { inherit (mesa-nixpkgs) libgbm; });
# package = pkgsUnstable.niri;
package = inputs.niri.packages."${pkgs.system}".niri-unstable;
};
fireproof.home-manager.programs.niri.settings = {
prefer-no-csd = true;
@ -127,6 +139,7 @@
input = {
focus-follows-mouse.enable = true;
mouse.accel-profile = "flat";
keyboard.xkb.layout = "eu";
};
window-rules = [
{
@ -212,8 +225,9 @@
"Mod+F".action.maximize-column = {};
"Mod+Shift+F".action.fullscreen-window = {};
"Mod+A".action.toggle-column-tabbed-display = {};
"Mod+C".action.center-column = {};
"Mod+D".action.toggle-overview = {};
"Mod+S".action.toggle-window-floating = {};
"Mod+C".action.switch-preset-column-width = {};
"Mod+Z".action.set-column-width = "-5%";
"Mod+X".action.set-column-width = "+5%";