41 lines
1 KiB
Nix
41 lines
1 KiB
Nix
{ specialArgs, inputs, config, pkgs, lib, ... }:
|
|
|
|
let
|
|
plasma = pkgs.writeScriptBin "plasma" ''
|
|
${pkgs.plasma-workspace}/bin/startplasma-wayland &> /dev/null
|
|
'';
|
|
|
|
in {
|
|
services = {
|
|
printing.enable = true;
|
|
pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
jack.enable = true;
|
|
wireplumber.enable = true;
|
|
};
|
|
xserver = {
|
|
enable = true;
|
|
autorun = false;
|
|
layout = "us";
|
|
xkbVariant = "altgr-intl";
|
|
exportConfiguration = true;
|
|
excludePackages = (with pkgs; [ xterm ]);
|
|
displayManager.startx.enable = true;
|
|
desktopManager.plasma5.enable = true;
|
|
};
|
|
greetd = {
|
|
enable = true;
|
|
settings = {
|
|
default_session.command = ''
|
|
${pkgs.greetd.tuigreet}/bin/tuigreet --remember --user-menu --asterisks --time --greeting "Welcome to NixOS" --cmd ${plasma}/bin/plasma'';
|
|
initial_session = {
|
|
command = "${plasma}/bin/plasma";
|
|
user = "user";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|