My NixOS installation with flake
Find a file
2025-01-03 00:15:36 +01:00
home-manager refactor: separate NixOS and Home-Manager configuration 2024-10-09 10:40:39 +02:00
hosts feat(mrmeeseeks): create a LACT module 2025-01-02 22:15:59 +01:00
modules chore(neovim): rework lua lsp configuration 2025-01-03 00:15:36 +01:00
nixos chore(overlay): apply change in nur package overlay method 2025-01-02 22:42:23 +01:00
secrets feat(home-manager): add webdav module 2024-10-08 00:09:18 +02: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
.sops.yaml feat: add sops-nix input 2024-10-08 00:09:18 +02:00
_typos.toml feat: exclude lua files check from typo 2024-11-17 18:18:26 +01:00
flake.lock chore: bump packages repositories version 2025-01-02 22:15:59 +01:00
flake.nix chore: simplify home-manager target name 2024-11-09 22:22:42 +01:00
lefthook.yaml feat: check shell script with git hook 2024-11-09 22:22:37 +01:00
README.md docs: update README 2024-11-09 22:22:48 +01:00
Taskfile.dist.yaml feat(taskfile): improve targets management 2024-11-09 22:22: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:             Switch both Home-Manager and NixOS generations
* host:*:update:             Update package version then build NixOS and Home-Manager
* 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

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

# build / switch ephase home configuration for mrmeeseeks

Update nixpkgs version

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

task host:mrmeeseeks:update

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:mrmeeseeks:switch