-
Notifications
You must be signed in to change notification settings - Fork 0
/
home-nixos.nix
105 lines (89 loc) · 2.24 KB
/
home-nixos.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
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
args@{ config, pkgs, lib, ... }:
{
nixpkgs.config.allowUnfree = true;
nixpkgs.config.permittedInsecurePackages =
lib.optional (pkgs.obsidian.version == "1.5.3") "electron-25.9.0";
# nixpkgs.config.packageOverrides = self : rec {
# blender = self.blender.override {
# cudaSupport = true;
# };
# };
# nixpkgs.overlays = [
# (import (builtins.fetchTarball {
# url = https://github.com/nix-community/neovim-nightly-overlay/archive/master.tar.gz;
# }))
# ];
nixpkgs.overlays = [
(final: prev: {
postman = prev.postman.overrideAttrs(old: rec {
version = "20230716100528";
src = final.fetchurl {
url = "https://web.archive.org/web/${version}/https://dl.pstmn.io/download/latest/linux_64";
sha256 = "sha256-svk60K4pZh0qRdx9+5OUTu0xgGXMhqvQTGTcmqBOMq8=";
name = "${old.pname}-${version}.tar.gz";
};
});
})
];
programs = {
broot.enable = true; # directory browser
direnv = {
enable = true;
nix-direnv.enable = true;
};
firefox.enable = true;
fzf.enable = true;
gh = {
enable = true;
extensions = with pkgs; [
gh-cal
gh-eco
];
settings = {
aliases = {
co = "pr checkout";
pv = "pr view";
};
git-protocol = "https";
};
};
gh-dash = {
enable = true;
};
go.enable = true;
home-manager.enable = true;
keychain.enable = true;
z-lua = { # directory quick nav
enable = true;
enableAliases = true;
options = ["enhanced" "once" "fzf"];
};
};
home.file = {
".ghci".source = ./home/ghci;
".psqlrc".source = ./home/psqlrc;
".railsrc".source = ./home/railsrc;
};
imports = [
./common.nix
(import ./linux.nix args)
./environment.nix
./accounts
./services/dunst
./services/spotifyd
./services/trayer
./programs/alacritty
./programs/git
./programs/kitty
./programs/neomutt
./programs/neovim
./programs/rofi
# ./programs/st
./programs/tmux
./programs/vim
./programs/zathura
(import ./programs/zsh args)
./xresources
];
home.stateVersion = "18.09";
}