added niri to home configuration

This commit is contained in:
2026-05-08 11:15:45 +02:00
parent 85675ab32d
commit 39a1ba8bf6
+61 -53
View File
@@ -2,9 +2,9 @@
{ {
imports = [ imports = [
./modules/shell/alacritty.nix # ./modules/shell/alacritty.nix
./system/default.nix # ./system/default.nix
./gnome.nix # ./gnome.nix
]; ];
# Home Manager needs a bit of information about you and the paths it should # Home Manager needs a bit of information about you and the paths it should
@@ -20,7 +20,15 @@
# want to update the value, then make sure to first check the Home Manager # want to update the value, then make sure to first check the Home Manager
# release notes. # release notes.
home.stateVersion = "25.11"; # Please read the comment before changing. home.stateVersion = "25.11"; # Please read the comment before changing.
programs.niri.settings = {
binds = with config.lib.niri.actions; {
"Mod+Return".action = spawn "alacritty";
"Mod+Q".action = close-window;
"Mod+Right".action = focus-column-right;
"Mod+Left".action = focus-column-left;
"MOd+D".action = spawn "fuzzel";
};
};
# The home.packages option allows you to install Nix packages into your # The home.packages option allows you to install Nix packages into your
# environment. # environment.
@@ -59,11 +67,11 @@
# recursive = true; # recursive = true;
#}; #};
home.packages = with pkgs; [ # home.packages = with pkgs; [i
htop # htop
noto-fonts # noto-fonts
fira-code # fira-code
nerd-fonts.fira-code # nerd-fonts.fira-code
# pkgs.pidgin # pkgs.pidgin
# pkgs.gnomeExtensions.user-themes # pkgs.gnomeExtensions.user-themes
# pkgs.gnomeExtensions.tray-icons-reloaded # pkgs.gnomeExtensions.tray-icons-reloaded
@@ -71,12 +79,12 @@
# pkgs.gnomeExtensions.dash-to-panel # pkgs.gnomeExtensions.dash-to-panel
# pkgs.gnomeExtensions.sound-output-device-chooser # pkgs.gnomeExtensions.sound-output-device-chooser
# pkgs.gnomeExtensions.space-bar # pkgs.gnomeExtensions.space-bar
unzip # unzip
zip # zip
# yazi # yazi
pkgs.p7zip # pkgs.p7zip
inetutils # inetutils
signal-desktop # signal-desktop
# # Adds the 'hello' command to your environment. It prints a friendly # # Adds the 'hello' command to your environment. It prints a friendly
# # "Hello, world!" when run. # # "Hello, world!" when run.
# pkgs.hello # pkgs.hello
@@ -93,7 +101,7 @@
# (pkgs.writeShellScriptBin "my-hello" '' # (pkgs.writeShellScriptBin "my-hello" ''
# echo "Hello, ${config.home.username}!" # echo "Hello, ${config.home.username}!"
# '') # '')
]; #];
# Home Manager is pretty good at managing dotfiles. The primary way to manage # Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'. # plain files is through 'home.file'.
@@ -109,36 +117,36 @@
# org.gradle.daemon.idletimeout=3600000 # org.gradle.daemon.idletimeout=3600000
# ''; # '';
}; };
gtk = { # gtk = {
enable = true; # enable = true;
#
iconTheme = { # iconTheme = {
name = "Papirus-Dark"; # name = "Papirus-Dark";
package = pkgs.papirus-icon-theme; # package = pkgs.papirus-icon-theme;
}; # };
#
theme = { # theme = {
name = "palenight"; # name = "palenight";
package = pkgs.palenight-theme; # package = pkgs.palenight-theme;
}; # };
#
cursorTheme = { # cursorTheme = {
name = "Numix-Cursor"; # name = "Numix-Cursor";
package = pkgs.numix-cursor-theme; # package = pkgs.numix-cursor-theme;
}; # };
#
gtk3.extraConfig = { # gtk3.extraConfig = {
Settings = '' # Settings = ''
gtk-application-prefer-dark-theme=1 # gtk-application-prefer-dark-theme=1
''; # '';
}; # };
#
gtk4.extraConfig = { # gtk4.extraConfig = {
Settings = '' # Settings = ''
gtk-application-prefer-dark-theme=1 # gtk-application-prefer-dark-theme=1
''; # '';
}; # };
}; # };
# Home Manager can also manage your environment variables through # Home Manager can also manage your environment variables through
# 'home.sessionVariables'. If you don't want to manage your shell through Home # 'home.sessionVariables'. If you don't want to manage your shell through Home
# Manager then you have to manually source 'hm-session-vars.sh' located at # Manager then you have to manually source 'hm-session-vars.sh' located at
@@ -150,12 +158,12 @@
# #
# /etc/profiles/per-user/martin/etc/profile.d/hm-session-vars.sh # /etc/profiles/per-user/martin/etc/profile.d/hm-session-vars.sh
# #
home.sessionVariables = { # home.sessionVariables = {
# EDITOR = "emacs"; # # EDITOR = "emacs";
GTK_THEME = "palenight"; # GTK_THEME = "palenight";
}; # };
#
# Let Home Manager install and manage itself. # # Let Home Manager install and manage itself.
fonts.fontconfig.enable = true; # fonts.fontconfig.enable = true;
programs.home-manager.enable = true; # programs.home-manager.enable = true;
} }