nix/config/Live.nix

20 lines
526 B
Nix
Raw Normal View History

2025-01-19 09:06:27 +03:00
{ config, lib, ... }:
let
cfg = config.module.live;
in
{
2025-01-19 09:51:59 +03:00
# ISSUE: Can't find a way to import this conditionally.
# imports = [ "${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/iso-image.nix" ];
2025-01-19 09:06:27 +03:00
config = lib.mkIf cfg.enable {
2025-01-19 09:25:14 +03:00
# services.rogue.enable = true; # NOTE: Not available smh.
2025-01-19 09:51:59 +03:00
fileSystems = lib.mkForce config.lib.isoFileSystems;
2025-01-19 09:06:27 +03:00
services.mingetty = {
autologinUser = "live";
helpLine = ''
Welcome! Both live and root users have password "live". Enjoy!
'';
};
};
}