Refactor: Avoid use folder for one file
All checks were successful
check / check (push) Successful in 32s
All checks were successful
check / check (push) Successful in 32s
Fix #3
This commit is contained in:
parent
c8d1f9f65a
commit
a425abee8b
34 changed files with 26 additions and 27 deletions
53
modules/system/desktop/plasma.nix
Normal file
53
modules/system/desktop/plasma.nix
Normal file
|
@ -0,0 +1,53 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.system.desktop.plasma;
|
||||
nixpkgsPr = builtins.fetchTarball {
|
||||
url = "https://github.com/Sicheng-Pan/nixpkgs/archive/5ba93319d81da028339755243fa405556a2b18d7.tar.gz";
|
||||
sha256 = "0xiighffwyhis6ni815s6bqcrvhsr3s7c208sq3c4y5p2f1g397w";
|
||||
};
|
||||
in
|
||||
{
|
||||
options.modules.system.desktop.plasma = {
|
||||
enable = mkEnableOption ''
|
||||
Enable plasma with my custom configurations
|
||||
'';
|
||||
|
||||
enableWallpaperEngine = mkEnableOption ''
|
||||
Enable wallpaper engine plugin for plasma
|
||||
'';
|
||||
|
||||
enableSddm = mkOption {
|
||||
type = types.bool;
|
||||
description = "Enable sddm with custom plasma";
|
||||
default = true;
|
||||
};
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver.enable = true;
|
||||
|
||||
# Enable the KDE Plasma Desktop Environment.
|
||||
services.displayManager.sddm.enable = cfg.enableSddm;
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
|
||||
programs.kdeconnect.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; with kdePackages; [
|
||||
krfb # Use by kdeconnect for virtualmonitorplugin "krfb-virtualmonitor"
|
||||
discover
|
||||
kgpg
|
||||
yakuake
|
||||
] ++ lib.optionals cfg.enableWallpaperEngine [
|
||||
### wallpaper-engine-plugin
|
||||
(callPackage "${nixpkgsPr}/pkgs/kde/third-party/wallpaper-engine-plugin/default.nix" {})
|
||||
qtmultimedia
|
||||
qtwebchannel
|
||||
qtwebengine
|
||||
qtwebsockets
|
||||
(python3.withPackages (python-pkgs: [ python-pkgs.websockets ]))
|
||||
###
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue