diff options
| Commit | 407b8daa9cbc73968dc6f6be1542868b424207cf (patch) | |
|---|---|---|
| Author | 2023-11-30 19:27:15 +0200 | |
| Committer | 2023-11-30 19:27:15 +0200 | |
| Files | c69a4514342ea8652d3e8c765c595aaa133396da /machines/vesta/hardware-configuration.nix | |
| nix-407b8daa9cbc73968dc6f6be1542868b424207cf.tar nix-407b8daa9cbc73968dc6f6be1542868b424207cf.tar.gz nix-407b8daa9cbc73968dc6f6be1542868b424207cf.zip | ||
| Parent | 44fc1feae00bc40d6918021dff0e7fd921cc8703 (diff) | |
[machines] Added configuration for vesta desktop
1 files changed, 42 insertions, 0 deletions
| -rw-r--r-- | machines/vesta/hardware-configuration.nix | 42 |
diff --git a/machines/vesta/hardware-configuration.nix b/machines/vesta/hardware-configuration.nix new file mode 100644 index 0000000..39158d6 --- /dev/null +++ b/machines/vesta/hardware-configuration.nix @@ -0,0 +1,42 @@ +# 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 + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "firewire_ohci" "usbhid" "usb_storage" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/766f2ace-7300-45c0-aaba-25b84da5c308"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/269D-7930"; + fsType = "vfat"; + }; + + fileSystems."/home" = + { device = "/dev/disk/by-uuid/0197b42b-12e0-4d7e-b65b-cdd9bed07eda"; + fsType = "ext4"; + }; + + swapDevices = [ ]; + + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking + # (the default) this is the recommended approach. When using systemd-networkd it's + # still possible to use this option, but it's recommended to use it in conjunction + # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.enp0s25.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} |
