change from mono-home-manager to full flake multi-system configuration
This commit is contained in:
41
modules/desktop.nix
Normal file
41
modules/desktop.nix
Normal file
@@ -0,0 +1,41 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
systemd = pkgs.systemd;
|
||||
sway = pkgs.sway;
|
||||
in {
|
||||
programs.sway = {
|
||||
enable = true;
|
||||
wrapperFeatures.gtk = true;
|
||||
};
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
programs.xwayland.enable = true; # For compatibility with apps needing X
|
||||
services.xserver.enable = false;
|
||||
services.libinput.enable = true; # Touchpad, mouse, input devices
|
||||
programs.light.enable = true; # For backlight control
|
||||
security.polkit.enable = true;
|
||||
|
||||
# Configure keymap
|
||||
services.xserver.xkb = {
|
||||
layout = "de";
|
||||
variant = "";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
swaylock
|
||||
swayidle
|
||||
wl-clipboard
|
||||
brightnessctl
|
||||
bemenu
|
||||
xwayland
|
||||
|
||||
(writers.writeDashBin "sway-logout" ''
|
||||
${systemd}/bin/systemctl --user unset-environment WAYLAND_DISPLAY SWAYSOCK
|
||||
${sway}/bin/swaymsg exit
|
||||
'')
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user