mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +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
48
desktop/plasma/default.nix
Normal file
48
desktop/plasma/default.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{config, pkgs, nixpkgs-unstable, lib, ...}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.aviallon.desktop;
|
||||
optimizeCfg = config.aviallon.optimizations;
|
||||
in {
|
||||
|
||||
imports = [
|
||||
./plasma5.nix
|
||||
./plasma6.nix
|
||||
];
|
||||
|
||||
config = mkIf (cfg.enable && (cfg.environment == "plasma" || cfg.environment == "plasma6" )) {
|
||||
programs.firefox.enable = true;
|
||||
programs.firefox.policies.Extensions.Install = [ "plasma-browser-integration@kde.org" ];
|
||||
|
||||
programs.chromium.extensions = [
|
||||
"cimiefiiaegbelhefglklhhakcgmhkai" # Plasma Browser Integration
|
||||
];
|
||||
|
||||
aviallon.desktop.sddm.enable = true;
|
||||
aviallon.programs.libreoffice.qt = true;
|
||||
|
||||
xdg.portal.enable = mkDefault true;
|
||||
xdg.icons.enable = true;
|
||||
|
||||
#environment.systemPackages = [
|
||||
#config.programs.gnupg.agent.pinentryPackage
|
||||
#];
|
||||
|
||||
systemd.user.services.setup-xdg-cursors = mkIf config.xdg.icons.enable {
|
||||
script = ''
|
||||
[ -d "$HOME/.icons/default" ] || mkdir -p "$HOME/.icons/default"
|
||||
cat >"$HOME/.icons/default/index.theme" <<EOF
|
||||
[icon theme]
|
||||
Inherits=''${XCURSOR_THEME:-breeze_cursors}
|
||||
EOF
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = true;
|
||||
};
|
||||
wantedBy = [ "graphical-session-pre.target" ];
|
||||
partOf = [ "graphical-session-pre.target" ];
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue