hosts: Infini-STICK -> hermes
This commit is contained in:
parent
ccbca3a6c9
commit
87c9ff22c6
4 changed files with 1 additions and 1 deletions
22
hosts/hermes/default.nix
Normal file
22
hosts/hermes/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ pkgs, ... }: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./disks.nix
|
||||
];
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
networking.hostId = "deadbeef";
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages;
|
||||
|
||||
modules = {
|
||||
hardware = {
|
||||
audio.enable = true;
|
||||
form.portable = true;
|
||||
};
|
||||
};
|
||||
|
||||
specialisation.graphical.configuration = {
|
||||
modules.desktop.wm.enable = true;
|
||||
};
|
||||
}
|
28
hosts/hermes/disks.nix
Normal file
28
hosts/hermes/disks.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ lib, ... }:
|
||||
with lib.our.disko;
|
||||
let
|
||||
inherit (lib) genAttrs flip;
|
||||
in
|
||||
{
|
||||
disko.devices = {
|
||||
nodev."/" = mkTmpfs "2G";
|
||||
disk.stick = mkDisk "some-usb-stick" {
|
||||
partitions = {
|
||||
boot = mkESP "64M" "/boot/efi";
|
||||
main = mkBtrfsPart "100%" "/media/main" {
|
||||
subvolumes = mkBtrfsSubvols {
|
||||
"/boot" = { };
|
||||
"/etc/ssh" = { };
|
||||
"/nix" = { };
|
||||
"/persist" = { };
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fileSystems = flip genAttrs (_: { neededForBoot = true; }) [
|
||||
"/persist"
|
||||
"/etc/ssh"
|
||||
];
|
||||
}
|
17
hosts/hermes/hardware-configuration.nix
Normal file
17
hosts/hermes/hardware-configuration.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ lib, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "ahci" "usbhid" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ "usb_storage" ];
|
||||
boot.kernelModules = [ "kvm-amd" "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
boot.kernelParams = [ "boot.shell_on_fail" ];
|
||||
boot.supportedFilesystems = [ "btrfs" "zfs" ];
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
|
||||
info.model = "Portable Installation";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue