-
Notifications
You must be signed in to change notification settings - Fork 1
/
apollo.nix
49 lines (44 loc) · 1.29 KB
/
apollo.nix
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
{ config, lib, pkgs, ... }: {
home = {
activation = {
linkDesktopApplications =
lib.hm.dag.entryAfter [ "writeBoundary" "createXdgUserDirectories" ] ''
$DRY_RUN_CMD ln -sfn \
${config.home.homeDirectory}/.nix-profile/share/applications \
${config.xdg.dataHome}/applications/home-manager
'';
};
homeDirectory = "/home/deck";
stateVersion = "22.11";
username = lib.mkForce "deck";
};
imports = [
./home-manager
./home-manager/fish
./home-manager/lf
./home-manager/kitty.nix
./home-manager/neovim
];
nixpkgs.config.packageOverrides = _: {
nixGl =
let t = fetchTarball
"https://github.com/guibou/nixGL/archive/master.tar.gz";
in import "${t}/default.nix" { enable32bits = false; };
};
programs = {
kitty = {
package = pkgs.symlinkJoin {
name = "kitty-glx";
paths = with pkgs; [ kitty ];
postBuild =
let app = pkgs.writeShellScript "kitty-glx-sh" ''
${lib.meta.getExe pkgs.nixGl.nixGLMesa} \
${lib.meta.getExe pkgs.kitty} --start-as fullscreen
'';
in "ln -sfn ${app} $out/bin/kitty";
};
};
home-manager.enable = true;
};
targets.genericLinux.enable = true;
}