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