diff options
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix index 36ae34e..9504c04 100644 --- a/flake.nix +++ b/flake.nix @@ -4,7 +4,12 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11-small"; - simple-nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-22.11"; + simple-nixos-mailserver = { + url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-22.11"; + inputs = { + nixpkgs.follows = "nixpkgs"; + }; + }; }; outputs = { @@ -12,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; @@ -24,5 +32,10 @@ } ]; }; + devShells."${system}" = { + default = pkgs.mkShell { + packages = with pkgs; [nil alejandra statix shellcheck ltex-ls]; + }; + }; }; } |