mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
Gabriel Arazas
051e7fb3c4
It isn't exactly used much and also it is not really meant to be used in that way even though it is still Nix data.
42 lines
950 B
Nix
42 lines
950 B
Nix
{ lib, config, pkgs, 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 = [
|
|
"${modulesPath}/installer/cd-dvd/installation-cd-graphical-base.nix"
|
|
];
|
|
|
|
isoImage = {
|
|
isoBaseName = config.networking.hostName;
|
|
|
|
# Put the source code somewhere easy to see.
|
|
contents = [{
|
|
source = ../..;
|
|
target = "/etc/nixos";
|
|
}];
|
|
};
|
|
|
|
# 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.
|
|
profiles.desktop.enable = true;
|
|
|
|
services.xserver.displayManager = {
|
|
gdm = {
|
|
enable = true;
|
|
autoSuspend = false;
|
|
};
|
|
autoLogin = {
|
|
enable = true;
|
|
user = "nixos";
|
|
};
|
|
};
|
|
}
|