Repository navigation
Expand file tree
/
Copy pathapps.nix
More file actions
80 lines (71 loc) · 1.69 KB
/
Copy pathapps.nix
File metadata and controls
80 lines (71 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{ lib, pkgs, ... }:
let
ghostty = pkgs.applyPatches {
src = pkgs.ghostty;
patchPhase = ''
sed -i 's/--gtk-single-instance=true/+new-window/' \
share/applications/*
'';
};
xdg-terminal-exec = pkgs.xdg-terminal-exec.overrideAttrs (prev: {
postFixup = ''
${lib.trim prev.postFixup} --prefix PATH : ${
with pkgs; lib.makeBinPath [ findutils gawk ]
}
'';
});
in
{
systemd.oomd.enableUserSlices = true;
nixpkgs.overlays = [
(final: prev: {
xdg-utils = final.writeShellScriptBin "xdg-open" ''
cmd="cd ''${PWD@Q} && ${final.glib}/bin/gio open ''${@@Q}"
elephant activate "runner;generic;run;sh;-c ''${cmd@Q}"
'';
})
];
environment = {
systemPackages = with pkgs; [
(symlinkJoin {
inherit (nautilus) name meta;
paths = [ nautilus nautilus-python ];
})
];
pathsToLink = [ "/share/nautilus-python/extensions" ];
};
home = {
wayland.keybinds."Mod+Return" = "walker";
services = {
walker = {
enable = true;
systemd.enable = true;
};
elephant = {
enable = true;
package = pkgs.elephant.override {
enabledProviders = [
"desktopapplications" "runner"
"files" "clipboard" "websearch"
];
};
};
};
programs.ghostty = {
enable = true;
package = ghostty;
settings = {
resize-overlay = "never";
app-notifications = false;
confirm-close-surface = false;
};
};
xdg = {
terminal-exec = {
enable = true;
package = xdg-terminal-exec;
};
cacheFile.elephant.persist = true;
};
};
}