hosts/graphical-installer: reduce the config with the nixos-generators NixOS module

This commit is contained in:
Gabriel Arazas 2023-07-16 18:17:35 +08:00
parent 7a1bf68a34
commit bc3d03ce9e
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -1,8 +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.
{ {
imports = [ imports = [
(lib.getUser "nixos" "nixos") "${modulesPath}/installer/cd-dvd/installation-cd-graphical-base.nix"
]; ];
isoImage = { isoImage = {
@ -15,9 +18,6 @@
}]; }];
}; };
# We'll be using NetworkManager with the desktop environment anyways.
networking.wireless.enable = false;
# Use my desktop environment configuration without the apps just to make the # Use my desktop environment configuration without the apps just to make the
# closure size smaller. # closure size smaller.
workflows.workflows.a-happy-gnome = { workflows.workflows.a-happy-gnome = {
@ -26,10 +26,7 @@
}; };
# Some niceties. # Some niceties.
profiles = { profiles.desktop.enable = true;
desktop.enable = true;
dev.enable = true;
};
services.xserver.displayManager = { services.xserver.displayManager = {
gdm = { gdm = {
@ -41,13 +38,4 @@
user = "nixos"; user = "nixos";
}; };
}; };
boot = {
kernelPackages = pkgs.linuxPackages_latest;
loader.systemd-boot.enable = true;
supportedFilesystems = lib.mkForce [ "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs" ];
};
users.users.root.password = "";
} }