Switching to hyprland and hyprland conf
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
./desktop-environment.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
@@ -17,10 +18,6 @@
|
|||||||
networking.hostName = "amelia"; # Define your hostname.
|
networking.hostName = "amelia"; # Define your hostname.
|
||||||
# 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 = "http://user:password@proxy:port/";
|
|
||||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
|
||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
@@ -52,7 +49,7 @@
|
|||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
services.xserver.displayManager.sddm.enable = true;
|
services.xserver.displayManager.sddm.enable = true;
|
||||||
services.xserver.displayManager.sddm.wayland.enable = true;
|
services.xserver.displayManager.sddm.wayland.enable = true;
|
||||||
services.xserver.desktopManager.plasma6.enable = true;
|
services.xserver.desktopManager.plasma6.enable = false;
|
||||||
|
|
||||||
# Configure console keymap
|
# Configure console keymap
|
||||||
console.keyMap = "de";
|
console.keyMap = "de";
|
||||||
@@ -78,7 +75,6 @@
|
|||||||
epiphany
|
epiphany
|
||||||
nodejs_24
|
nodejs_24
|
||||||
cmake
|
cmake
|
||||||
kitty
|
|
||||||
hyfetch
|
hyfetch
|
||||||
elan
|
elan
|
||||||
gnat15
|
gnat15
|
||||||
|
|||||||
44
desktop-environment.nix
Normal file
44
desktop-environment.nix
Normal 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" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user