Merge pull request 'Plasma 6 config' (#2) from init-kde into master
Reviewed-on: #2
This commit is contained in:
commit
03c62a86e8
6 changed files with 64 additions and 2 deletions
|
@ -23,7 +23,7 @@
|
||||||
inputs@{ self, nixpkgs, ... }:
|
inputs@{ self, nixpkgs, ... }:
|
||||||
let
|
let
|
||||||
hosts = {
|
hosts = {
|
||||||
"work-ntb" = "x86_64-linux";
|
"wenar-nix" = "x86_64-linux";
|
||||||
"lenar" = "x86_64-linux";
|
"lenar" = "x86_64-linux";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
22
homeManagerModules/desktop/plasma.nix
Normal file
22
homeManagerModules/desktop/plasma.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.krop.hm.desktop.plasma;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.krop.hm.desktop.plasma = {
|
||||||
|
enable = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
example = true;
|
||||||
|
description = "Enable my plasma configuration";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
|
@ -15,6 +15,12 @@ in
|
||||||
example = false;
|
example = false;
|
||||||
description = "Enable my misc applications";
|
description = "Enable my misc applications";
|
||||||
};
|
};
|
||||||
|
syncthing = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = true;
|
||||||
|
example = false;
|
||||||
|
description = "Enable syncthing";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
@ -27,5 +33,11 @@ in
|
||||||
joplin-desktop
|
joplin-desktop
|
||||||
wireshark
|
wireshark
|
||||||
];
|
];
|
||||||
|
services.syncthing = {
|
||||||
|
enable = true;
|
||||||
|
tray = lib.mkIf config.krop.hm.desktop.plasma.enable {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
changeDefaultNetwork = true;
|
changeDefaultNetwork = true;
|
||||||
};
|
};
|
||||||
de.gnome = {
|
de.plasma = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,5 +2,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./gnome.nix
|
./gnome.nix
|
||||||
|
./plasma.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
27
nixosModules/system/de/plasma.nix
Normal file
27
nixosModules/system/de/plasma.nix
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.krop.de.plasma;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.krop.de.plasma = {
|
||||||
|
enable = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
example = true;
|
||||||
|
description = "Enable KDE plasma";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
services = {
|
||||||
|
xserver.enable = true;
|
||||||
|
displayManager.sddm.enable = true;
|
||||||
|
displayManager.sddm.wayland.enable = true;
|
||||||
|
desktopManager.plasma6.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue