mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-30 03:56:12 +01:00
41 lines
870 B
Nix
41 lines
870 B
Nix
|
hostname:
|
||
|
{ config, pkgs, lib, ... }:
|
||
|
with lib;
|
||
|
let
|
||
|
cfg = config.magic_rb.hardware."${hostname}";
|
||
|
in
|
||
|
{
|
||
|
options.magic_rb.hardware."${hostname}" = mkEnableOption "";
|
||
|
|
||
|
config = mkIf cfg {
|
||
|
boot = {
|
||
|
kernelPackages = pkgs.linuxPackages_latest;
|
||
|
loader.grub.extraConfig = ''
|
||
|
serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
|
||
|
terminal_input --append serial
|
||
|
terminal_output --append serial
|
||
|
'';
|
||
|
};
|
||
|
|
||
|
swapDevices = [
|
||
|
{
|
||
|
device = "/dev/disk/by-uuid/d50e7ebf-8c62-4d2d-b19d-347378f7e5fe";
|
||
|
}
|
||
|
];
|
||
|
|
||
|
fileSystems = {
|
||
|
"/" =
|
||
|
{
|
||
|
device = "/dev/disk/by-uuid/79ba4403-7532-4e2c-ac5d-2910dce62009";
|
||
|
fsType = "xfs";
|
||
|
};
|
||
|
|
||
|
"/boot/efi" =
|
||
|
{
|
||
|
device = "/dev/disk/by-uuid/4478-6009";
|
||
|
fsType = "ext4";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|