Files
Olympus/system/first_boot/default.nix
2024-10-18 07:40:46 -05:00

24 lines
724 B
Nix

{ config, lib, core_inputs, ... }: {
options.sysconfig.firstBoot = lib.options.mkOption {
type = lib.types.bool;
default = false;
};
config = lib.mkIf config.sysconfig.firstBoot {
users.users.${core_inputs.user} = {
initialPassword = "7567";
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsU69CxfQk58CvItPN426h5Alnpb60SH37wet97Vb57 nathan@laptop"
];
};
home-manager.users.${core_inputs.user} = core_inputs.${core_inputs.user}.homeManagerModule;
systemd.services.sshd.wantedBy = lib.mkForce [ "mulit-user.target" ];
sysconfig.opts.openssh.enable = lib.mkForce true;
};
}