refactors
This commit is contained in:
parent
26b798c4b3
commit
d18110a018
15 changed files with 230 additions and 379 deletions
52
configuration/modules/desktop.nix
Normal file
52
configuration/modules/desktop.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
wl-clipboard
|
||||
libsForQt5.qt5.qtquickcontrols2
|
||||
libsForQt5.qt5.qtgraphicaleffects
|
||||
];
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
};
|
||||
|
||||
xdg = {
|
||||
mime.enable = true;
|
||||
menus.enable = true;
|
||||
portal.enable = true;
|
||||
};
|
||||
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
withUWSM = true;
|
||||
package = inputs.hyprland.packages."x86_64-linux".hyprland;
|
||||
portalPackage = inputs.hyprland.packages."x86_64-linux".xdg-desktop-portal-hyprland;
|
||||
};
|
||||
|
||||
services = {
|
||||
xserver = {
|
||||
enable = true;
|
||||
videoDrivers = ["amdgpu"];
|
||||
xkb = {
|
||||
layout = "cz";
|
||||
variant = "";
|
||||
options = "caps:escape";
|
||||
};
|
||||
};
|
||||
displayManager.sddm = {
|
||||
enable = true;
|
||||
theme = "${import ./sddm-theme.nix {inherit pkgs;}}";
|
||||
autoNumlock = true;
|
||||
};
|
||||
};
|
||||
|
||||
environment.sessionVariables = {
|
||||
XDG_CURRENT_DESKTOP = "Hyprland";
|
||||
TERMINAL = "foot";
|
||||
EDITOR = "nvim";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue