Switching to hyprland and hyprland conf

This commit is contained in:
2026-02-10 13:55:20 +01:00
parent 9a58fdcfb3
commit c9cee3835d
2 changed files with 46 additions and 6 deletions

View File

@@ -8,6 +8,7 @@
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./desktop-environment.nix
];
# Bootloader.
@@ -17,10 +18,6 @@
networking.hostName = "amelia"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable networking
networking.networkmanager.enable = true;
@@ -52,7 +49,7 @@
services.xserver.enable = true;
services.xserver.displayManager.sddm.enable = true;
services.xserver.displayManager.sddm.wayland.enable = true;
services.xserver.desktopManager.plasma6.enable = true;
services.xserver.desktopManager.plasma6.enable = false;
# Configure console keymap
console.keyMap = "de";
@@ -78,7 +75,6 @@
epiphany
nodejs_24
cmake
kitty
hyfetch
elan
gnat15

44
desktop-environment.nix Normal file
View File

@@ -0,0 +1,44 @@
{ pkgs, ... }:
{
programs.hyprland = {
enable = true;
xwayland.enable = true;
};
environment.systemPackages = with pkgs; [
hyprland
kitty
waybar
wofi
hyprpaper
];
services.dbus.enable = true;
programs.dconf.enable = true;
hardware.opengl.enable = true;
services.greetd.enable = true;
services.greetd.settings.default_session.command = "Hyprland";
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-hyprland ];
};
systemd.user.services.hyprland-config = {
description = "Hyprland config synchronization.";
serviceConfig = {
Type = "oneshot";
ExecStart = ''
HYPR="$HOME/.config/hypr"
if [ ! -d "$HYPR/.git" ]; then
git clone ssh://git@git.nichkara.eu/dotfiles/hypr.git "$HYPR"
else
git -C "$HYPR" pull --ff-only
fi
'';
};
wantedBy = [ "default.target" ];
};
}