homebox first attempt

This commit is contained in:
2024-10-18 16:01:09 -05:00
parent d6509ee1a7
commit 917bfa3763
6 changed files with 35 additions and 31 deletions

View File

@@ -7,16 +7,30 @@
config = lib.mkIf config.sysconfig.opts.firstBoot {
users.users.${core_inputs.user} = {
users.users.${config.sysconfig.opts.username} = {
initialPassword = "7567";
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsU69CxfQk58CvItPN426h5Alnpb60SH37wet97Vb57 nathan@laptop"
];
};
home-manager.users.${core_inputs.user} = core_inputs.${core_inputs.user}.homeManagerModule;
home-manager.users.${config.sysconfig.opts.username} = core_inputs.${config.sysconfig.opts.username}.homeManagerModule;
systemd.services.sshd.wantedBy = lib.mkForce [ "mulit-user.target" ];
systemd.services.sshd.wantedBy = lib.mkForce [ "multi-user.target" ];
systemd.serivces.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;
};