tehanu: init
This commit is contained in:
parent
b64d34e9c4
commit
f1718e5c3b
4 changed files with 66 additions and 0 deletions
|
@ -140,6 +140,7 @@
|
||||||
yevaud = import nixpkgs-small { system = "x86_64-linux"; };
|
yevaud = import nixpkgs-small { system = "x86_64-linux"; };
|
||||||
orm = import nixpkgs-small { system = "x86_64-linux"; };
|
orm = import nixpkgs-small { system = "x86_64-linux"; };
|
||||||
kalessin = import nixpkgs-small { system = "aarch64-linux"; };
|
kalessin = import nixpkgs-small { system = "aarch64-linux"; };
|
||||||
|
tehanu = import nixpkgs-small { system = "aarch64-linux"; };
|
||||||
};
|
};
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit self;
|
inherit self;
|
||||||
|
@ -173,6 +174,7 @@
|
||||||
yevaud.imports = [ ./hosts/yevaud ];
|
yevaud.imports = [ ./hosts/yevaud ];
|
||||||
orm.imports = [ ./hosts/orm ];
|
orm.imports = [ ./hosts/orm ];
|
||||||
kalessin.imports = [ ./hosts/kalessin ];
|
kalessin.imports = [ ./hosts/kalessin ];
|
||||||
|
tehanu.imports = [ ./hosts/tehanu ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
20
hosts/tehanu/default.nix
Normal file
20
hosts/tehanu/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./hardware-configuration.nix
|
||||||
|
./networking.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = "aarch64-linux";
|
||||||
|
networking.hostName = "tehanu";
|
||||||
|
networking.hostId = "8e1185ab";
|
||||||
|
networking.domain = "birdsong.network";
|
||||||
|
|
||||||
|
fountain.users.qenya.enable = true;
|
||||||
|
fountain.admins = [ "qenya" ];
|
||||||
|
|
||||||
|
qenya.base-server.enable = true;
|
||||||
|
|
||||||
|
system.stateVersion = "23.11";
|
||||||
|
}
|
38
hosts/tehanu/hardware-configuration.nix
Normal file
38
hosts/tehanu/hardware-configuration.nix
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
|
# and may be overwritten by future invocations. Please make changes
|
||||||
|
# to /etc/nixos/configuration.nix instead.
|
||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "virtio_scsi" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "rpool_tehanu/root";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/nix" =
|
||||||
|
{ device = "rpool_tehanu/nix";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/var" =
|
||||||
|
{ device = "rpool_tehanu/var";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/629B-BA09";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
}
|
6
hosts/tehanu/networking.nix
Normal file
6
hosts/tehanu/networking.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
networking.useNetworkd = true;
|
||||||
|
networking.interfaces.enp0s6.useDHCP = true;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue