move scan import to hardware-configuration.nix to match defaults

This commit is contained in:
Cole Mickens 2020-10-25 14:56:37 -07:00
parent 3ed917054d
commit 8ade367d84
No known key found for this signature in database
GPG key ID: B475C2955744A019
2 changed files with 15 additions and 4 deletions

View file

@ -8,9 +8,6 @@
imports = [
./hardware-configuration.nix
"${modulesPath}/installer/scan/not-detected.nix"
# list other modules here
];
services.sshd.enable = true;

View file

@ -1,6 +1,20 @@
{ ... }:
# these args are passed into every nixos module (or file that is in included in a nixos module imports=[...])
{
modulesPath, # this variable, in particular, gives us the nixos modules path for our system config
...
}:
{
imports = [
# note: this format can't be used with flakes, because it pulls from
# NIX_PATH, which is impure, and dis-allowed with flakes.
# Use the format shown in the line below it.
#<nixpkgs/nixos/modules/installer/scan/not-detected.nix>
"${modulesPath}/installer/scan/not-detected.nix"
]
boot.loader.systemd-boot.enable = true; # (for UEFI systems only)
fileSystems."/".device = "/dev/disk/by-label/nixos";
}