-
Notifications
You must be signed in to change notification settings - Fork 0
/
linux.nix
63 lines (60 loc) · 1.33 KB
/
linux.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
{ pkgs, ... }:
{
home = {
username = "dpontoriero";
homeDirectory = "/home/dpontoriero";
};
dconf.settings = {
"org/gnome/terminal/legacy" = {
default-show-menubar = false;
tab-policy = "always";
theme-variant = "system";
};
};
programs = {
bash.enable = true;
home-manager.enable = true;
gnome-shell = {
enable = false;
extensions = [
{ package = pkgs.gnomeExtensions.gtile; }
{ package = pkgs.gnomeExtensions.night-theme-switcher; }
{ package = pkgs.gnomeExtensions.steal-my-focus-window; }
];
};
};
services = {
emacs = {
enable = true;
startWithUserSession = "graphical";
client.enable = true;
};
};
targets.genericLinux.enable = true;
systemd.user.services = {
fix_webcam = {
Unit = {
Description = "Fix IR webcam";
};
Service = {
Type = "oneshot";
ExecStart = toString (
pkgs.writeShellScript "fix_webcam" ''
#!/usr/bin/env bash
sudo rm -f /dev/video2
''
);
};
Install.WantedBy = [ "default.target" ];
};
};
systemd.user.timers = {
fix_webcam = {
Timer = {
OnStartupSec = "1m";
OnUnitActiveSec = "1m";
};
Install.WantedBy = [ "timers.target" ];
};
};
}