{ config, pkgs, lib, ... }: #let #disko = pkgs.callPackage ../pkgs/disko/package.nix {}; #disko = "github:nix-community/disko" #in let installFiles = pkgs.runCommand "install-files" { #inherit (pkgs) coreutils; } '' mkdir -p $out/bin cp -rv ${./initrd-include}/* $out/bin/ # Add a marker file to help verify the package is being included echo "Install files package was built" > $out/bin/marker.txt ls -la $out/bin > $out/bin/contents.txt ''; in { imports = [ ../quickly.nix ## installer.nix is a system service to run a script on boot #../installer/installer.nix ]; config = { services.getty.autologinUser = "nixos"; users.users.nixos = { isNormalUser = true; password = "password"; extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. packages = with pkgs; [ tmux htop tree ]; }; #boot.initrd = { # extraFiles = { # "install".source = installFiles; # }; #}; environment.systemPackages = [ pkgs.vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. pkgs.wget pkgs.disko pkgs.coreutils-full pkgs.nixos-install pkgs.nixos-install-tools pkgs.util-linux pkgs.nettools installFiles ]; }; }