mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-07-09 21:41:12 +00:00
[Desktop/Plasma] add Plasma 6
Allow both desktops to exist at the same time. Add "plasma6" environment option.
This commit is contained in:
parent
de2556ac4d
commit
8b9551bc86
7 changed files with 123 additions and 90 deletions
20
desktop/plasma/plasma6.nix
Normal file
20
desktop/plasma/plasma6.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.aviallon.desktop;
|
||||
generic = import ./generic.nix {
|
||||
kdePackages = pkgs.kdePackages;
|
||||
};
|
||||
in {
|
||||
config = mkIf (cfg.enable && (cfg.environment == "plasma6")) {
|
||||
# Enable the Plasma 6 Desktop Environment.
|
||||
services.desktopManager.plasma6 = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = generic.commonPackages;
|
||||
|
||||
# We prefer Plasma Wayland
|
||||
services.displayManager.defaultSession = "plasma";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue