{ config, lib, options, pkgs, inputs, modulesPath, ... }: with lib; let calamares-nixos-autostart = pkgs.makeAutostartItem { name = "io.calamares.calamares"; package = pkgs.calamares-nixos; }; calamares-extensions-desk-os = pkgs.callPackage ../../packages/calamares-extensions {}; in { imports = [ (modulesPath + "/profiles/all-hardware.nix") (modulesPath + "/profiles/base.nix") (modulesPath + "/profiles/installation-device.nix") ]; nixpkgs = { hostPlatform = lib.mkDefault "x86_64-linux"; config.allowUnfree = true; }; nix = { settings.experimental-features = ["nix-command" "flakes"]; extraOptions = "experimental-features = nix-command flakes"; }; boot = { supportedFilesystems = lib.mkForce ["btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs"]; }; networking.hostName = "desk-os-installer"; services.openssh.enable = lib.mkForce false; # Inhibit sleep, suspend, hibernate systemd.targets = { sleep.enable = false; suspend.enable = false; hibernate.enable = false; hybrid-sleep.enable = false; }; boot = { consoleLogLevel = 0; kernelParams = ["quiet"]; initrd.verbose = false; loader.systemd-boot.enable = true; loader.timeout = lib.mkForce 0; plymouth = { enable = true; theme = "breeze"; }; }; # Adds terminus_font for people with HiDPI displays console.packages = options.console.packages.default ++ [pkgs.terminus_font]; # An installation media cannot tolerate a host config defined file # system layout on a fresh machine, before it has been formatted. swapDevices = mkImageMediaOverride []; # fileSystems = mkImageMediaOverride config.lib.isoFileSystems; boot.postBootCommands = '' for o in $(