dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

My configuration files

My configuration files managed with NixOS flake

Nix NixOS Snowfall Neovim

GitGuardian scan release-please

Nix

Nix flakes following arbitrary Snowfall lib conventions:

nix/
│
│ Nix flake.
├─ flake.nix
│
│ An optional custom library.
├─ lib/
│
│ An optional set of packages to export.
├─ packages/
│
├─ modules/ (optional modules)
│
├─ overlays/ (optional overlays)
│
├─ systems/ (optional system configurations)
│
└─ homes/ (optional homes configurations)

Kudos for config inspiration to:

You might also want to check out my blog with #Nix category

Useful NIX commands

Quickly try out new package in the shell without installing it:

nix shell nixpkgs#glow

List all generations:

sudo nix-env --list-generations --profile /nix/var/nix/profiles/system

Rollback to previous generation:

sudo nixos-rebuild switch --flake ~/dotfiles/nix#nz --rollback

Rollback to previous generation:

sudo nixos-rebuild switch --flake ~/dotfiles/nix#nz --rollback

Activate specific generation:

sudo nix-env --profile /nix/var/nix/profiles/system --switch-generation 210

Automated workflows

I'm using following workflows to automate management of my dotfiles:

  • automerge-release.yml - Merge changelog automated PR
  • commit_validate.yml - Validate commits are using conventional commits style
  • gitguardian.yml - Check for leaking secrets/tokens
  • please_release.yml - Automated releases based on conventional commits
  • update-readme.yml - Workflow to generate this README