dot.nix/iso/not-secrets.nix
Chris Toph ceec977ad8 Introduced buildable ISO images for desktop and server
- ARM and X86
- Fully configured ISO for dot.nix for easy installation
- TODO: automatic builds with github actions
2025-06-15 20:15:16 -04:00

51 lines
1,013 B
Nix

{
pkgs,
config,
lib,
...
}:
let
## SSH Keys ##
key = {
pub = ""; # Set a key for easy SSH access
};
sshConfig = pkgs.writeText "ssh-config" ''
Host git.ryot.foo
IdentityFile "${config.hostSpec.home}/.ssh/git"
Host *
ForwardAgent no
AddKeysToAgent yes
Compression no
ServerAliveInterval 5
ServerAliveCountMax 3
HashKnownHosts no
UserKnownHostsFile ~/.ssh/known_hosts
ControlMaster no
ControlPath ~/.ssh/master-%r@%n:%p
ControlPersist no
UpdateHostKeys ask
'';
in
{
secretsSpec = {
users = {
nixos = {
hashedPassword = "$6$rounds=656000$5ehID8CrGOgiG4Ms$MiS68cPnrREv1URzlCcyFnJntVhWMKAnY7ZNaEvgEG36vV1KBnQHyv6HkPmOeh8aGOljYOR0aWFg.irg6ahT3."; # nixos
email = "admin@localhost";
handle = "nixos";
fullName = "NixOS Live User";
ssh = {
publicKeys = [
key.pub
];
config = sshConfig;
};
};
};
};
}