My NixOS installation with flake
Find a file
2026-02-22 22:16:01 +01:00
home-manager feat: move last nixos include to modules 2026-02-22 20:54:47 +01:00
hosts feat: use nixos-facter for morty host 2026-02-22 22:16:01 +01:00
modules feat: move last nixos include to modules 2026-02-22 20:54:47 +01:00
nixos feat: move last nixos include to modules 2026-02-22 20:54:47 +01:00
.envrc fix(devshell): .envrc now refer to flake 2024-04-18 17:50:07 +02:00
.gitignore chore: update git ignored files 2024-04-17 16:47:39 +02:00
_typos.toml feat: exclude lua files check from typo 2024-11-17 18:18:26 +01:00
flake.lock chore: upgrade packages repositories 2026-02-11 22:05:25 +01:00
flake.nix feat: use nixos-facter for morty host 2026-02-22 22:16:01 +01:00
lefthook.yaml ci: shell formatter check is on part with editor one 2025-02-04 18:07:14 +01:00
README.md refactor: rework taskfile 2026-01-24 21:16:42 +01:00
Taskfile.dist.yaml refactor: rework taskfile 2026-01-24 21:16:42 +01:00

My NixOS configuration

My machines and dotfiles management using Nix / NixOS.

Installation

Project contains a devshell installing all needed and a Taskfile is available to help manage elements whether Home-Manager or NixOS configuration.

task --list-all
task: Available tasks for this project:
* check:flake:               Check flake
* check:sh:                  Check SH files, will call all check:sh:* tasks
* check:sh:shellcheck:       Pass Shellcheck on all *.sh files
* check:sh:shfmt:            Pass shfmt in check mode on all sh files
* check:typos:               Check typos in all files
* home:*:*:                  Manage Home-Manager configuration, use home:verb:target format
* home:gc:                   Garbage collect Home-Manager packages
* home:list-gen:             List Home-Manager generations
* host:*:*:                  Switch both Home-Manager and NixOS generations
* host:update:*:             Update packages repositories version
* nixos:*:*:                 Manage NixOS build, use nixos:verb:target format
* nixos:gc:                  Garbage collect NixOS
* nixos:list-gen:            List Nixos generations

Managing NixOS installation, you can use all nixos:* targets for example:

# build mrmeeseeks nixos:
task nixos:build:mrmeeseeks

# build/switch nixos installation for mrmeeseeks
task nixos:switch:mrmeeseeks

The same applies for Home-Manager:

# build home configuration for mrmeeseeks:
task home:build:mrmeeseeks

# build / switch ephase home configuration for mrmeeseeks
task home:switch:mrmeeseeks

Update nixpkgs version

Update packages repositories version can be done with host:update:<hostname>:

task host:update:mrmeeseeks

flake.lock file will be updated then both NixOS and Home-Manager will be rebuilt. Note than new generation will not be activated, to do so you need to:

task host:switch:mrmeeseeks