From 7bf7a551fb5160c7639deccec4b8e0675d53b6ff Mon Sep 17 00:00:00 2001 From: willemml Date: Mon, 6 Nov 2023 11:42:13 -0800 Subject: [PATCH] Changes live.nix to use nixos builtin modules --- nixos/hosts/live.nix | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/nixos/hosts/live.nix b/nixos/hosts/live.nix index ecea4cd..2699047 100644 --- a/nixos/hosts/live.nix +++ b/nixos/hosts/live.nix @@ -2,26 +2,18 @@ pkgs, lib, config, + modulesPath, ... }: { + imports = [ + (modulesPath + "/installer/cd-dvd/iso-image.nix") + (modulesPath + "/profiles/minimal.nix") + (modulesPath + "/profiles/installation-device.nix") + ]; networking.hostName = "nixos-live"; isoImage.makeEfiBootable = true; - documentation.nixos.enable = true; - - users.users.willem.initialHashedPassword = ""; - users.users.root.initialHashedPassword = ""; - - security.sudo = { - enable = true; - wheelNeedsPassword = false; - }; - - services.getty.autologinUser = "willem"; - - services.openssh.enable = true; - environment.systemPackages = with pkgs; [ curl ddrescue