-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.nix
110 lines (101 loc) · 2.99 KB
/
home.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
106
107
108
109
110
{ config, lib, nixpkgs, inputs, outputs, pkgs, ... }: {
# do something with home-manager here, for instance:
imports = [ inputs.home-manager.nixosModules.home-manager ];
home-manager.backupFileExtension = ".home-manager.bak";
home-manager.users.annoyingrains = {
/* The home.stateVersion option does not have a default and must be set */
home.stateVersion = "23.11";
/* Here goes the rest of your home-manager config, e.g. home.packages = [ pkgs.foo ]; */
programs.firefox = {
enable = true;
profiles.annoyingrains = {
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
ublock-origin
dearrow
sponsorblock
clearurls
plasma-integration
return-youtube-dislikes
reddit-moderator-toolbox
user-agent-string-switcher
keepassxc-browser
streetpass-for-mastodon
];
settings = {
"signon.rememberSignons" = false;
};
};
};
# https://nixos.wiki/wiki/Virt-manager
dconf.settings = {
"org/virt-manager/virt-manager/connections" = {
autoconnect = [ "qemu:///system" ];
uris = [ "qemu:///system" ];
};
};
# write sshcontrol with my gpg/ssh keygrip.
# This allows me to ssh using my GPG key
home.file.".gnupg/sshcontrol" = {
source = dotfiles/sshcontrol;
};
# Configure GPG to work with pcscd
# https://blog.apdu.fr/posts/2019/06/gnupg-and-pcsc-conflicts/
home.file.".gnupg/scdaemon.conf" = {
source = dotfiles/scdaemon.conf;
};
xdg.desktopEntries = {
wlx-overlay-s = {
name = "wlx-overlay-s";
genericName = "VR Overlay";
exec = "LIBMONADO_PATH=${pkgs.monado}/lib/libmonado.so wlx-overlay-s --openxr";
terminal = true;
categories = [ "Application" ];
mimeType = [ ];
};
start-monado = {
name = "Start Monado";
genericName = "VR Compositor";
exec = "systemctl --user start monado";
terminal = false;
categories = [ "Application" ];
mimeType = [ ];
};
stop-monado = {
name = "Stop Monado";
genericName = "VR Compositor";
exec = "systemctl --user stop monado";
terminal = false;
categories = [ "Application" ];
mimeType = [ ];
};
};
xdg.configFile."openxr/1/active_runtime.json".text = ''
{
"file_format_version": "1.0.0",
"runtime": {
"name": "Monado",
"library_path": "${pkgs.monado}/lib/libopenxr_monado.so"
}
}
'';
xdg.configFile."openvr/openvrpaths.vrpath".text = ''
{
"config" :
[
"~/.local/share/Steam/config"
],
"external_drivers" : null,
"jsonid" : "vrpathreg",
"log" :
[
"~/.local/share/Steam/logs"
],
"runtime" :
[
"${pkgs.opencomposite}/lib/opencomposite"
],
"version" : 1
}
'';
};
}