Skip to content

Admasnd/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repo Info

The github repo is now being used as a mirror as I have moved this repo to the Radicle network.

On the Radicle network, this repo can be found with rad:z3p3ybE6Vm6WedPNrB86msvw6ogBn.

The repo can also be viewed in your browser at:

https://app.radicle.xyz/nodes/rosa.radicle.xyz/rad:z3p3ybE6Vm6WedPNrB86msvw6ogBn

Usage Instructions

In order to update flake:

nix flake update

Deploy NixOS config with parallelism

sudo nixos-rebuild --flake . switch -j auto

NixOS Remote Deployment Example

nixos-rebuild switch --flake .#nixjoy -j auto --ask-sudo-password --target-host admin@nixjoy --build-host admin@nixjoy

Running Pentest Development Shell

nix develop .#pentest

Tailscale

We want to be able to access nixjoy over the internet safely. inputs.private-dotfiles.nixosModules.tailscale enables the Tailscale service. Additionally, we need to perform an initial connection with tailscale up. Furthermore, we need to advertise that tailscale will handle ssh connections coming from the tailnet using tailscale set --ssh. Finally, we must configure our ACL in the tailscale admin portal to allow receiving ssh connections from the tailnet.

Backup

In addition to the settings defined in nixos/nixframe/configuration.nix, you will need to add the hostkey for the remote borg repo. Perform the following command to get the host key.

ssh-keyscan -H <server>

You can then set the hostkey declaratively using services.openssh.knownHosts.<name>.publicKey.

FIDO2 Unlock

systemd-cryptenroll must be used to manually enroll FIDO2 key into LUKS2 partition.

The pam u2f module is used to login with the FIDO2 key. This can be declaratively set with NixOS. pamu2fcfg is used to get the public key to enroll the FIDO2 keys.

Garbage Collection

Do the following to manually garbage collect NixOS generations in the last two weeks.

nix-collect-garbage --delete-older-than 14d

About

My personal system configuration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published