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

@@ -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;