blob: 320d87719f4bf8a49c14b7100eae2a82ddb284a7 (
plain) (
blame)
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
|
{ pkgs, ... }:
let
nurSrc = builtins.fetchTarball {
url =
"https://github.com/nix-community/NUR/archive/1076bf182a065b1a037caaaa9edee751148582e3.tar.gz";
sha256 = "sha256:1dizlmwzl6319s9cfbd770ydlj0kf0k3yz5rzw4xni8lnh691hx7";
};
in {
imports = [ ./common.nix ./wmonly.nix ];
programs.bash.profileExtra = ''
function mklink {
if [ ! -L "$2" ]; then
ln -sfv "$1" "$2"
fi
}
mkdir -p ~/.local/share
mkdir -p ~/.config/rclone
mklink /Z/lx/Downloads ~/Downloads
mklink /Z/lx/app/lagrange ~/.config/lagrange
mklink /Z/lx/app/openssh ~/.ssh
mklink /Z/lx/app/pass ~/.password-store
mklink /Z/lx/app/thunderbird ~/.thunderbird
mklink /Z/lx.nobackup/app/cargo ~/.cargo
mklink /Z/lx/app/rclone/rclone.conf ~/.config/rclone/rclone.conf
mklink /Z/lx.nobackup/app/arduino/Arduino ~/Arduino
mklink /Z/lx.nobackup/app/arduino/.arduino15 ~/.arduino15
mklink /Z/lx/app/tagaini "$HOME/.local/share/Tagaini Jisho"
mklink /Z/lx/app/anki "$HOME/.local/share/Anki2"
mklink /Z/lx.nobackup/app/steam/.steam ~/.steam
mklink /Z/lx.nobackup/app/steam/Steam ~/.local/share/Steam
mklink /Z/lx/app/element ~/.config/Element
mklink /Z/lx/app/dino ~/.local/share/dino
mklink /Z/lx/app/signal ~/.config/Signal
mklink /Z/lx/app/supercollider/share ~/.local/share/SuperCollider
mklink /Z/lx/app/renardo ~/.config/renardo
mkdir -p ~/.xkb
mklink /etc/X11/xkb/symbols ~/.xkb/symbols
'';
programs.bash.shellAliases.z = "cd /Z/lx";
nixpkgs.config.packageOverrides = pkgs: {
nur = import nurSrc { inherit pkgs; };
};
home.file = {
".config/qutebrowser/quickmarks".source = ../qutebrowser/quickmarks;
".gtk-bookmarks".text = ''
file:///Z/lx lx
'';
};
programs.firefox.enable = true;
programs.firefox.profiles.default = {
isDefault = true;
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
#pkgs.nur.repos.rycee.firefox-addons."10ten-ja-reader"
ublock-origin
privacy-badger
startpage-private-search
];
settings = {
"extensions.autoDisableScopes" = 0;
"extensions.enabledScopes" = 15;
};
};
home.homeDirectory = "/home/lx";
xdg.userDirs.download = "/home/lx/Downloads";
gtk.gtk3.bookmarks = [ "file:///Z/lx" ];
programs.gpg = {
enable = true;
homedir = "/Z/lx/app/gnupg";
};
services.gpg-agent = {
enable = true;
enableSshSupport = false;
#pinentryFlavor = "qt";
extraConfig = "no-allow-external-cache";
};
programs.keychain = {
enable = true;
enableBashIntegration = true;
keys = [ "/Z/lx/app/openssh/id_ed25519" ];
};
services.syncthing.extraOptions = [ "--home=/Z/lx/app/syncthing" ];
}
|