this repo has no description
0
fork

Configure Feed

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

chore(thinkpadz13): add disko module and hardware config

+29
+1
flake.nix
··· 32 32 33 33 thinkpadz13 = nixpkgs.lib.nixosSystem { 34 34 modules = [ 35 + disko.nixosModules.disko 35 36 ./configuration.nix 36 37 nixos-hardware.nixosModules.lenovo-thinkpad-z13-gen1 37 38 home-manager.nixosModules.home-manager
+4
hosts/thinkpadz13/default.nix
··· 1 1 { pkgs, ... }: 2 2 3 3 { 4 + imports = [ 5 + ./hardware-configuration.nix 6 + ]; 7 + 4 8 hardware = { 5 9 graphics = { 6 10 enable32Bit = true;
+24
hosts/thinkpadz13/hardware-configuration.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" "thunderbolt" ]; 12 + boot.initrd.kernelModules = [ ]; 13 + boot.kernelModules = [ "kvm-amd" ]; 14 + boot.extraModulePackages = [ ]; 15 + 16 + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 17 + # (the default) this is the recommended approach. When using systemd-networkd it's 18 + # still possible to use this option, but it's recommended to use it in conjunction 19 + # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. 20 + networking.useDHCP = lib.mkDefault true; 21 + 22 + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 23 + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 24 + }