diff --git a/configuration/hardware-configuration.nix b/configuration/hardware-configuration.nix index 6865858..2a33a67 100644 --- a/configuration/hardware-configuration.nix +++ b/configuration/hardware-configuration.nix @@ -1,11 +1,11 @@ # 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, ... }: +{ config, lib, pkgs, modulesPath, ... }: { imports = - [ + [ (modulesPath + "/profiles/qemu-guest.nix") ]; boot.initrd.availableKernelModules = [ "virtio_pci" "ahci" "sd_mod" ]; diff --git a/flake.nix b/flake.nix index 5fad4b8..39f32f8 100644 --- a/flake.nix +++ b/flake.nix @@ -39,13 +39,15 @@ system = "x86_64-linux"; modules = [ - ({ ... }: { nixpkgs.overlays = overlays; }) + ({ modulesPath, ... }: { + imports = [ (modulesPath + "/profiles/headless.nix") ]; + nixpkgs.overlays = overlays; + }) (import ./modules) (import ./configuration) (import ./configuration/linode.nix) (import ./configuration/hardware-configuration.nix) - nixpkgs.modules.headless ]; }; @@ -53,7 +55,10 @@ system = "x86_64-linux"; modules = [ - ({ ... }: { nixpkgs.overlays = overlays; }) + ({ modulesPath, ... }: { + imports = [ (modulesPath + "/profiles/headless.nix") ]; + nixpkgs.overlays = overlays; + }) (import ./modules) (import ./configuration)