Skip to content

feltnerm/nix-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

the official feltnerm nix config

checks

update-flake-lock

Development

Development Shell

nix develop

Update and Commit Lockfile

nix flake update --commit-lock-file

Check

nix flake check

Format

nix fmt

Build Documentation

(may not work on macOS)

nix build .#documentation

or

nix build .#watch-documentation

Hosts

nixos

nixos-rebuild --flake '.#<hostname> <check|build|switch>'

darwin

darwin-rebuild --flake '.#<hostname> <check|build|switch>'

build vm

Uses nixos-generators.

nix build .#nixosConfigurations.<hostName>.config.formats.<format>

generate topology diagram

Uses nix-topology.

Linux

nix build .#topology.x86_64-linux.config.output

macOS

nix build .#topology.x86_64-darwin.config.output

home-manager

home-manager --flake '.#<username> <build|switch>'

nixvim

nix run .# -- <file>
nix run .#<name>-nvim -- <file>

Packages

My (somewhat) useful custom nix packages are defined in ./pkgs.

build

Locally, build them with:

nix build .#<pkg>

run

Subsequently, run them with:

./result/bin/<pkg>

Inspiration

Inspired by the following (and many others!):