Fix NixOS profile imports
This commit is contained in:
parent
df76dcbf11
commit
04c00b9877
|
@ -1,11 +1,11 @@
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[ <nixpkgs/nixos/modules/profiles/qemu-guest.nix>
|
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "virtio_pci" "ahci" "sd_mod" ];
|
boot.initrd.availableKernelModules = [ "virtio_pci" "ahci" "sd_mod" ];
|
||||||
|
|
11
flake.nix
11
flake.nix
|
@ -39,13 +39,15 @@
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
({ ... }: { nixpkgs.overlays = overlays; })
|
({ modulesPath, ... }: {
|
||||||
|
imports = [ (modulesPath + "/profiles/headless.nix") ];
|
||||||
|
nixpkgs.overlays = overlays;
|
||||||
|
})
|
||||||
(import ./modules)
|
(import ./modules)
|
||||||
|
|
||||||
(import ./configuration)
|
(import ./configuration)
|
||||||
(import ./configuration/linode.nix)
|
(import ./configuration/linode.nix)
|
||||||
(import ./configuration/hardware-configuration.nix)
|
(import ./configuration/hardware-configuration.nix)
|
||||||
nixpkgs.modules.headless
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -53,7 +55,10 @@
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
({ ... }: { nixpkgs.overlays = overlays; })
|
({ modulesPath, ... }: {
|
||||||
|
imports = [ (modulesPath + "/profiles/headless.nix") ];
|
||||||
|
nixpkgs.overlays = overlays;
|
||||||
|
})
|
||||||
(import ./modules)
|
(import ./modules)
|
||||||
|
|
||||||
(import ./configuration)
|
(import ./configuration)
|
||||||
|
|
Loading…
Reference in a new issue