2024-07-05 16:31:58 +01:00
|
|
|
{ inputs, ... }:
|
2024-06-25 18:19:47 +01:00
|
|
|
let
|
|
|
|
# Disko setup
|
|
|
|
fsType = "btrfs"; # one of ext4 or btrfs. Use btrfs if using impermanence
|
2024-07-05 16:31:58 +01:00
|
|
|
dev = "/dev/disk/by-id/ata-QEMU_HARDDISK_QM00005"; # depends on target hardware
|
2024-06-25 18:19:47 +01:00
|
|
|
encrypted = false; # currrently only applies to btrfs
|
2024-06-28 20:21:27 +01:00
|
|
|
impermanence = false; # currrently only applies to btrfs
|
2024-06-25 18:19:47 +01:00
|
|
|
user = "admin";
|
|
|
|
in
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
|
|
|
# Create users for this host
|
|
|
|
../common/users/${user}
|
|
|
|
|
2024-07-05 16:31:58 +01:00
|
|
|
# Root disk configuration
|
2024-06-25 18:19:47 +01:00
|
|
|
inputs.disko.nixosModules.disko
|
2024-06-28 20:21:27 +01:00
|
|
|
(import ../common/disks { device = dev; impermanence = impermanence; fsType = fsType; encrypted = encrypted; })
|
2024-06-25 18:19:47 +01:00
|
|
|
|
|
|
|
# Import core options
|
|
|
|
./hardware-configuration.nix
|
|
|
|
../common/core
|
|
|
|
|
|
|
|
# Import optional options
|
|
|
|
../common/optional/openssh.nix
|
|
|
|
|
|
|
|
];
|
|
|
|
|
2024-06-28 18:16:15 +01:00
|
|
|
boot = {
|
|
|
|
loader = {
|
|
|
|
systemd-boot.enable = true;
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
timeout = 3;
|
|
|
|
};
|
|
|
|
};
|
2024-06-25 18:19:47 +01:00
|
|
|
|
|
|
|
networking = {
|
2024-06-28 15:26:16 +01:00
|
|
|
hostName = "nebula";
|
2024-06-25 18:19:47 +01:00
|
|
|
networkmanager.enable = true;
|
|
|
|
enableIPv6 = false;
|
|
|
|
};
|
|
|
|
|
2024-06-28 15:26:16 +01:00
|
|
|
boot.supportedFilesystems = [ "zfs" ];
|
|
|
|
boot.zfs.forceImportRoot = false;
|
2024-06-28 16:05:12 +01:00
|
|
|
networking.hostId = "18aec5d7";
|
2024-07-05 16:31:58 +01:00
|
|
|
boot.zfs.extraPools = [ "zspeed" ];
|
2024-06-28 15:26:16 +01:00
|
|
|
|
2024-06-25 18:19:47 +01:00
|
|
|
services.libinput.enable = true;
|
|
|
|
}
|
|
|
|
|