Skip to content

sbulav/dotfiles

Repository files navigation

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: