modules/home/desktop/niri/default.nix: WIP move to id's

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-03-30 00:31:26 +02:00
parent dc1ebb3655
commit 686c3f73f9

View File

@ -6,16 +6,16 @@
... ...
}: let }: let
cfg = config.desktop.niri; cfg = config.desktop.niri;
hostname = osConfig.networking.hostName; inherit (osConfig.networking) hostId;
cursor_size = config.stylix.cursor.size;
inherit (config.lib.stylix) colors; inherit (config.lib.stylix) colors;
cursor_size = config.stylix.cursor.size;
keyboard = keyboard =
if hostname == "eldrid" if hostId == "eldrid"
then "chromeos" then "chromeos"
else "platform"; else "platform";
xdgPics = xdgPics =
config.xdg.userDirs.pictures; config.xdg.userDirs.pictures;
ifLaptop = lib.mkIf (hostname != "dunamis"); ifLaptop = lib.mkIf (hostId != "c7f6c4a1");
terminal = lib.getExe pkgs.ghostty; terminal = lib.getExe pkgs.ghostty;
launcher = lib.getExe pkgs.fuzzel; launcher = lib.getExe pkgs.fuzzel;
browser = "app.zen_browser.zen"; browser = "app.zen_browser.zen";
@ -409,7 +409,7 @@ in {
xkb { xkb {
layout "us,ua" layout "us,ua"
${ ${
if hostname == "dunamis" if hostId == "c7f6c4a1"
then "// variant \"colemak_dh_ortho,\"" then "// variant \"colemak_dh_ortho,\""
else "variant \"colemak_dh_ortho,\"" else "variant \"colemak_dh_ortho,\""
} }
@ -1074,8 +1074,8 @@ in {
}; };
} }
] ]
++ (lib.optionals (hostname ++ (lib.optionals (hostId
!= "dunamis") [ != "c7f6c4a1") [
{ {
edge = "top"; edge = "top";
layer = "overlay"; layer = "overlay";