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 = {
|
isoImage = {
|
||||||
isoBaseName = config.networking.hostName;
|
isoBaseName = config.networking.hostName;
|
||||||
|
|
||||||
@ -15,17 +16,11 @@
|
|||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
|
||||||
boot = {
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
loader.systemd-boot.enable = true;
|
|
||||||
supportedFilesystems = lib.mkForce [ "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Assume that this will be used for remote installations.
|
# Assume that this will be used for remote installations.
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowSFTP = true;
|
allowSFTP = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.root.password = "";
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user