update system

This commit is contained in:
2025-10-20 14:51:44 +02:00
parent 5ad6324de6
commit 69eafb5594
10 changed files with 407 additions and 24 deletions

View File

@@ -4,6 +4,7 @@
./boot/quiet.nix
./desktops/hyprland.nix
./desktops/niri.nix
./fonts/fira-code.nix
./fonts/noto-sans.nix

View File

@@ -27,10 +27,14 @@ in
systemd.enable = false;
package = null;
portalPackage = null;
settings.ecosystem = {
no_update_news = true;
no_donation_nag = true;
settings = {
ecosystem = {
no_update_news = true;
no_donation_nag = true;
};
};
plugins = with pkgs.hyprlandPlugins; [
];
};
home = {
packages = with pkgs; [ grim ];

View File

@@ -0,0 +1,144 @@
{
config,
lib,
pkgs,
username,
...
}:
let
cfg = config.desktops.niri;
in
{
options.desktops.niri = {
enable = lib.mkEnableOption "Enable a DE based on Niri";
};
config = lib.mkIf cfg.enable {
programs.niri.enable = true;
home-manager.users.${username} = {
fonts.fontconfig.enable = true;
home = {
sessionVariables = {
NIXOS_OZONE_WL = "1";
GDK_BACKEND = "wayland,x11,*";
QT_QPA_PLATFORM = "wayland;xcb";
SDL_VIDEODRIVER = "wayland";
};
packages = with pkgs; [
xwayland-satellite
# fonts
noto-fonts
# gnome packages
evince
baobab
gnome.gvfs
nautilus
simple-scan
eog
ghex
gnome-disk-utility
# fixes
xorg.xrandr
];
pointerCursor = {
gtk.enable = true;
package = pkgs.capitaine-cursors;
name = "capitaine-cursors";
};
};
programs = {
dankMaterialShell = {
enable = true;
niri = {
enableSpawn = true;
enableKeybinds = false;
};
};
niri.settings = {
binds = {
"Mod+Left".action.focus-column-left = [ ];
"Mod+Right".action.focus-column-right = [ ];
"Mod+Up".action.focus-window-or-workspace-up = [ ];
"Mod+Down".action.focus-window-or-workspace-down = [ ];
"Mod+WheelScrollUp".action.focus-column-left = [ ];
"Mod+WheelScrollDown".action.focus-column-right = [ ];
"Mod+Shift+Left".action.move-column-left = [ ];
"Mod+Shift+Right".action.move-column-right = [ ];
"Mod+Shift+Up".action.move-window-up-or-to-workspace-up = [ ];
"Mod+Shift+Down".action.move-window-down-or-to-workspace-down = [ ];
"Mod+C".action.close-window = [ ];
"Mod+M".action.center-window = [ ];
"Mod+T".action.spawn = [ "kitty" ];
"Mod+V".action.maximize-column = [ ];
"Mod+P".action.fullscreen-window = [ ];
"Mod+Space".action.spawn = [
"dms"
"ipc"
"spotlight"
"toggle"
];
"Mod+MouseMiddle".action.toggle-overview = [ ];
};
window-rules = [
{
geometry-corner-radius = {
top-left = 24.0;
top-right = 24.0;
bottom-left = 24.0;
bottom-right = 24.0;
};
clip-to-geometry = true;
tiled-state = true;
}
{
matches = [ { app-id = "neovide"; } ];
default-column-width.fixed = 1300;
}
{
matches = [ { app-id = "firefox"; } ];
default-column-width.fixed = 1500;
}
];
layout = {
always-center-single-column = true;
center-focused-column = "always";
focus-ring.enable = false;
border.enable = false;
};
input = {
mouse.accel-profile = "flat";
warp-mouse-to-focus.enable = true;
focus-follows-mouse = {
enable = false;
max-scroll-amount = "5%";
};
};
};
};
};
programs.dankMaterialShell.greeter = {
enable = true;
compositor.name = "niri";
configHome = "/home/${username}";
};
services = {
kmscon = {
enable = true;
hwRender = true;
};
};
};
}

View File

@@ -43,12 +43,26 @@ in
gpu-context = "waylandvk";
target-colorspace-hint = "auto";
};
programs.niri.settings = {
prefer-no-csd = true;
outputs."DP-3" = {
scale = 1;
mode = {
width = 3840;
height = 2160;
refresh = 143.999;
};
variable-refresh-rate = "on-demand";
};
layout.struts.top = 340;
};
wayland.windowManager.hyprland.settings = {
general.layout = "master";
master = {
orientation = "center";
slave_count_for_center_master = 0;
mfact = 0.4;
allow_small_split = true;
};
render.direct_scanout = 0;
/*

View File

@@ -94,8 +94,8 @@ in
".zshenv".enable = lib.mkIf itgr.zsh false;
# This might break some stuff, see
# https://github.com/nix-community/home-manager/blob/bfa7c06436771e3a0c666ccc6ee01e815d4c33aa/modules/config/home-cursor.nix#L152
".icons/default/index.theme".enable = lib.mkIf itgr.home-cursor false;
".icons/${homeConfig.home.pointerCursor.name}".enable = lib.mkIf itgr.home-cursor false;
# ".icons/default/index.theme".enable = lib.mkIf itgr.home-cursor false;
# ".icons/${homeConfig.home.pointerCursor.name}".enable = lib.mkIf itgr.home-cursor false;
};
gtk.gtk2.configLocation = lib.mkIf itgr.gtk2 "${xdgConfig.configHome}/gtk-2.0/gtkrc";
programs = {