Nix Flakes configuration for MacOS, NixOS and WSL
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(andhrimnir): hardware

cosmeak 669cb4f3 4374ccef

+41 -4
+2 -3
README.md
··· 74 74 75 75 ``` 76 76 . 77 - ├── hardware # Specific hardware configuration 78 77 ├── lib # Asgard custom libary to help configure machines and users 79 78 ├── machines # Machine configurations 80 79 │ └── <os> 81 80 │ │ └── <hostname> 82 81 ├── modules # Asgard custom modules by os 83 82 │ ├── commons 84 - │ ├── nixos 85 - │ └── darwin 83 + │ ├── darwin 84 + │ └── nixos 86 85 ├── packages # Packages not present in nixpkgs 87 86 ├── overlays # Package override 88 87 ├── templates # Template for boostrapping projects (zig, go, ...)
hardware/.gitkeep

This is a binary file and will not be displayed.

+1 -1
machines/nixos/andhrimnir/default.nix
··· 1 1 { self, inputs, pkgs, hostname, ... }: 2 2 { 3 3 imports = [ 4 - # ./hardware.nix 4 + ./hardware.nix 5 5 ../../../users/ben/andhrimnir 6 6 ]; 7 7
+38
machines/nixos/andhrimnir/hardware.nix
··· 1 + # Do not modify this file! It was generated by ‘nixos-generate-config’ 2 + # and may be overwritten by future invocations. Please make changes 3 + # to /etc/nixos/configuration.nix instead. 4 + { config, lib, pkgs, modulesPath, ... }: 5 + 6 + { 7 + imports = 8 + [ (modulesPath + "/installer/scan/not-detected.nix") 9 + ]; 10 + 11 + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; 12 + boot.initrd.kernelModules = [ ]; 13 + boot.kernelModules = [ "kvm-amd" ]; 14 + boot.extraModulePackages = [ ]; 15 + 16 + fileSystems."/" = 17 + { device = "/dev/disk/by-uuid/fd217360-823a-44b2-a85c-9eb968aa8a51"; 18 + fsType = "ext4"; 19 + }; 20 + 21 + fileSystems."/boot" = 22 + { device = "/dev/disk/by-uuid/20F1-277B"; 23 + fsType = "vfat"; 24 + options = [ "fmask=0077" "dmask=0077" ]; 25 + }; 26 + 27 + swapDevices = [ ]; 28 + 29 + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 30 + # (the default) this is the recommended approach. When using systemd-networkd it's 31 + # still possible to use this option, but it's recommended to use it in conjunction 32 + # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. 33 + networking.useDHCP = lib.mkDefault true; 34 + # networking.interfaces.eno1.useDHCP = lib.mkDefault true; 35 + 36 + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 37 + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 38 + }