make zed work
This commit is contained in:
@@ -49,9 +49,6 @@
|
|||||||
golink.overlays.default
|
golink.overlays.default
|
||||||
nixgl.overlay
|
nixgl.overlay
|
||||||
zig.overlays.default
|
zig.overlays.default
|
||||||
(final: prev: {
|
|
||||||
zen-browser = zen-browser.packages.${prev.system}.default;
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
pkgs =
|
pkgs =
|
||||||
@@ -114,6 +111,7 @@
|
|||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit hostname;
|
inherit hostname;
|
||||||
inherit headless;
|
inherit headless;
|
||||||
|
inherit inputs;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -83,8 +83,6 @@ in {
|
|||||||
nnn
|
nnn
|
||||||
ripgrep
|
ripgrep
|
||||||
wget
|
wget
|
||||||
zed-editor
|
|
||||||
zen-browser
|
|
||||||
zsh
|
zsh
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -97,7 +97,7 @@
|
|||||||
];
|
];
|
||||||
extraRules = ''
|
extraRules = ''
|
||||||
# Raspberry Pi Picoprobe
|
# Raspberry Pi Picoprobe
|
||||||
SUBSYSTEM="usb", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="0003", MODE="0666"
|
# SUBSYSTEM="usb", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="0003", MODE="0666"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
owner = "gitea";
|
owner = "gitea";
|
||||||
group = "gitea";
|
group = "gitea";
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.gitea = {
|
services.gitea = {
|
||||||
|
|||||||
@@ -23,6 +23,9 @@ in {
|
|||||||
|
|
||||||
wayland.windowManager.sway = {
|
wayland.windowManager.sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
extraConfigEarly = ''
|
||||||
|
exec systemctl --user import-environment PATH
|
||||||
|
'';
|
||||||
config = {
|
config = {
|
||||||
startup = [
|
startup = [
|
||||||
{command = "swaybg -i ~/wallpapers/wallpaper.jpg";}
|
{command = "swaybg -i ~/wallpapers/wallpaper.jpg";}
|
||||||
@@ -52,34 +55,36 @@ in {
|
|||||||
natural_scroll = "enabled";
|
natural_scroll = "enabled";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
output = if hostname == "sidon"
|
output =
|
||||||
then {
|
if hostname == "sidon"
|
||||||
DP-3 = {
|
then {
|
||||||
position = "0 600";
|
DP-3 = {
|
||||||
scale = "1.33";
|
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 = [
|
workspaceOutputAssign = [
|
||||||
{
|
{
|
||||||
output = "HDMI-A-1";
|
output = "HDMI-A-1";
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
fetchurl,
|
fetchurl,
|
||||||
hostname,
|
hostname,
|
||||||
headless,
|
headless,
|
||||||
|
inputs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cliPackages = with pkgs; [
|
cliPackages = with pkgs; [
|
||||||
@@ -70,6 +71,7 @@
|
|||||||
wl-clipboard
|
wl-clipboard
|
||||||
xclip
|
xclip
|
||||||
zathura
|
zathura
|
||||||
|
zed-editor
|
||||||
];
|
];
|
||||||
|
|
||||||
defaultUser = "daniel";
|
defaultUser = "daniel";
|
||||||
@@ -79,6 +81,7 @@ in {
|
|||||||
../configs/system
|
../configs/system
|
||||||
]
|
]
|
||||||
++ lib.optionals (!headless) [
|
++ lib.optionals (!headless) [
|
||||||
|
inputs.zen-browser.homeModules.beta
|
||||||
../configs/desktop
|
../configs/desktop
|
||||||
]
|
]
|
||||||
++ lib.optionals (builtins.pathExists ./host-specific/${hostname}) [
|
++ lib.optionals (builtins.pathExists ./host-specific/${hostname}) [
|
||||||
@@ -118,6 +121,22 @@ in {
|
|||||||
stateVersion = "21.05";
|
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 = {
|
programs = {
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
home-manager.enable = true;
|
home-manager.enable = true;
|
||||||
@@ -163,6 +182,8 @@ in {
|
|||||||
|
|
||||||
vscode.enable = true;
|
vscode.enable = true;
|
||||||
|
|
||||||
|
zen-browser.enable = true;
|
||||||
|
|
||||||
zsh = {
|
zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autosuggestion.enable = true;
|
autosuggestion.enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user