NixOS configuration ๐Ÿช„

๐Ÿง‘โ€๐Ÿ’ป Added development environemt for flake

Signed-off-by: Xaiya Schumin <d.schumin@proton.me>

+34
+6
.envrc
··· 1 + if has nix_direnv_version; then 2 + watch_file modules/flake/shell.nix 3 + 4 + # now we want to load the flake environment 5 + use flake 6 + fi
+3
.gitignore
··· 7 7 # Ignore the configuration folder for Jetbrains IDEs 8 8 .idea/ 9 9 10 + # Development environment 11 + .direnv/ 12 + 10 13 # Disable vm outputs that are called when starting a vm in this directory 11 14 *.qcow 12 15 *.qcow2
+1
modules/flake/default.nix
··· 7 7 ./modules.nix # Inject modules into flake 8 8 ./lib # add my own library 9 9 ./args.nix # Pass arguments used by the flake 10 + ./shell.nix # A development environment for this system 10 11 11 12 12 13 ];
+24
modules/flake/shell.nix
··· 1 + { 2 + perSystem = 3 + { 4 + pkgs, 5 + inputs', 6 + config, 7 + ... 8 + }: 9 + { 10 + devShells = { 11 + default = pkgs.mkShell { 12 + name = "dotfiles"; 13 + meta.description = "Development environment for the repository 'dotfiles'"; 14 + 15 + packages = [ 16 + pkgs.gitMinimal # Add git when it is not already installed 17 + inputs'.agenix-rekey.packages.default # secrets management 18 + pkgs.nixfmt-rfc-style # nix formatter 19 + pkgs.nix-output-monitor # get clean diff between generations 20 + ]; 21 + }; 22 + }; 23 + }; 24 + }