feat(plasma): add plasma-manager
This commit is contained in:
parent
49fe8142ad
commit
c658361fb5
|
@ -9,6 +9,9 @@
|
||||||
impermanence.url = "github:nix-community/impermanence/master";
|
impermanence.url = "github:nix-community/impermanence/master";
|
||||||
home-manager.url = "github:nix-community/home-manager";
|
home-manager.url = "github:nix-community/home-manager";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
plasma-manager.url = "github:pjones/plasma-manager";
|
||||||
|
plasma-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
plasma-manager.inputs.home-manager.follows = "home-manager";
|
||||||
lanzaboote.url = "github:nix-community/lanzaboote/v0.3.0";
|
lanzaboote.url = "github:nix-community/lanzaboote/v0.3.0";
|
||||||
lanzaboote.inputs.nixpkgs.follows = "nixpkgs";
|
lanzaboote.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
|
13
home/plasma/config.nix
Normal file
13
home/plasma/config.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
programs.plasma = {
|
||||||
|
workspace = {
|
||||||
|
lookAndFeel = "org.kde.breezedark.desktop";
|
||||||
|
#clickItemTo = "select";
|
||||||
|
};
|
||||||
|
|
||||||
|
configFile = {
|
||||||
|
baloofilerc."Basic Settings"."Indexing-Enabled" = false;
|
||||||
|
kcminputrc.Libinput."2362"."597"."UNIW0001:00 093A:0255 Touchpad".NaturalScroll = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
42
home/plasma/home.nix
Normal file
42
home/plasma/home.nix
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
{ pkgs
|
||||||
|
, lib
|
||||||
|
, config
|
||||||
|
, ... }: with lib; let
|
||||||
|
cfg = config.passthrough.plasma;
|
||||||
|
in mkIf cfg.enable {
|
||||||
|
programs.plasma = {
|
||||||
|
# https://github.com/pjones/plasma-manager
|
||||||
|
enable = true;
|
||||||
|
overrideConfig = true;
|
||||||
|
|
||||||
|
workspace = {
|
||||||
|
lookAndFeel = "org.kde.breezedark.desktop";
|
||||||
|
};
|
||||||
|
|
||||||
|
configFile = {
|
||||||
|
baloofilerc."Basic Settings"."Indexing-Enabled" = false;
|
||||||
|
};
|
||||||
|
} // cfg.extraConfig;
|
||||||
|
|
||||||
|
qt.enable = false;
|
||||||
|
qt.platformTheme.name = null;
|
||||||
|
|
||||||
|
# cursor theme
|
||||||
|
home.pointerCursor = {
|
||||||
|
package = pkgs.kdePackages.breeze;
|
||||||
|
name = "breeze_cursors";
|
||||||
|
size = 24;
|
||||||
|
};
|
||||||
|
|
||||||
|
# gtk theme
|
||||||
|
gtk.theme = {
|
||||||
|
package = pkgs.kdePackages.breeze-gtk;
|
||||||
|
name = "Breeze-Dark";
|
||||||
|
};
|
||||||
|
|
||||||
|
# gtk icons
|
||||||
|
gtk.iconTheme = {
|
||||||
|
package = pkgs.kdePackages.breeze-icons;
|
||||||
|
name = "breeze-dark";
|
||||||
|
};
|
||||||
|
}
|
38
home/plasma/nixos.nix
Normal file
38
home/plasma/nixos.nix
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
{ pkgs
|
||||||
|
, lib
|
||||||
|
, config
|
||||||
|
, plasma-manager
|
||||||
|
, ... }: with lib; let
|
||||||
|
cfg = config.home.plasma;
|
||||||
|
in {
|
||||||
|
options.home.plasma = {
|
||||||
|
enable = mkEnableOption "plasma desktop and configuration";
|
||||||
|
extraConfig = mkOption {
|
||||||
|
type = with types; anything;
|
||||||
|
default = { };
|
||||||
|
description = "extra plasma-manager configuration";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = {
|
||||||
|
users.homeModules = [
|
||||||
|
# this module passes plasma configuration to home-manager
|
||||||
|
{ passthrough.plasma = cfg; }
|
||||||
|
];
|
||||||
|
|
||||||
|
services.desktopManager.plasma6 = mkIf cfg.enable {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
home-manager.sharedModules = mkIf cfg.enable [
|
||||||
|
plasma-manager.homeManagerModules.plasma-manager
|
||||||
|
];
|
||||||
|
|
||||||
|
services.blueman = mkIf cfg.enable {
|
||||||
|
enable = mkForce false;
|
||||||
|
};
|
||||||
|
|
||||||
|
home = mkIf cfg.enable {
|
||||||
|
catppuccin.enable = mkForce false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue