diff --git a/flake.nix b/flake.nix index d9fd200..8fea853 100644 --- a/flake.nix +++ b/flake.nix @@ -60,6 +60,27 @@ ]; # end of modules in nixpkgs.lib.nixosSystem {inherit system modules specialArgs; }; + breakdown = + let + system = "x86_64-linux"; + specialArgs = { inherit inputs; }; + modules = [ + ./configuration.nix { + networking.hostName = "breakdown"; + boot.loader.efi.canTouchEfiVariables = true; + sound.enable = true; + } + ./hardware/breakdown-hw.nix + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.mir = import ./home.nix; + home-manager.extraSpecialArgs = specialArgs; + } + ]; # end of modules + in + nixpkgs.lib.nixosSystem {inherit system modules specialArgs; }; starscream = let system = "x86_64-linux"; diff --git a/hardware/breakdown-hw.nix b/hardware/breakdown-hw.nix new file mode 100644 index 0000000..96a4273 --- /dev/null +++ b/hardware/breakdown-hw.nix @@ -0,0 +1,40 @@ +# 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 = [ "nvme" "xhci_pci" "ahci" "sdhci_pci" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/5668175e-41bb-4eea-bb84-8d2b18d9bd57"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/0DA3-1ACE"; + fsType = "vfat"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/87f35888-619a-4c88-9160-3b17a9d1fbec"; } + ]; + + # 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..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.enp2s0.useDHCP = lib.mkDefault true; + # networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}