elucredassa: init
This commit is contained in:
parent
ba8fc5fef6
commit
2a7baa9b62
5 changed files with 79 additions and 0 deletions
|
@ -96,6 +96,7 @@
|
||||||
nodeNixpkgs = {
|
nodeNixpkgs = {
|
||||||
kilgharrah = import nixpkgs { system = "x86_64-linux"; };
|
kilgharrah = import nixpkgs { system = "x86_64-linux"; };
|
||||||
tohru = import nixpkgs { system = "x86_64-linux"; };
|
tohru = import nixpkgs { system = "x86_64-linux"; };
|
||||||
|
elucredassa = import nixpkgs-small { system = "x86_64-linux"; };
|
||||||
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"; };
|
||||||
|
@ -130,6 +131,7 @@
|
||||||
|
|
||||||
kilgharrah.imports = [ ./hosts/kilgharrah ];
|
kilgharrah.imports = [ ./hosts/kilgharrah ];
|
||||||
tohru.imports = [ ./hosts/tohru ];
|
tohru.imports = [ ./hosts/tohru ];
|
||||||
|
elucredassa.imports = [ ./hosts/elucredassa ];
|
||||||
yevaud.imports = [ ./hosts/yevaud ];
|
yevaud.imports = [ ./hosts/yevaud ];
|
||||||
orm.imports = [ ./hosts/orm ];
|
orm.imports = [ ./hosts/orm ];
|
||||||
kalessin.imports = [ ./hosts/kalessin ];
|
kalessin.imports = [ ./hosts/kalessin ];
|
||||||
|
|
31
hosts/elucredassa/default.nix
Normal file
31
hosts/elucredassa/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{ config, lib, pkgs, inputs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
inherit (lib) mkForce;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./filesystems.nix
|
||||||
|
./hardware.nix
|
||||||
|
./networking.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||||||
|
networking.hostName = "elucredassa";
|
||||||
|
networking.hostId = "a8ec6755";
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
|
||||||
|
qenya.base-server.enable = true;
|
||||||
|
|
||||||
|
time.timeZone = "Europe/London"; # Etc/UTC?
|
||||||
|
i18n.defaultLocale = "en_GB.UTF-8";
|
||||||
|
console.keyMap = "uk";
|
||||||
|
services.xserver.xkb.layout = "gb";
|
||||||
|
|
||||||
|
fountain.users.qenya.enable = true;
|
||||||
|
users.users.qenya.extraGroups = [ "wheel" ];
|
||||||
|
|
||||||
|
system.stateVersion = "24.11";
|
||||||
|
}
|
23
hosts/elucredassa/filesystems.nix
Normal file
23
hosts/elucredassa/filesystems.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
boot.initrd.luks.devices = {
|
||||||
|
"luks-rpool-elucredassa".device = "/dev/disk/by-uuid/5ece5b58-c57a-41ae-b086-03707c39c9a7";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems = {
|
||||||
|
"/" = {
|
||||||
|
device = "rpool_elucredassa/root";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
"/boot" = {
|
||||||
|
device = "/dev/disk/by-uuid/2519-E2D6";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ]; # TODO: add
|
||||||
|
|
||||||
|
boot.supportedFilesystems = [ "ntfs" ]; # for USB drives
|
||||||
|
}
|
8
hosts/elucredassa/hardware.nix
Normal file
8
hosts/elucredassa/hardware.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
hardware.enableAllFirmware = true;
|
||||||
|
hardware.cpu.intel.updateMicrocode = true;
|
||||||
|
services.fwupd.enable = true;
|
||||||
|
}
|
||||||
|
|
15
hosts/elucredassa/networking.nix
Normal file
15
hosts/elucredassa/networking.nix
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
systemd.network.enable = true;
|
||||||
|
networking.useDHCP = false;
|
||||||
|
|
||||||
|
systemd.network.networks."10-wan" = {
|
||||||
|
matchConfig.Name = "enp1s0f1";
|
||||||
|
networkConfig = {
|
||||||
|
DHCP = "ipv4";
|
||||||
|
IPv6AcceptRA = true;
|
||||||
|
};
|
||||||
|
linkConfig.RequiredForOnline = "routable";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue