starting setup for new services host

This commit is contained in:
Matt Nish-Lapidus 2025-04-12 16:26:18 -04:00
parent 9bcb012cfb
commit f8b713b3d1
5 changed files with 64 additions and 54 deletions

View file

@ -3,10 +3,11 @@
imports = [
./hardware-configuration.nix
./networking.nix # generated at runtime by nixos-infect
./disko-config.nix
];
boot.tmp.cleanOnBoot = true;
boot.loader.grub.enable = true;
zramSwap.enable = true;
networking.hostName = "services-nixos";
networking.domain = "";
@ -42,7 +43,7 @@
system.stateVersion = "23.11";
system.stateVersion = "25.05"; # Did you read the comment?
}

View file

@ -0,0 +1,37 @@
{
disko.devices = {
disk = {
main = {
type = "disk";
device = "/dev/sda";
content = {
type = "gpt";
partitions = {
boot = {
size = "1M";
type = "EF02";
priority = 1;
};
ESP = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
}

View file

@ -1,9 +1,8 @@
{ modulesPath, ... }:
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.loader.grub.device = "/dev/sda";
# boot.loader.grub.device = "/dev/sda";
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
boot.initrd.kernelModules = [ "nvme" ];
fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; };
# fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; };
}