2020-10-31 20:52:10 +01:00
|
|
|
{
|
2022-03-10 21:52:12 +01:00
|
|
|
config,
|
|
|
|
|
pkgs,
|
|
|
|
|
lib,
|
|
|
|
|
...
|
|
|
|
|
}: let
|
|
|
|
|
inherit (import <niveum/lib>) retiolumAddresses restic;
|
|
|
|
|
in {
|
2020-10-28 20:29:41 +01:00
|
|
|
imports = [
|
2022-01-18 21:29:30 +01:00
|
|
|
./backup.nix
|
2021-12-29 18:49:51 +01:00
|
|
|
./gaslight.nix
|
2020-10-28 20:29:41 +01:00
|
|
|
./hardware-configuration.nix
|
2021-12-29 18:49:51 +01:00
|
|
|
./kiosk.nix
|
|
|
|
|
./moodle-dl-meinhark.nix
|
|
|
|
|
./pulseaudio.nix
|
2022-03-10 22:59:43 +01:00
|
|
|
./home-assistant.nix
|
2021-12-29 18:49:51 +01:00
|
|
|
./tuna.nix
|
2022-01-11 12:07:51 +01:00
|
|
|
./grocy.nix
|
2022-01-17 18:53:26 +01:00
|
|
|
./spotifyd.nix
|
2021-02-07 16:08:11 +01:00
|
|
|
<home-manager/nixos>
|
2020-10-28 20:29:41 +01:00
|
|
|
<niveum/configs/keyboard.nix>
|
2021-12-29 18:49:51 +01:00
|
|
|
<niveum/configs/monitoring.nix>
|
2021-12-28 23:24:30 +01:00
|
|
|
<niveum/configs/nix.nix>
|
2021-07-06 22:51:20 +02:00
|
|
|
<niveum/configs/printing.nix>
|
2021-12-29 18:49:51 +01:00
|
|
|
<niveum/configs/spacetime.nix>
|
|
|
|
|
<niveum/configs/sshd.nix>
|
2021-07-06 22:51:20 +02:00
|
|
|
<niveum/configs/traadfri.nix>
|
2021-12-31 13:21:48 +01:00
|
|
|
<niveum/configs/tmux.nix>
|
2021-12-29 18:49:51 +01:00
|
|
|
<niveum/configs/wpa_supplicant.nix>
|
|
|
|
|
<niveum/modules/retiolum.nix>
|
2020-10-28 20:29:41 +01:00
|
|
|
];
|
|
|
|
|
|
2022-01-19 09:38:36 +01:00
|
|
|
services.restic.backups.moodle-dl = {
|
|
|
|
|
initialize = true;
|
|
|
|
|
inherit (restic) repository;
|
2022-03-10 21:52:12 +01:00
|
|
|
timerConfig = {
|
|
|
|
|
OnCalendar = "daily";
|
|
|
|
|
RandomizedDelaySec = "1h";
|
|
|
|
|
};
|
2022-01-19 09:38:36 +01:00
|
|
|
passwordFile = toString <secrets/restic/password>;
|
|
|
|
|
paths = [
|
|
|
|
|
"/var/lib/moodle-dl"
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
2022-03-10 21:52:12 +01:00
|
|
|
nix.nixPath = ["/var/src"];
|
2020-10-28 20:29:41 +01:00
|
|
|
|
|
|
|
|
services.logind = {
|
|
|
|
|
lidSwitch = "ignore";
|
|
|
|
|
lidSwitchDocked = "ignore";
|
|
|
|
|
lidSwitchExternalPower = "ignore";
|
2019-06-17 19:11:31 +02:00
|
|
|
};
|
|
|
|
|
|
2020-10-28 20:29:41 +01:00
|
|
|
services.illum.enable = true;
|
|
|
|
|
|
2022-03-10 21:52:12 +01:00
|
|
|
environment.systemPackages = let
|
2021-12-29 18:49:51 +01:00
|
|
|
worldradio = pkgs.callPackage <niveum/packages/worldradio.nix> {};
|
|
|
|
|
in [
|
|
|
|
|
(pkgs.writers.writeDashBin "mpv" ''${pkgs.mpv}/bin/mpv --no-video "$@"'')
|
|
|
|
|
(pkgs.writers.writeDashBin "worldradio" ''
|
|
|
|
|
shuf ${worldradio} | ${pkgs.findutils}/bin/xargs ${pkgs.mpv}/bin/mpv --no-video
|
|
|
|
|
'')
|
|
|
|
|
pkgs.git
|
|
|
|
|
pkgs.vim
|
|
|
|
|
pkgs.htop
|
|
|
|
|
pkgs.ncmpcpp
|
|
|
|
|
];
|
2020-10-28 20:29:41 +01:00
|
|
|
|
2021-12-29 18:49:51 +01:00
|
|
|
networking = {
|
|
|
|
|
hostName = "zaatar";
|
2022-03-10 21:52:12 +01:00
|
|
|
wireless.interfaces = ["wlp2s0"];
|
2021-12-29 18:49:51 +01:00
|
|
|
retiolum = retiolumAddresses.zaatar;
|
2019-09-24 16:46:43 +02:00
|
|
|
};
|
|
|
|
|
|
2020-10-28 20:29:41 +01:00
|
|
|
system.stateVersion = "20.09";
|
2019-01-30 17:08:07 +01:00
|
|
|
}
|