From bc3d03ce9ec7414fb22b73eb3c818b2e43de28ec Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sun, 16 Jul 2023 18:17:35 +0800 Subject: [PATCH] hosts/graphical-installer: reduce the config with the nixos-generators NixOS module --- hosts/graphical-installer/default.nix | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/hosts/graphical-installer/default.nix b/hosts/graphical-installer/default.nix index 2ac56e19..90a1a021 100644 --- a/hosts/graphical-installer/default.nix +++ b/hosts/graphical-installer/default.nix @@ -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 = [ - (lib.getUser "nixos" "nixos") + "${modulesPath}/installer/cd-dvd/installation-cd-graphical-base.nix" ]; 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 # closure size smaller. workflows.workflows.a-happy-gnome = { @@ -26,10 +26,7 @@ }; # Some niceties. - profiles = { - desktop.enable = true; - dev.enable = true; - }; + profiles.desktop.enable = true; services.xserver.displayManager = { gdm = { @@ -41,13 +38,4 @@ 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 = ""; - }