Compare commits
3 commits
265464ad21
...
36001254bf
Author | SHA1 | Date | |
---|---|---|---|
36001254bf | |||
62935211c5 | |||
38d50cb04d |
1 changed files with 38 additions and 10 deletions
|
@ -78,6 +78,7 @@ in
|
|||
programs.wireshark =
|
||||
{
|
||||
enable = true;
|
||||
package = pkgs.wireshark;
|
||||
};
|
||||
|
||||
programs.adb.enable = true;
|
||||
|
@ -183,6 +184,33 @@ in
|
|||
devices = [{ device = "/dev/sda"; } { device = "/dev/sdb"; }];
|
||||
};
|
||||
|
||||
# block certain sites to prevent procrastination
|
||||
systemd.services.procrastinationstop = {
|
||||
serviceConfig.Type = "oneshot";
|
||||
wantedBy = [ ];
|
||||
script = ''
|
||||
ln -sf ${pkgs.writeText "blockedHosts" ''
|
||||
::1 twitter.com
|
||||
127.0.0.1 twitter.com
|
||||
::1 api.twitter.com
|
||||
127.0.0.1 api.twitter.com
|
||||
::1 toot.matereal.eu
|
||||
127.0.0.1 toot.matereal.eu
|
||||
::1 tagesschau.de
|
||||
127.0.0.1 tagesschau.de
|
||||
::1 dnn.de
|
||||
127.0.0.1 dnn.de
|
||||
''} /etc/hosts
|
||||
'';
|
||||
};
|
||||
|
||||
systemd.services.procrastinationstart = {
|
||||
serviceConfig.Type = "oneshot";
|
||||
wantedBy = [ ];
|
||||
script = ''
|
||||
ln -sf /etc/static/hosts /etc/hosts
|
||||
'';
|
||||
};
|
||||
|
||||
fonts = {
|
||||
fontDir.enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue