From 421822cc3409c6cc2cca78b93ed0885bbd949fce Mon Sep 17 00:00:00 2001 From: randogoth Date: Sat, 7 Feb 2026 16:49:25 +0000 Subject: [PATCH] Add bucur hardware config --- hosts/bucur-hardware.nix | 55 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 hosts/bucur-hardware.nix diff --git a/hosts/bucur-hardware.nix b/hosts/bucur-hardware.nix new file mode 100644 index 0000000..457f58f --- /dev/null +++ b/hosts/bucur-hardware.nix @@ -0,0 +1,55 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/vda3"; + fsType = "btrfs"; + options = [ "subvol=@" ]; + }; + + fileSystems."/nix" = + { device = "/dev/vda3"; + fsType = "btrfs"; + options = [ "subvol=@nix" ]; + }; + + fileSystems."/home" = + { device = "/dev/vda3"; + fsType = "btrfs"; + options = [ "subvol=@home" ]; + }; + + fileSystems."/var/log" = + { device = "/dev/vda3"; + fsType = "btrfs"; + options = [ "subvol=@log" ]; + }; + + fileSystems."/persist" = + { device = "/dev/vda3"; + fsType = "btrfs"; + options = [ "subvol=@persist" ]; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/B4D5-D753"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +}