mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
hosts/bootstrap: reduce the config with nixos-generators NixOS module
This commit is contained in:
parent
f98ccd1745
commit
7a1bf68a34
@ -1,10 +1,11 @@
|
||||
{ lib, config, pkgs, inputs, ... }:
|
||||
{ lib, config, pkgs, inputs, modulesPath, ... }:
|
||||
|
||||
# Since this will be exported as an installer ISO, you'll have to keep in mind
|
||||
# about the added imports from nixos-generators. In this case, it simply adds
|
||||
# the NixOS installation CD profile.
|
||||
#
|
||||
# This means, there will be a "nixos" user among other things.
|
||||
{
|
||||
imports = [
|
||||
(lib.getUser "nixos" "nixos")
|
||||
];
|
||||
|
||||
isoImage = {
|
||||
isoBaseName = config.networking.hostName;
|
||||
|
||||
@ -15,17 +16,11 @@
|
||||
}];
|
||||
};
|
||||
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
loader.systemd-boot.enable = true;
|
||||
supportedFilesystems = lib.mkForce [ "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs" ];
|
||||
};
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
# Assume that this will be used for remote installations.
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
allowSFTP = true;
|
||||
};
|
||||
|
||||
users.users.root.password = "";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user