···11+if has nix_direnv_version; then
22+ watch_file modules/flake/shell.nix
33+44+ # now we want to load the flake environment
55+ use flake
66+fi
+3
.gitignore
···77# Ignore the configuration folder for Jetbrains IDEs
88.idea/
991010+# Development environment
1111+.direnv/
1212+1013# Disable vm outputs that are called when starting a vm in this directory
1114*.qcow
1215*.qcow2
+1
modules/flake/default.nix
···77 ./modules.nix # Inject modules into flake
88 ./lib # add my own library
99 ./args.nix # Pass arguments used by the flake
1010+ ./shell.nix # A development environment for this system
101111121213 ];
+24
modules/flake/shell.nix
···11+{
22+ perSystem =
33+ {
44+ pkgs,
55+ inputs',
66+ config,
77+ ...
88+ }:
99+ {
1010+ devShells = {
1111+ default = pkgs.mkShell {
1212+ name = "dotfiles";
1313+ meta.description = "Development environment for the repository 'dotfiles'";
1414+1515+ packages = [
1616+ pkgs.gitMinimal # Add git when it is not already installed
1717+ inputs'.agenix-rekey.packages.default # secrets management
1818+ pkgs.nixfmt-rfc-style # nix formatter
1919+ pkgs.nix-output-monitor # get clean diff between generations
2020+ ];
2121+ };
2222+ };
2323+ };
2424+}