mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 01:53:15 -06:00
move scan import to hardware-configuration.nix to match defaults
This commit is contained in:
parent
3ed917054d
commit
8ade367d84
2 changed files with 15 additions and 4 deletions
|
@ -8,9 +8,6 @@
|
|||
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
"${modulesPath}/installer/scan/not-detected.nix"
|
||||
|
||||
# list other modules here
|
||||
];
|
||||
|
||||
services.sshd.enable = true;
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue