This commit is contained in:
Weckyy702
2026-01-12 11:23:10 +01:00
parent 6122cba650
commit 0524def0ad
16 changed files with 154 additions and 41 deletions

View File

@@ -0,0 +1,57 @@
{ config, pkgs, ...}: {
## System wide configuration
# Configure keymap in X11
services.xserver.xkb = {
layout = "de";
variant = "";
};
services.greetd = {
enable = true;
useTextGreeter = true;
settings = {
default_session = {
command = "${pkgs.tuigreet}/bin/tuigreet --time --cmd hyprland";
user = "greeter";
};
};
};
programs.hyprland = {
enable = true;
withUWSM = true;
xwayland.enable = true;
};
environment.systemPackages = with pkgs; [
libnotify
dunst
];
# Required to use hyprlock
security.pam.services.hyprlock = {};
# Configure electron apps to use wayland
environment.sessionVariables.NIXOS_OZONE_WL = "1";
## Home-Manager specific configuration
home-manager.users.weckyy702 = {
wayland.windowManager.hyprland = {
enable = true;
settings = import ./settings.nix;
xwayland.enable = true;
systemd.enable = true;
};
programs.hyprlock = {
enable = true;
};
programs.wofi = {
enable = true;
};
services.hyprpaper = {
enable = true;
};
services.hyprsunset.enable = true;
services.hyprpolkitagent.enable = true;
services.hypridle.enable = true;
};
}

View File

@@ -0,0 +1,45 @@
{
"$mod" = "SUPER";
general = {
border_size = 0;
gaps_in = 5;
gaps_out = 10;
layout = "dwindle";
resize_on_border = true;
};
snap = {
};
input = {
kb_layout = "de";
};
bind = builtins.concatLists [
[
"$mod, Q, exit"
"$mod, Return, exec, kitty"
"$mod, D, exec, wofi --show drun"
"$mod, F2, exec, firefox"
"$mod, c, killactive"
"$mod, f, fullscreen"
]
# Switch workspaces
(map (i: "$mod, ${builtins.toString i}, workspace, ${builtins.toString i}") [1 2 3 4 5 6 7 8 9])
(map (i: "$mod+SHIFT, ${builtins.toString i}, movetoworkspace, ${builtins.toString i}") [1 2 3 4 5 6 7 8 9])
];
decoration = {
shadow.enabled = false;
blur.enabled = true;
};
misc.disable_hyprland_logo = true;
cursor.inactive_timeout = 5;
ecosystem.no_update_news = true;
ecosystem.no_donation_nag = true;
}