Started creating a (currently) unusable hyprland config

This commit is contained in:
Emmet 2023-08-11 15:50:41 -05:00
parent 0aa71f9662
commit 0b9d486385
6 changed files with 146 additions and 5 deletions

33
system/wm/hyprland.nix Normal file
View file

@ -0,0 +1,33 @@
{ config, lib, pkgs, ... }:
{
# Import wayland config
imports = [ ./wayland.nix
./pipewire.nix
./dbus.nix
];
# Security
security = {
pam.services.swaylock = {
text = ''
auth include login
'';
};
};
programs = {
hyprland = {
enable = true;
xwayland = {
enable = true;
};
};
waybar = {
enable = true;
package = pkgs.waybar.overrideAttrs (oldAttrs: {
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
});
};
};
}

23
system/wm/wayland.nix Normal file
View file

@ -0,0 +1,23 @@
{ config, lib, pkgs, ... }:
{
imports = [ ./pipewire.nix
./dbus.nix
./gnome-keyring.nix
./fonts.nix
];
environment.systemPackages = [ pkgs.wayland ];
# Configure xwayland
services.xserver = {
enable = true;
layout = "us";
xkbVariant = "";
xkbOptions = "caps:escape";
displayManager.gdm = {
enable = true;
wayland = true;
};
};
}

View file

@ -14,10 +14,6 @@
xkbVariant = "";
xkbOptions = "caps:escape";
excludePackages = [ pkgs.xterm ];
windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
};
displayManager = {
lightdm.enable = true;
sessionCommands = ''