nixos-config/config/nixos-8gb-fsn1-1.nix

124 lines
2.6 KiB
Nix
Raw Normal View History

2022-01-14 09:19:01 +00: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 13:03:14 +00:00
./server.nix
2022-01-14 09:19:01 +00: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 11:04:09 +00:00
boot.kernelParams = [ "zfs_force=1" ]; # Remove after next boot
2022-01-14 09:39:06 +00: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 09:50:02 +00:00
boot.initrd.luks.devices = {
disk0 = {
device = "/dev/disk/by-partuuid/29ccd4c9-5ef5-a146-8e42-9244f712baca";
};
};
2022-01-14 09:19:01 +00:00
2022-01-14 09:28:44 +00:00
fileSystems."/" =
2022-01-14 11:04:09 +00:00
{
device = "tank/nixos";
2022-01-14 09:28:44 +00:00
fsType = "zfs";
options = [ "zfsutil" ];
};
2022-01-14 09:19:01 +00:00
fileSystems."/nix" =
2022-01-14 11:04:09 +00:00
{
device = "tank/nixos/nix";
2022-01-14 09:19:01 +00:00
fsType = "zfs";
options = [ "zfsutil" ];
};
fileSystems."/etc" =
2022-01-14 11:04:09 +00:00
{
device = "tank/nixos/etc";
2022-01-14 09:19:01 +00:00
fsType = "zfs";
options = [ "zfsutil" ];
};
fileSystems."/var" =
2022-01-14 11:04:09 +00:00
{
device = "tank/nixos/var";
2022-01-14 09:19:01 +00:00
fsType = "zfs";
options = [ "zfsutil" ];
};
fileSystems."/var/lib" =
2022-01-14 11:04:09 +00:00
{
device = "tank/nixos/var/lib";
2022-01-14 09:19:01 +00:00
fsType = "zfs";
options = [ "zfsutil" ];
};
fileSystems."/var/log" =
2022-01-14 11:04:09 +00:00
{
device = "tank/nixos/var/log";
2022-01-14 09:19:01 +00:00
fsType = "zfs";
options = [ "zfsutil" ];
};
fileSystems."/var/spool" =
2022-01-14 11:04:09 +00:00
{
device = "tank/nixos/var/spool";
2022-01-14 09:19:01 +00:00
fsType = "zfs";
options = [ "zfsutil" ];
};
fileSystems."/home" =
2022-01-14 11:04:09 +00:00
{
device = "tank/userdata/home";
2022-01-14 09:19:01 +00:00
fsType = "zfs";
options = [ "zfsutil" ];
};
fileSystems."/root" =
2022-01-14 11:04:09 +00:00
{
device = "tank/userdata/home/root";
2022-01-14 09:19:01 +00:00
fsType = "zfs";
options = [ "zfsutil" ];
};
fileSystems."/home/darkkirb" =
2022-01-14 11:04:09 +00:00
{
device = "tank/userdata/home/darkkirb";
2022-01-14 09:19:01 +00:00
fsType = "zfs";
options = [ "zfsutil" ];
};
fileSystems."/home/miifox" =
2022-01-14 11:04:09 +00:00
{
device = "tank/userdata/home/miifox";
2022-01-14 09:19:01 +00:00
fsType = "zfs";
options = [ "zfsutil" ];
};
fileSystems."/boot" =
2022-01-14 11:04:09 +00:00
{
device = "/dev/disk/by-uuid/8E14-4366";
2022-01-14 09:19:01 +00:00
fsType = "vfat";
options = [ "X-mount.mkdir" ];
};
swapDevices = [ ];
system.stateVersion = "21.11";
2022-01-14 11:04:09 +00:00
2022-01-14 11:29:33 +00:00
systemd.network = {
enable = true;
networks."enp0s3".extraConfig = ''
[Match]
2022-01-14 11:32:10 +00:00
Name = ens3
2022-01-14 11:29:33 +00:00
[Network]
2022-01-14 13:03:14 +00:00
Address = 2a01:4f8:1c17:d953:b4e1:08ff:e658:6f49/64
2022-01-14 11:29:33 +00:00
Gateway = fe80::1
'';
2022-01-14 11:04:09 +00:00
};
2022-01-14 09:19:01 +00:00
}