make zed work

This commit is contained in:
2025-08-04 00:10:39 +01:00
parent 888ce3e9d3
commit 7b6b65cd1d
6 changed files with 55 additions and 34 deletions

View File

@@ -23,6 +23,9 @@ in {
wayland.windowManager.sway = {
enable = true;
extraConfigEarly = ''
exec systemctl --user import-environment PATH
'';
config = {
startup = [
{command = "swaybg -i ~/wallpapers/wallpaper.jpg";}
@@ -52,34 +55,36 @@ in {
natural_scroll = "enabled";
};
};
output = if hostname == "sidon"
then {
DP-3 = {
position = "0 600";
scale = "1.33";
output =
if hostname == "sidon"
then {
DP-3 = {
position = "0 600";
scale = "1.33";
};
HDMI-A-1 = {
position = "2880 0";
scale = "1.33";
transform = "270";
};
}
else {
eDP-1 = {
scale = "1.33";
};
DP-3 = {
position = "0 0";
scale = "1.33";
};
DP-4 = {
position = "2880 0";
scale = "1.33";
};
HDMI-A-1 = {
position = "2880 0";
scale = "1.33";
};
};
HDMI-A-1 = {
position = "2880 0";
scale = "1.33";
transform = "270";
};
} else {
eDP-1 = {
scale = "1.33";
};
DP-3 = {
position = "0 0";
scale = "1.33";
};
DP-4 = {
position = "2880 0";
scale = "1.33";
};
HDMI-A-1 = {
position = "2880 0";
scale = "1.33";
};
};
workspaceOutputAssign = [
{
output = "HDMI-A-1";

View File

@@ -4,6 +4,7 @@
fetchurl,
hostname,
headless,
inputs,
...
}: let
cliPackages = with pkgs; [
@@ -70,6 +71,7 @@
wl-clipboard
xclip
zathura
zed-editor
];
defaultUser = "daniel";
@@ -79,6 +81,7 @@ in {
../configs/system
]
++ lib.optionals (!headless) [
inputs.zen-browser.homeModules.beta
../configs/desktop
]
++ lib.optionals (builtins.pathExists ./host-specific/${hostname}) [
@@ -118,6 +121,22 @@ in {
stateVersion = "21.05";
};
xdg.portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
xdg-desktop-portal-wlr
];
xdgOpenUsePortal = true;
config = {
common = {
default = "gtk";
"org.freedesktop.impl.portal.Screencast" = "wlr";
"org.freedesktop.impl.portal.Screenshot" = "wlr";
};
};
};
programs = {
# Let Home Manager install and manage itself.
home-manager.enable = true;
@@ -163,6 +182,8 @@ in {
vscode.enable = true;
zen-browser.enable = true;
zsh = {
enable = true;
autosuggestion.enable = true;