initial
This commit is contained in:
commit
b4c9b055fb
20 changed files with 1540 additions and 0 deletions
40
graphical/plasma.nix
Normal file
40
graphical/plasma.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
name = "plasma";
|
||||
cfg = config.nixowos.graphical.${name};
|
||||
in
|
||||
{
|
||||
options.nixowos.graphical.${name} = {
|
||||
enable = lib.mkEnableOption name;
|
||||
|
||||
startOnFirstTTY = lib.mkEnableOption "${name} auto start from tty1";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [ pkgs.kdePackages.plasma-keyboard ];
|
||||
|
||||
environment.interactiveShellInit =
|
||||
lib.mkIf cfg.startOnFirstTTY
|
||||
/* sh */ "test $(tty) = /dev/tty1 && startplasma-wayland";
|
||||
|
||||
services.displayManager.sddm.enable = !cfg.startOnFirstTTY;
|
||||
|
||||
# remove plasma6 packages included by default
|
||||
# from optionalPackages defined in nixpkgs/nixos/modules/services/desktop-managers/plasma6.nix
|
||||
environment.plasma6.excludePackages = with pkgs.kdePackages; [
|
||||
plasma-workspace-wallpapers
|
||||
kwin-x11
|
||||
elisa
|
||||
krdp
|
||||
];
|
||||
|
||||
# use kdeconnect (opens ports)
|
||||
programs.kdeconnect.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue