aboutsummaryrefslogtreecommitdiff
path: root/nix/hosts/nixos/wildcat/hardware.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-11-17 11:16:44 -0800
committerFranck Cuny <franck@fcuny.net>2024-11-17 11:16:44 -0800
commit357fbda2bb2400a52f8dec61b66342b92fa945ae (patch)
treeb81c4ea017372f086963094903a01ac5e56a98ef /nix/hosts/nixos/wildcat/hardware.nix
parentinstall font dejavu (diff)
downloadinfra-357fbda2bb2400a52f8dec61b66342b92fa945ae.tar.gz
move machine configurations under darwin and nixos
Don't manage fonts on Darwin with homebrew.
Diffstat (limited to 'nix/hosts/nixos/wildcat/hardware.nix')
-rw-r--r--nix/hosts/nixos/wildcat/hardware.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/nix/hosts/nixos/wildcat/hardware.nix b/nix/hosts/nixos/wildcat/hardware.nix
new file mode 100644
index 0000000..351c991
--- /dev/null
+++ b/nix/hosts/nixos/wildcat/hardware.nix
@@ -0,0 +1,29 @@
+{ modulesPath, ... }:
+{
+ imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
+
+ boot.initrd.availableKernelModules = [
+ "ata_piix"
+ "uhci_hcd"
+ "xen_blkfront"
+ "vmw_pvscsi"
+ ];
+
+ boot.loader.grub = {
+ enable = true;
+ device = "/dev/sda";
+ };
+
+ boot.initrd.kernelModules = [ "nvme" ];
+
+ fileSystems = {
+ "/" = {
+ device = "/dev/sda1";
+ fsType = "ext4";
+ };
+ "/srv" = {
+ device = "/dev/disk/by-id/scsi-0HC_Volume_101115314";
+ fsType = "ext4";
+ };
+ };
+}