1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/systems/zaatar/configuration.nix

82 lines
1.9 KiB
Nix
Raw Normal View History

{
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-11-30 10:21:59 +01:00
./atuin.nix
2022-01-18 21:29:30 +01:00
./backup.nix
./gaslight.nix
2020-10-28 20:29:41 +01:00
./hardware-configuration.nix
./kiosk.nix
./moodle-dl-meinhark.nix
./pulseaudio.nix
./home-assistant.nix
./tuna.nix
./grocy.nix
2022-01-17 18:53:26 +01:00
./spotifyd.nix
2020-10-28 20:29:41 +01:00
<niveum/configs/keyboard.nix>
<niveum/configs/monitoring.nix>
2021-12-28 23:24:30 +01:00
<niveum/configs/nix.nix>
<niveum/configs/printing.nix>
<niveum/configs/spacetime.nix>
<niveum/configs/sshd.nix>
2022-12-01 13:39:16 +01:00
# <niveum/configs/traadfri.nix>
<niveum/configs/tmux.nix>
<niveum/configs/retiolum.nix>
<niveum/configs/wpa_supplicant.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"
"/var/lib/containers/storage/volumes/home-assistant"
2022-12-03 08:51:11 +01:00
config.services.postgresqlBackup.location
2022-01-19 09:38:36 +01:00
];
};
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";
};
2020-10-28 20:29:41 +01:00
services.illum.enable = true;
2022-03-10 21:52:12 +01:00
environment.systemPackages = let
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
2022-07-11 18:22:25 +02:00
# since 22.05 timeout fails?
systemd.services.systemd-networkd-wait-online.enable = false;
networking = {
hostName = "zaatar";
2022-03-10 21:52:12 +01:00
wireless.interfaces = ["wlp2s0"];
retiolum = retiolumAddresses.zaatar;
};
2020-10-28 20:29:41 +01:00
system.stateVersion = "20.09";
2019-01-30 17:08:07 +01:00
}