add kde de for Tytonidae

This commit is contained in:
ulic-youthlic 2025-05-03 23:23:02 +08:00
parent c0d67ed108
commit 5bc43a1a92
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
8 changed files with 89 additions and 81 deletions

View file

@ -17,6 +17,7 @@ Hey, you. This is my nixos configurations.
| Specialisation | DE / WM | Shell | Editor | Terminal | Launcher | Browser | DM | | Specialisation | DE / WM | Shell | Editor | Terminal | Launcher | Browser | DM |
| -------------- | ------- | ----------- | ----------- | -------- | -------- | ------- | ---------------- | | -------------- | ------- | ----------- | ----------- | -------- | -------- | ------- | ---------------- |
| default | niri | fish + bash | helix + zed | ghostty | fuzzel | firefox | greetd + regreet | | default | niri | fish + bash | helix + zed | ghostty | fuzzel | firefox | greetd + regreet |
| kde | kde | fish + bash | helix + zed | ghostty | kde run | firefox | sddm |
- david@Akun - david@Akun

View file

@ -2,7 +2,6 @@
inherit (inputs.niri-flake.lib.kdl) node leaf plain flag; inherit (inputs.niri-flake.lib.kdl) node leaf plain flag;
in { in {
david.programs.niri = { david.programs.niri = {
enable = true;
extraConfig = let extraConfig = let
output = node "output"; output = node "output";
in [ in [

View file

@ -15,12 +15,18 @@ in {
}; };
}; };
}; };
config = lib.mkIf cfg.enable { config = lib.mkMerge [
{
david.programs.niri.enable = config.youthlic.programs.niri.enable;
}
(
lib.mkIf cfg.enable {
youthlic.programs.niri = { youthlic.programs.niri = {
enable = true;
# settings = lib.mkMerge [(import ./settings.nix args) cfg.settings]; # settings = lib.mkMerge [(import ./settings.nix args) cfg.settings];
config = (lib.toList (import ./config.nix args)) ++ (lib.toList cfg.extraConfig); config = (lib.toList (import ./config.nix args)) ++ (lib.toList cfg.extraConfig);
}; };
david.programs.wluma.enable = true; david.programs.wluma.enable = true;
}; }
)
];
} }

View file

@ -20,7 +20,12 @@ in {
}; };
}; };
}; };
config = lib.mkIf cfg.enable { config = lib.mkMerge [
{
youthlic.programs.niri.enable = osConfig.youthlic.gui.enabled == "niri";
}
(
lib.mkIf cfg.enable {
home.packages = home.packages =
(with pkgs; [ (with pkgs; [
swaynotificationcenter swaynotificationcenter
@ -70,5 +75,7 @@ in {
config = cfg.config; config = cfg.config;
package = niri; package = niri;
}; };
}; }
)
];
} }

View file

@ -48,20 +48,20 @@
}; };
}; };
# specialisation = { specialisation = {
# cosmic = { # cosmic = {
# inheritParentConfig = true; # inheritParentConfig = true;
# configuration = { # configuration = {
# youthlic.gui.enabled = lib.mkForce "cosmic"; # youthlic.gui.enabled = lib.mkForce "cosmic";
# }; # };
# }; # };
# kde = { kde = {
# inheritParentConfig = true; inheritParentConfig = true;
# configuration = { configuration = {
# youthlic.gui.enabled = lib.mkForce "kde"; youthlic.gui.enabled = lib.mkForce "kde";
# }; };
# }; };
# }; };
programs.gnupg.agent = { programs.gnupg.agent = {
enable = true; enable = true;

View file

@ -13,7 +13,7 @@ in {
display = 0; display = 0;
enable = true; enable = true;
xkb = { xkb = {
layout = "cn"; layout = "us";
variant = ""; variant = "";
}; };
}; };

View file

@ -6,14 +6,13 @@
cfg = config.youthlic.gui; cfg = config.youthlic.gui;
in { in {
config = lib.mkIf (cfg.enabled == "kde") { config = lib.mkIf (cfg.enabled == "kde") {
stylix.targets.qt.platform = "kde";
services = { services = {
desktopManager.plasma6.enable = true; desktopManager.plasma6.enable = true;
displayManager.sddm.enable = true; displayManager.sddm.enable = true;
xserver = { xserver = {
enable = true; enable = true;
xkb = { xkb = {
layout = "cn"; layout = "us";
variant = ""; variant = "";
}; };
}; };

View file

@ -97,10 +97,6 @@ in {
layout = "us"; layout = "us";
variant = ""; variant = "";
}; };
# displayManager.gdm = {
# enable = true;
# wayland = true;
# };
}; };
}; };
programs = { programs = {