Fix NixOS profile imports

pull/28/head
Tristan Daniël Maat 2021-04-18 02:58:49 +01:00
parent df76dcbf11
commit 04c00b9877
Signed by: tlater
GPG Key ID: 49670FD774E43268
2 changed files with 10 additions and 5 deletions

View File

@ -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 =
[ <nixpkgs/nixos/modules/profiles/qemu-guest.nix>
[ (modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "virtio_pci" "ahci" "sd_mod" ];

View File

@ -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)