brighde: initial deployment
This commit is contained in:
parent
9a2a8b9523
commit
9fc64b57b5
43
hardware/lenovo_yoga7i.nix
Normal file
43
hardware/lenovo_yoga7i.nix
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
# Hardware configuration file common to all Lenovo Yoga 7i devices
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
modulesPath,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot = {
|
||||||
|
initrd = {
|
||||||
|
availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "usbhid" "usb_storage" "sd_mod"];
|
||||||
|
kernelModules = [];
|
||||||
|
};
|
||||||
|
kernelModules = ["kvm-intel"];
|
||||||
|
# i8042 parameters required for working keyboard
|
||||||
|
kernelParams = [
|
||||||
|
"i8042.direct"
|
||||||
|
"i8042.dumbkbd"
|
||||||
|
];
|
||||||
|
extraModulePackages = [];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/" = {
|
||||||
|
device = "/dev/disk/by-label/nixos";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" = {
|
||||||
|
device = "/dev/disk/by-label/boot";
|
||||||
|
fsType = "vfat";
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [
|
||||||
|
{device = "/dev/disk/by-label/swap";}
|
||||||
|
];
|
||||||
|
|
||||||
|
hardware.opengl.extraPackages = with pkgs; [vaapiIntel];
|
||||||
|
nix.maxJobs = lib.mkDefault 4;
|
||||||
|
}
|
23
hosts/brighde.nix
Normal file
23
hosts/brighde.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# Configuration for brighde, a Lenovo Yoga 7i
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
../hardware/lenovo_yoga7i.nix
|
||||||
|
../profiles/desktopFiona.nix
|
||||||
|
../profiles/desktop_common.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
# Use the UEFI boot loader.
|
||||||
|
boot.loader = {
|
||||||
|
systemd-boot.enable = true;
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
deployment.targetHost = "10.42.0.123";
|
||||||
|
networking.hostName = "brighde"; # A poetess, sage, woman of wisdom, healing
|
||||||
|
|
||||||
|
system.stateVersion = "22.05"; # The version of NixOS originally installed
|
||||||
|
}
|
|
@ -17,6 +17,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
airgead = import hosts/airgead.nix;
|
airgead = import hosts/airgead.nix;
|
||||||
|
brighde = import hosts/brighde.nix;
|
||||||
ceilidh = import hosts/ceilidh.nix;
|
ceilidh = import hosts/ceilidh.nix;
|
||||||
cuallaidh = import hosts/cuallaidh.nix;
|
cuallaidh = import hosts/cuallaidh.nix;
|
||||||
dhu = import hosts/dhu.nix;
|
dhu = import hosts/dhu.nix;
|
||||||
|
|
Loading…
Reference in a new issue