treewide: move defaults to dedicated folder
This commit is contained in:
parent
a652c76523
commit
00c06f982b
6 changed files with 0 additions and 0 deletions
|
|
@ -1,52 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
name = "plasma";
|
||||
cfg = config.nixowos.graphical.${name};
|
||||
in
|
||||
{
|
||||
options.nixowos.graphical.${name} = {
|
||||
enable = lib.mkEnableOption name;
|
||||
|
||||
startOnFirstTTY = lib.mkEnableOption "starting plasma from tty1" // {
|
||||
description = ''
|
||||
Whether to start ${name} automatically from tty1.
|
||||
|
||||
note: this replaces sddm, which also means kwallet will not be unlocked automatically.
|
||||
kwallet is responsible for storing secrets, using your password for encryption.
|
||||
It's used by browsers, NetworkManager, and many more.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
kdePackages.plasma-keyboard
|
||||
kdePackages.qtvirtualkeyboard
|
||||
wl-clipboard
|
||||
];
|
||||
|
||||
environment.interactiveShellInit =
|
||||
lib.mkIf cfg.startOnFirstTTY
|
||||
/* sh */ "test $(tty) = /dev/tty1 && startplasma-wayland";
|
||||
|
||||
services.displayManager.sddm.enable = lib.mkIf cfg.startOnFirstTTY false;
|
||||
|
||||
# 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