Activate zeus modes
This commit is contained in:
parent
7f741aeef8
commit
0347951d04
|
@ -1,5 +1,31 @@
|
||||||
let
|
let
|
||||||
inherit (import (import ../nix/sources.nix).nixos-unstable { }) lib;
|
inherit (import (import ../nix/sources.nix).nixos-unstable { }) lib;
|
||||||
|
restrictedPages = [
|
||||||
|
"reddit.com"
|
||||||
|
"github.com"
|
||||||
|
"*.ccc.de"
|
||||||
|
"haskell.org"
|
||||||
|
"*.haskell.org"
|
||||||
|
"*.nixos.org"
|
||||||
|
"nixos.org"
|
||||||
|
"matrix.org"
|
||||||
|
"element.io"
|
||||||
|
"youtube.de"
|
||||||
|
"youtube.com"
|
||||||
|
"*.element.io"
|
||||||
|
"zeit.de"
|
||||||
|
"heise.de"
|
||||||
|
"spiegel.de"
|
||||||
|
"xkcd.com"
|
||||||
|
"smbc-comics.com"
|
||||||
|
"tagesschau.de"
|
||||||
|
"welt.de"
|
||||||
|
"ndr.de"
|
||||||
|
"ard.de"
|
||||||
|
"zdf.de"
|
||||||
|
"twitter.com"
|
||||||
|
"chaos.social"
|
||||||
|
];
|
||||||
makeConfig = hostName: imports:
|
makeConfig = hostName: imports:
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
imports = imports ++ [ ./roles/default.nix ];
|
imports = imports ++ [ ./roles/default.nix ];
|
||||||
|
@ -41,34 +67,6 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
tinkerPages = [
|
|
||||||
"reddit.com"
|
|
||||||
"github.com"
|
|
||||||
"*.ccc.de"
|
|
||||||
"haskell.org"
|
|
||||||
"*.haskell.org"
|
|
||||||
"*.nixos.org"
|
|
||||||
"nixos.org"
|
|
||||||
"matrix.org"
|
|
||||||
"element.io"
|
|
||||||
"youtube.de"
|
|
||||||
"youtube.com"
|
|
||||||
"*.element.io"
|
|
||||||
];
|
|
||||||
leisurePages = [
|
|
||||||
"zeit.de"
|
|
||||||
"heise.de"
|
|
||||||
"spiegel.de"
|
|
||||||
"xkcd.com"
|
|
||||||
"smbc-comics.com"
|
|
||||||
"tagesschau.de"
|
|
||||||
"welt.de"
|
|
||||||
"ndr.de"
|
|
||||||
"ard.de"
|
|
||||||
"zdf.de"
|
|
||||||
"twitter.com"
|
|
||||||
"chaos.social"
|
|
||||||
];
|
|
||||||
apolloConfig = name: imports:
|
apolloConfig = name: imports:
|
||||||
makeConfig "apollo" (
|
makeConfig "apollo" (
|
||||||
imports ++ [
|
imports ++ [
|
||||||
|
@ -118,41 +116,51 @@ in
|
||||||
(install (p: [ p.discord ])) # For teaching
|
(install (p: [ p.discord ])) # For teaching
|
||||||
];
|
];
|
||||||
research = apolloConfig "Research" [
|
research = apolloConfig "Research" [
|
||||||
(makeBlock (tinkerPages ++ leisurePages))
|
(makeBlock restrictedPages)
|
||||||
];
|
];
|
||||||
gaming = apolloConfig "Gaming" (unrestricted ++ [ ./roles/games.nix ]);
|
gaming = apolloConfig "Gaming" (unrestricted ++ [ ./roles/games.nix ]);
|
||||||
};
|
};
|
||||||
zeus = {
|
zeus =
|
||||||
default = makeConfig "zeus" [
|
let
|
||||||
./roles/accounting.nix
|
all = [
|
||||||
./roles/beets.nix
|
./roles/accounting.nix
|
||||||
./roles/chat.nix
|
./roles/beets.nix
|
||||||
./roles/daily-driver-programs.nix
|
./roles/daily-driver-programs.nix
|
||||||
./roles/desktop
|
./roles/desktop
|
||||||
./roles/games.nix
|
./roles/git-sign.nix
|
||||||
./roles/git-sign.nix
|
./roles/hoogle.nix
|
||||||
./roles/hoogle.nix
|
./roles/hourly-maintenance.nix
|
||||||
./roles/hourly-maintenance.nix
|
./roles/kassandra.nix
|
||||||
./roles/kassandra.nix
|
./roles/khal.nix
|
||||||
./roles/khal.nix
|
./roles/khard.nix
|
||||||
./roles/khard.nix
|
./roles/mail.nix
|
||||||
./roles/mail-client.nix
|
./roles/mpclient.nix
|
||||||
./roles/mail.nix
|
./roles/mpd.nix
|
||||||
./roles/mpclient.nix
|
./roles/on-my-machine.nix
|
||||||
./roles/mpd.nix
|
./roles/pythia.nix
|
||||||
./roles/on-my-machine.nix
|
./roles/research.nix
|
||||||
./roles/pythia.nix
|
./roles/state.nix
|
||||||
./roles/research.nix
|
./roles/taskwarrior.nix
|
||||||
./roles/state.nix
|
./roles/tinkering.nix
|
||||||
./roles/taskwarrior.nix
|
./roles/update_tasks.nix
|
||||||
./roles/tinkering.nix
|
./roles/vdirsyncer.nix
|
||||||
./roles/update_tasks.nix
|
(import ./roles/mode-switching.nix { modeDir = ".volatile/modes"; modeFile = ".volatile/mode"; })
|
||||||
./roles/vdirsyncer.nix
|
(makeAutostart "kassandra2")
|
||||||
(import ./roles/mode-switching.nix { modeDir = ".volatile/modes"; modeFile = ".volatile/mode"; })
|
(makeAutostart "unlock-ssh")
|
||||||
(makeAutostart "kassandra2")
|
];
|
||||||
(makeAutostart "unlock-ssh")
|
orga = all ++ [
|
||||||
];
|
./roles/mail-client.nix
|
||||||
};
|
];
|
||||||
|
leisure = orga ++ [
|
||||||
|
./roles/games.nix
|
||||||
|
./roles/chat.nix
|
||||||
|
];
|
||||||
|
in
|
||||||
|
{
|
||||||
|
research = makeConfig "zeus" all;
|
||||||
|
orga = makeConfig "zeus" orga;
|
||||||
|
leisure = makeConfig "zeus" leisure;
|
||||||
|
};
|
||||||
hera = {
|
hera = {
|
||||||
default = makeConfig "hera" [
|
default = makeConfig "hera" [
|
||||||
./roles/on-my-machine.nix
|
./roles/on-my-machine.nix
|
||||||
|
|
|
@ -38,7 +38,7 @@ in
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
User = "maralorn";
|
User = "maralorn";
|
||||||
ExecStart = "/disk/volatile/maralorn/modes/default/activate";
|
ExecStart = "/disk/volatile/maralorn/modes/orga/activate";
|
||||||
};
|
};
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue