2022-01-14 10:19:01 +01:00
|
|
|
{ config, pkgs, lib, modulesPath, ... }: {
|
|
|
|
networking.hostName = "nixos-8gb-fsn1-1";
|
|
|
|
networking.hostId = "73561e1f";
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
(modulesPath + "/profiles/qemu-guest.nix")
|
|
|
|
./grub.nix
|
2022-01-14 14:03:14 +01:00
|
|
|
./server.nix
|
2022-01-14 20:56:02 +01:00
|
|
|
./services/named.nix
|
2022-01-14 21:06:22 +01:00
|
|
|
./services/grafana.nix
|
2022-01-15 21:12:12 +01:00
|
|
|
./users/miifox.nix
|
2022-01-15 21:41:55 +01:00
|
|
|
./services/postgres.nix
|
2022-01-17 10:49:37 +01:00
|
|
|
./services/gitea.nix
|
2022-01-17 15:54:37 +01:00
|
|
|
./services/old-homepage.nix
|
2022-01-17 20:24:59 +01:00
|
|
|
./services/chir-rs.nix
|
2022-01-20 10:05:03 +01:00
|
|
|
./services/postfixadmin.nix
|
2022-01-20 17:03:45 +01:00
|
|
|
./services/dovecot.nix
|
2022-01-22 18:26:11 +01:00
|
|
|
./services/postfix.nix
|
2022-02-18 20:04:45 +01:00
|
|
|
./services/autodeploy.nix
|
2022-02-19 15:34:26 +01:00
|
|
|
./services/minecraft.nix
|
2022-01-14 10:19:01 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
boot.initrd.availableKernelModules = [ "ata_piix" "virtio_pci" "virtio_scsi" "xhci_pci" "sd_mod" "sr_mod" ];
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
boot.kernelModules = [ ];
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
boot.supportedFilesystems = [ "zfs" ];
|
2022-01-14 10:39:06 +01:00
|
|
|
boot.loader.grub.devices = [ "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-0" ];
|
|
|
|
boot.loader.timeout = 5;
|
2022-01-14 10:50:02 +01:00
|
|
|
boot.initrd.luks.devices = {
|
|
|
|
disk0 = {
|
|
|
|
device = "/dev/disk/by-partuuid/29ccd4c9-5ef5-a146-8e42-9244f712baca";
|
|
|
|
};
|
|
|
|
};
|
2022-01-14 10:19:01 +01:00
|
|
|
|
2022-01-14 10:28:44 +01:00
|
|
|
fileSystems."/" =
|
2022-01-14 12:04:09 +01:00
|
|
|
{
|
|
|
|
device = "tank/nixos";
|
2022-01-14 10:28:44 +01:00
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
2022-01-14 10:19:01 +01:00
|
|
|
fileSystems."/nix" =
|
2022-01-14 12:04:09 +01:00
|
|
|
{
|
|
|
|
device = "tank/nixos/nix";
|
2022-01-14 10:19:01 +01:00
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/etc" =
|
2022-01-14 12:04:09 +01:00
|
|
|
{
|
|
|
|
device = "tank/nixos/etc";
|
2022-01-14 10:19:01 +01:00
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/var" =
|
2022-01-14 12:04:09 +01:00
|
|
|
{
|
|
|
|
device = "tank/nixos/var";
|
2022-01-14 10:19:01 +01:00
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/var/lib" =
|
2022-01-14 12:04:09 +01:00
|
|
|
{
|
|
|
|
device = "tank/nixos/var/lib";
|
2022-01-14 10:19:01 +01:00
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
2022-01-17 09:48:05 +01:00
|
|
|
fileSystems."/var/lib/minio" = {
|
|
|
|
device = "tank/nixos/var/lib/minio";
|
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/var/lib/minio/disk0" = {
|
|
|
|
device = "tank/nixos/var/lib/minio/disk0";
|
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/var/lib/minio/disk1" = {
|
|
|
|
device = "tank/nixos/var/lib/minio/disk1";
|
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/var/lib/minio/disk2" = {
|
|
|
|
device = "tank/nixos/var/lib/minio/disk2";
|
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/var/lib/minio/disk3" = {
|
|
|
|
device = "tank/nixos/var/lib/minio/disk3";
|
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
2022-01-14 10:19:01 +01:00
|
|
|
fileSystems."/var/log" =
|
2022-01-14 12:04:09 +01:00
|
|
|
{
|
|
|
|
device = "tank/nixos/var/log";
|
2022-01-14 10:19:01 +01:00
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/var/spool" =
|
2022-01-14 12:04:09 +01:00
|
|
|
{
|
|
|
|
device = "tank/nixos/var/spool";
|
2022-01-14 10:19:01 +01:00
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/home" =
|
2022-01-14 12:04:09 +01:00
|
|
|
{
|
|
|
|
device = "tank/userdata/home";
|
2022-01-14 10:19:01 +01:00
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/root" =
|
2022-01-14 12:04:09 +01:00
|
|
|
{
|
|
|
|
device = "tank/userdata/home/root";
|
2022-01-14 10:19:01 +01:00
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/home/darkkirb" =
|
2022-01-14 12:04:09 +01:00
|
|
|
{
|
|
|
|
device = "tank/userdata/home/darkkirb";
|
2022-01-14 10:19:01 +01:00
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/home/miifox" =
|
2022-01-14 12:04:09 +01:00
|
|
|
{
|
|
|
|
device = "tank/userdata/home/miifox";
|
2022-01-14 10:19:01 +01:00
|
|
|
fsType = "zfs";
|
|
|
|
options = [ "zfsutil" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/boot" =
|
2022-01-14 12:04:09 +01:00
|
|
|
{
|
|
|
|
device = "/dev/disk/by-uuid/8E14-4366";
|
2022-01-14 10:19:01 +01:00
|
|
|
fsType = "vfat";
|
|
|
|
options = [ "X-mount.mkdir" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
swapDevices = [ ];
|
|
|
|
|
|
|
|
system.stateVersion = "21.11";
|
2022-01-14 12:04:09 +01:00
|
|
|
|
2022-01-14 12:29:33 +01:00
|
|
|
systemd.network = {
|
|
|
|
enable = true;
|
|
|
|
networks."enp0s3".extraConfig = ''
|
|
|
|
[Match]
|
2022-01-14 12:32:10 +01:00
|
|
|
Name = ens3
|
2022-01-14 12:29:33 +01:00
|
|
|
[Network]
|
2022-01-14 14:03:14 +01:00
|
|
|
Address = 2a01:4f8:1c17:d953:b4e1:08ff:e658:6f49/64
|
2022-01-14 12:29:33 +01:00
|
|
|
Gateway = fe80::1
|
|
|
|
'';
|
2022-01-14 12:04:09 +01:00
|
|
|
};
|
2022-01-14 15:38:01 +01:00
|
|
|
|
|
|
|
networking.wireguard.interfaces."wg0".ips = [ "fd0d:a262:1fa6:e621:b4e1:08ff:e658:6f49/64" ];
|
2022-01-15 17:31:50 +01:00
|
|
|
home-manager.users.darkkirb = import ./home-manager/darkkirb.nix false;
|
2022-02-10 15:53:59 +01:00
|
|
|
nix.settings.substituters = [
|
2022-01-27 17:16:42 +01:00
|
|
|
"https://minio.int.chir.rs/cache.int.chir.rs/"
|
|
|
|
];
|
2022-02-08 09:55:28 +01:00
|
|
|
nix.settings.cores = 2;
|
2022-01-14 10:19:01 +01:00
|
|
|
}
|