From 7329e8eb7758b9bdf8affe200b0d64b8a3387c93 Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Wed, 28 Jun 2023 09:05:17 +0400 Subject: [PATCH] add hardware-configuration.nix --- .gitignore | 3 +-- hardware-configuration.nix | 7 +++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 hardware-configuration.nix diff --git a/.gitignore b/.gitignore index cc968ec..4137980 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ userdata/userdata.json userdata/tokens.json -hardware-configuration.nix -networking.nix \ No newline at end of file +networking.nix diff --git a/hardware-configuration.nix b/hardware-configuration.nix new file mode 100644 index 0000000..7ac1c80 --- /dev/null +++ b/hardware-configuration.nix @@ -0,0 +1,7 @@ +{ modulesPath, ... }: +{ + imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; + boot.loader.grub.device = "/dev/sda"; + boot.initrd.kernelModules = [ "nvme" ]; + fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; }; +}