mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 06:52:13 +05:30
Started creating a (currently) unusable hyprland config
This commit is contained in:
parent
0aa71f9662
commit
0b9d486385
6 changed files with 146 additions and 5 deletions
33
system/wm/hyprland.nix
Normal file
33
system/wm/hyprland.nix
Normal 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
23
system/wm/wayland.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -14,10 +14,6 @@
|
|||
xkbVariant = "";
|
||||
xkbOptions = "caps:escape";
|
||||
excludePackages = [ pkgs.xterm ];
|
||||
windowManager.xmonad = {
|
||||
enable = true;
|
||||
enableContribAndExtras = true;
|
||||
};
|
||||
displayManager = {
|
||||
lightdm.enable = true;
|
||||
sessionCommands = ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue