diff options
Diffstat (limited to '')
-rw-r--r-- | .envrc | 5 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | flake.nix | 10 |
3 files changed, 15 insertions, 1 deletions
diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..a9c7e4e --- /dev/null +++ b/.envrc @@ -0,0 +1,5 @@ +use flake +if on_git_branch; then + echo && git status --short --branch && + echo && git fetch --verbose +fi diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..92b2793 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.direnv diff --git a/flake.nix b/flake.nix index f2f6379..9504c04 100644 --- a/flake.nix +++ b/flake.nix @@ -17,7 +17,10 @@ nixpkgs, simple-nixos-mailserver, ... - } @ attrs: { + } @ attrs: let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + in { nixosConfigurations."server1" = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = attrs; @@ -29,5 +32,10 @@ } ]; }; + devShells."${system}" = { + default = pkgs.mkShell { + packages = with pkgs; [nil alejandra statix shellcheck ltex-ls]; + }; + }; }; } |