2023-11-07 00:21:48 +00:00
|
|
|
{ lib, config, pkgs, modulesPath, ... }:
|
2022-03-01 15:07:56 +00:00
|
|
|
|
2023-07-16 10:17:35 +00:00
|
|
|
# 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.
|
2022-03-01 15:07:56 +00:00
|
|
|
{
|
|
|
|
imports = [
|
2023-07-16 10:17:35 +00:00
|
|
|
"${modulesPath}/installer/cd-dvd/installation-cd-graphical-base.nix"
|
2022-03-01 15:07:56 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
isoImage = {
|
|
|
|
isoBaseName = config.networking.hostName;
|
2023-07-14 11:59:39 +00:00
|
|
|
|
|
|
|
# Put the source code somewhere easy to see.
|
2022-03-01 15:07:56 +00:00
|
|
|
contents = [{
|
2023-11-07 00:21:48 +00:00
|
|
|
source = ../..;
|
2023-07-14 11:59:39 +00:00
|
|
|
target = "/etc/nixos";
|
2022-03-01 15:07:56 +00:00
|
|
|
}];
|
|
|
|
};
|
|
|
|
|
2023-07-14 11:59:39 +00:00
|
|
|
# Use my desktop environment configuration without the apps just to make the
|
|
|
|
# closure size smaller.
|
|
|
|
workflows.workflows.a-happy-gnome = {
|
|
|
|
enable = true;
|
|
|
|
extraApps = [ ];
|
|
|
|
};
|
|
|
|
|
|
|
|
# Some niceties.
|
2023-07-16 10:17:35 +00:00
|
|
|
profiles.desktop.enable = true;
|
2022-03-01 15:07:56 +00:00
|
|
|
|
|
|
|
services.xserver.displayManager = {
|
|
|
|
gdm = {
|
|
|
|
enable = true;
|
|
|
|
autoSuspend = false;
|
|
|
|
};
|
|
|
|
autoLogin = {
|
|
|
|
enable = true;
|
|
|
|
user = "nixos";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|