build please?
This commit is contained in:
23
system/first_boot/default.nix
Normal file
23
system/first_boot/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user