niri update
This commit is contained in:
@@ -40,8 +40,6 @@ boot.loader.efi.canTouchEfiVariables = true;
|
|||||||
# Flakes
|
# Flakes
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
networking.hostName = "nixos"; # Define your hostname.
|
|
||||||
networking.enableIPv6 = false;
|
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
|
|
||||||
# Configure network proxy if necessary networking.proxy.default =
|
# Configure network proxy if necessary networking.proxy.default =
|
||||||
@@ -49,7 +47,10 @@ boot.loader.efi.canTouchEfiVariables = true;
|
|||||||
# "127.0.0.1,localhost,internal.domain";
|
# "127.0.0.1,localhost,internal.domain";
|
||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
|
boot.kernelParams = [ "ipv6.disable=1" ];
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
networking.hostName = "nixos"; # Define your hostname.
|
||||||
|
networking.enableIPv6 = false;
|
||||||
|
|
||||||
# VM
|
# VM
|
||||||
virtualisation.virtualbox.host.enable = true;
|
virtualisation.virtualbox.host.enable = true;
|
||||||
@@ -59,7 +60,7 @@ boot.loader.efi.canTouchEfiVariables = true;
|
|||||||
users.extraGroups.vboxusers.members = [ "nico" ];
|
users.extraGroups.vboxusers.members = [ "nico" ];
|
||||||
# virtualisation.virtualbox.guest.enable = true;
|
# virtualisation.virtualbox.guest.enable = true;
|
||||||
# virtualisation.virtualbox.guest.dragAndDrop = true;
|
# virtualisation.virtualbox.guest.dragAndDrop = true;
|
||||||
# virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
|
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
time.timeZone = "Europe/Berlin";
|
time.timeZone = "Europe/Berlin";
|
||||||
@@ -110,7 +111,7 @@ services.mullvad-vpn.enable = true;
|
|||||||
services.mullvad-vpn.package = pkgs.mullvad-vpn;
|
services.mullvad-vpn.package = pkgs.mullvad-vpn;
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
users.users.nico = { isNormalUser = true; description = "nico"; extraGroups = [ "networkmanager"
|
users.users.nico = { isNormalUser = true; description = "nico"; extraGroups = [ "networkmanager"
|
||||||
"wheel" "adbusers" "docker"]; packages = with pkgs; [
|
"wheel" "adbusers" "docker" "input" "dialout"]; packages = with pkgs; [
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -121,13 +122,21 @@ services.mullvad-vpn.enable = true;
|
|||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
services.udev.packages = [
|
||||||
|
pkgs.platformio-core
|
||||||
|
pkgs.openocd
|
||||||
|
];
|
||||||
|
|
||||||
# services.flatpak.enable = true;
|
# services.flatpak.enable = true;
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run: $ nix search wget
|
# List packages installed in system profile. To search, run: $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# grayjay
|
# grayjay
|
||||||
signal-desktop
|
signal-desktop
|
||||||
|
obsidian
|
||||||
discord
|
discord
|
||||||
|
anki
|
||||||
|
grayjay
|
||||||
lutris
|
lutris
|
||||||
qbittorrent
|
qbittorrent
|
||||||
vim
|
vim
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
./nvim
|
./nvim
|
||||||
./emacs
|
./emacs
|
||||||
./terminal
|
./terminal
|
||||||
# ./rofi
|
./rofi
|
||||||
./fuzzel
|
# ./fuzzel
|
||||||
./niri
|
./niri
|
||||||
./hyprland
|
./hyprland
|
||||||
# ./tmux
|
# ./tmux
|
||||||
|
|||||||
@@ -257,6 +257,12 @@ layout {
|
|||||||
// This line starts waybar, a commonly used bar for Wayland compositors.
|
// This line starts waybar, a commonly used bar for Wayland compositors.
|
||||||
spawn-at-startup "waybar"
|
spawn-at-startup "waybar"
|
||||||
spawn-at-startup "wpaperd"
|
spawn-at-startup "wpaperd"
|
||||||
|
spawn-at-startup "xwayland-satellite"
|
||||||
|
spawn-at-startup "wl-paste" "--watch" "cliphist" "store"
|
||||||
|
|
||||||
|
environment {
|
||||||
|
DISPLAY ":0"
|
||||||
|
}
|
||||||
|
|
||||||
// Uncomment this line to ask the clients to omit their client-side decorations if possible.
|
// Uncomment this line to ask the clients to omit their client-side decorations if possible.
|
||||||
// If the client will specifically ask for CSD, the request will be honored.
|
// If the client will specifically ask for CSD, the request will be honored.
|
||||||
@@ -307,6 +313,19 @@ window-rule {
|
|||||||
open-floating true
|
open-floating true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// open rofi in floating window
|
||||||
|
window-rule {
|
||||||
|
match app-id=r#"rofi$"#
|
||||||
|
match title="rofi"
|
||||||
|
open-floating true
|
||||||
|
}
|
||||||
|
|
||||||
|
window-rule {
|
||||||
|
match app-id=r#"nautilus$"#
|
||||||
|
match title="nautilus"
|
||||||
|
open-floating true
|
||||||
|
}
|
||||||
|
|
||||||
// Example: block out two password managers from screen capture.
|
// Example: block out two password managers from screen capture.
|
||||||
// (This example rule is commented out with a "/-" in front.)
|
// (This example rule is commented out with a "/-" in front.)
|
||||||
/-window-rule {
|
/-window-rule {
|
||||||
@@ -343,8 +362,9 @@ binds {
|
|||||||
|
|
||||||
// Suggested binds for running programs: terminal, app launcher, screen locker.
|
// Suggested binds for running programs: terminal, app launcher, screen locker.
|
||||||
Mod+Return hotkey-overlay-title="Open a Terminal: ghostty" { spawn "ghostty"; }
|
Mod+Return hotkey-overlay-title="Open a Terminal: ghostty" { spawn "ghostty"; }
|
||||||
Mod+M hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; }
|
Mod+M hotkey-overlay-title="Run an Application: rofi" { spawn "rofi" "-show" "drun"; }
|
||||||
Super+Alt+L hotkey-overlay-title="Power menu" { spawn "rofi-power-menu"; }
|
Super+Alt+L hotkey-overlay-title="Power menu" { spawn "rofi" "-show" "power-menu" "-modi" "power-menu:rofi-power-menu"; }
|
||||||
|
Super+V hotkey-overlay-title="Clipboard history" { spawn "bash" "-c" "cliphist list | rofi -dmenu | cliphist decode | wl-copy"; }
|
||||||
|
|
||||||
// You can also use a shell. Do this if you need pipes, multiple commands, etc.
|
// You can also use a shell. Do this if you need pipes, multiple commands, etc.
|
||||||
// Note: the entire command goes as a single argument in the end.
|
// Note: the entire command goes as a single argument in the end.
|
||||||
@@ -352,10 +372,10 @@ binds {
|
|||||||
|
|
||||||
// Example volume keys mappings for PipeWire & WirePlumber.
|
// Example volume keys mappings for PipeWire & WirePlumber.
|
||||||
// The allow-when-locked=true property makes them work even when the session is locked.
|
// The allow-when-locked=true property makes them work even when the session is locked.
|
||||||
XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+"; }
|
XF86AudioRaiseVolume allow-when-locked=true { spawn "pactl" "set-sink-volume" "@DEFAULT_SINK@" "+1%"; }
|
||||||
XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-"; }
|
XF86AudioLowerVolume allow-when-locked=true { spawn "pactl" "set-sink-volume" "@DEFAULT_SINK@" "-1%"; }
|
||||||
XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
|
XF86AudioMute allow-when-locked=true { spawn "pactl" "set-sink-mute" "@DEFAULT_SINK@" "toggle"; }
|
||||||
XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
|
// XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
|
||||||
|
|
||||||
// Open/close the Overview: a zoomed-out view of workspaces and windows.
|
// Open/close the Overview: a zoomed-out view of workspaces and windows.
|
||||||
// You can also move the mouse into the top-left hot corner,
|
// You can also move the mouse into the top-left hot corner,
|
||||||
@@ -546,7 +566,7 @@ binds {
|
|||||||
|
|
||||||
// Move the focused window between the floating and the tiling layout.
|
// Move the focused window between the floating and the tiling layout.
|
||||||
Mod+Space { toggle-window-floating; }
|
Mod+Space { toggle-window-floating; }
|
||||||
Mod+V { switch-focus-between-floating-and-tiling; }
|
Mod+Shift+Space { switch-focus-between-floating-and-tiling; }
|
||||||
|
|
||||||
// Toggle tabbed column display mode.
|
// Toggle tabbed column display mode.
|
||||||
// Windows in this column will appear as vertical tabs,
|
// Windows in this column will appear as vertical tabs,
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
{ pkgs, config, lib,... }:
|
{ pkgs, config, lib,... }:
|
||||||
{
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
xwayland-satellite
|
||||||
|
xdg-desktop-portal-gtk
|
||||||
|
xdg-desktop-portal-gnome
|
||||||
|
nautilus
|
||||||
|
];
|
||||||
|
|
||||||
home.file."/home/nico/.config/niri/config.kdl" = {
|
home.file."/home/nico/.config/niri/config.kdl" = {
|
||||||
source = ./config.kdl;
|
source = ./config.kdl;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user