feat: Fixed wezterm config on mac and only use HYPRLAND_INSTANCE_SIGNATURE on linux
Signed-off-by: uttarayan21 <email@uttarayan.me>
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
users.users.remotebuilder = {
|
users.users.remotebuilder = {
|
||||||
isNormalUser = true;
|
# isNormalUser = true;
|
||||||
openssh.authorizedKeys.keyFiles = [../../secrets/id_ed25519.pub];
|
openssh.authorizedKeys.keyFiles = [../../secrets/id_ed25519.pub];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,11 @@
|
|||||||
top = 2,
|
top = 2,
|
||||||
bottom = 0,
|
bottom = 0,
|
||||||
},
|
},
|
||||||
window_decorations = ${if pkgs.stdenv.isLinux then "NONE" else "RESIZE"},
|
window_decorations = "${
|
||||||
|
if pkgs.stdenv.isLinux
|
||||||
|
then "NONE"
|
||||||
|
else "RESIZE"
|
||||||
|
}",
|
||||||
use_ime = false,
|
use_ime = false,
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -35,9 +35,11 @@
|
|||||||
interactiveShellInit = ''
|
interactiveShellInit = ''
|
||||||
${pkgs.pfetch-rs}/bin/pfetch
|
${pkgs.pfetch-rs}/bin/pfetch
|
||||||
${lib.optionalString (device.isLinux && !device.isNix) "source /etc/profile.d/nix-daemon.fish"}
|
${lib.optionalString (device.isLinux && !device.isNix) "source /etc/profile.d/nix-daemon.fish"}
|
||||||
if not set -q HYPRLAND_INSTANCE_SIGNATURE
|
${lib.optionalString device.isNix
|
||||||
set -x HYPRLAND_INSTANCE_SIGNATURE (hyprctl instances | head -1 | cut -d ' ' -f2 | tr -d :)
|
'' if not set -q HYPRLAND_INSTANCE_SIGNATURE
|
||||||
end
|
set -x HYPRLAND_INSTANCE_SIGNATURE (hyprctl instances | head -1 | cut -d ' ' -f2 | tr -d :)
|
||||||
|
end
|
||||||
|
''}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user