2019-04-20 09:08:39 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
2019-01-31 23:39:38 +01:00
|
|
|
let
|
2020-10-31 20:52:10 +01:00
|
|
|
inherit (import <niveum/lib>) kieran;
|
2019-01-31 23:39:38 +01:00
|
|
|
in {
|
2019-01-30 13:56:34 +01:00
|
|
|
imports = [
|
2019-04-20 09:18:16 +02:00
|
|
|
./hardware-configuration.nix
|
2020-04-09 16:57:24 +02:00
|
|
|
./telegram-bots
|
2020-11-01 09:45:15 +01:00
|
|
|
<niveum/configs/hass>
|
2019-10-26 13:43:30 +02:00
|
|
|
<niveum/configs/distrobump.nix>
|
2020-10-28 20:25:59 +01:00
|
|
|
<niveum/configs/spacetime.nix>
|
2020-10-28 21:43:33 +01:00
|
|
|
<niveum/configs/sshd.nix>
|
2020-10-31 20:52:10 +01:00
|
|
|
<niveum/configs/moodle-dl.nix>
|
2019-10-26 13:43:30 +02:00
|
|
|
<niveum/configs/save-space.nix>
|
2020-10-28 21:43:33 +01:00
|
|
|
<niveum/configs/wifi.nix>
|
2019-10-26 13:43:30 +02:00
|
|
|
<niveum/configs/tmux.nix>
|
2019-11-30 13:38:56 +01:00
|
|
|
<niveum/configs/version.nix>
|
2020-07-11 20:42:04 +02:00
|
|
|
<niveum/configs/traadfri.nix>
|
2020-11-01 09:44:50 +01:00
|
|
|
<niveum/configs/matterbridge.nix>
|
2019-10-26 13:43:30 +02:00
|
|
|
<niveum/modules/retiolum.nix>
|
|
|
|
|
<niveum/modules/telegram-bot.nix>
|
2020-10-30 11:05:26 +01:00
|
|
|
{
|
|
|
|
|
services.rss-bridge.enable = true;
|
|
|
|
|
}
|
2020-10-18 14:02:14 +02:00
|
|
|
{
|
2020-10-28 21:43:33 +01:00
|
|
|
services.weechat.enable = true;
|
2020-11-01 08:26:22 +01:00
|
|
|
users.extraUsers.weechat = {
|
|
|
|
|
useDefaultShell = true;
|
|
|
|
|
openssh.authorizedKeys.keys = kieran.sshKeys pkgs;
|
|
|
|
|
};
|
2020-10-28 11:35:09 +01:00
|
|
|
}
|
2019-06-05 19:36:29 +02:00
|
|
|
];
|
2019-06-01 22:13:58 +02:00
|
|
|
|
2020-10-21 00:35:36 +02:00
|
|
|
nix.nixPath = [ "/var/src" ];
|
|
|
|
|
|
2019-01-30 11:48:35 +00:00
|
|
|
boot.loader.grub.enable = false;
|
|
|
|
|
boot.loader.generic-extlinux-compatible.enable = true;
|
|
|
|
|
|
2020-10-18 14:02:14 +02:00
|
|
|
networking.hostName = "toum";
|
2019-01-30 13:56:34 +01:00
|
|
|
|
2019-01-30 16:46:07 +01:00
|
|
|
environment.variables.TERM = "linux";
|
2019-01-30 15:44:00 +01:00
|
|
|
|
2020-10-18 14:02:14 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
git vim htop wget reptyr
|
|
|
|
|
raspberrypi-tools
|
|
|
|
|
];
|
2019-01-30 16:12:14 +01:00
|
|
|
|
2019-01-31 23:39:38 +01:00
|
|
|
users.mutableUsers = false;
|
2019-06-08 14:59:43 +02:00
|
|
|
|
2019-02-05 20:21:51 +01:00
|
|
|
networking.retiolum = {
|
|
|
|
|
ipv4 = "10.243.2.3";
|
2020-10-21 00:35:36 +02:00
|
|
|
ipv6 = "42:0:3c46:56af:d12b:affd:8390:df22";
|
2019-02-05 20:21:51 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
environment.etc."tinc/retiolum/rsa_key.priv" = {
|
2020-10-06 23:21:04 +02:00
|
|
|
text = builtins.readFile <system-secrets/retiolum.key>;
|
2019-02-05 20:21:51 +01:00
|
|
|
mode = "400";
|
|
|
|
|
};
|
2019-11-30 18:49:39 +01:00
|
|
|
|
2020-10-18 14:02:14 +02:00
|
|
|
system.stateVersion = "20.03";
|
2019-01-30 11:48:35 +00:00
|
|
|
}
|