steal from MaxMur

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-04-03 17:57:49 +03:00
parent f31ca59f58
commit 211e509628
11 changed files with 94 additions and 84 deletions

View File

@ -5,9 +5,10 @@
lib,
...
}: let
cfg = config.desktop.niri;
inherit (lib) mkIf mkEnableOption mkDefault mkForce getExe;
inherit (osConfig.networking) hostId;
inherit (config.lib.stylix) colors;
inherit (config.stylix) colors;
cfg = config.desktop.niri;
cursorSize = config.stylix.cursor.size;
cursorName = config.stylix.cursor.name;
keyboard =
@ -16,18 +17,18 @@
else "platform";
xdgPics =
config.xdg.userDirs.pictures;
ifLaptop = lib.mkIf (hostId != "c7f6c4a1");
ifLaptop = mkIf (hostId != "c7f6c4a1");
# TODO: make terminal depent on thing outside a module
terminal = lib.getExe pkgs.wezterm;
launcher = lib.getExe pkgs.fuzzel;
terminal = getExe pkgs.wezterm;
launcher = getExe pkgs.fuzzel;
browser = "app.zen_browser.zen";
lockscreen = lib.getExe pkgs.gtklock;
lockscreen = getExe pkgs.gtklock;
in {
options = {
desktop.niri.enable =
lib.mkEnableOption "enable niri desktop";
mkEnableOption "enable niri desktop";
};
config = lib.mkIf cfg.enable {
config = mkIf cfg.enable {
stylix.targets = {
waybar.enable = false;
wpaperd.enable = true;
@ -274,7 +275,7 @@ in {
match-mode = "fuzzy";
icon-theme = "${config.dconf.settings."org/gnome/desktop/interface".icon-theme}";
};
border = lib.mkDefault {
border = mkDefault {
width = 3;
radius = 12;
};
@ -1039,7 +1040,7 @@ in {
Service =
graphicalService.Service
// {
Environment = lib.mkForce "QT_QPA_PLATFORM=wayland";
Environment = mkForce "QT_QPA_PLATFORM=wayland";
};
};
xwayland-satellite = mkGraphicalService {
@ -1047,12 +1048,12 @@ in {
graphicalService.Service
// {
Type = "simple";
ExecStart = lib.getExe pkgs.xwayland-satellite + " :123";
ExecStart = getExe pkgs.xwayland-satellite + " :123";
};
};
wpaperd = mkGraphicalService {
Service =
lib.mkDefault graphicalService.Service;
mkDefault graphicalService.Service;
};
gnome-polkit-agent = mkGraphicalService {
Service =