{ config, lib, core_inputs, ... }: { options.sysconfig.opts.firstBoot = lib.options.mkOption { type = lib.types.bool; default = false; }; config = lib.mkIf config.sysconfig.opts.firstBoot { users.users.${config.sysconfig.opts.username} = { initialPassword = "7567"; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsU69CxfQk58CvItPN426h5Alnpb60SH37wet97Vb57 nathan@laptop" ]; }; home-manager.users.${config.sysconfig.opts.username} = core_inputs.${config.sysconfig.opts.username}.homeManagerModule; systemd.services.sshd.wantedBy = lib.mkForce [ "multi-user.target" ]; systemd.services.onFirstBoot = { #name = "first-boot.service"; description = "actions to perform on the very first boot of the system"; enable = true; wantedBy = [ "multi-user.target" ]; script = '' setWallpaper /home/nathan/Pictures/Wallpaper/orangescape.jpg 70 ''; }; sysconfig.opts.openssh.enable = lib.mkForce true; }; }