diff options
author | sils <sils@sils.li> | 2023-04-20 19:43:58 +0200 |
---|---|---|
committer | sils <sils@sils.li> | 2023-04-20 19:43:58 +0200 |
commit | 743f12290d370cfe3e7b59430ea5e2b73709bd79 (patch) | |
tree | b8e6c062dde74e0fd52d278281d01c412fafefda /flake.nix | |
parent | Merge pull request 'server1_develop' (#22) from server1_develop into server1 (diff) | |
parent | Docs(contributing): Add (diff) | |
download | nixos-server-743f12290d370cfe3e7b59430ea5e2b73709bd79.tar.gz nixos-server-743f12290d370cfe3e7b59430ea5e2b73709bd79.zip |
Merge pull request 'server1_build' (#25) from server1_build into server1
Reviewed-on: https://codeberg.org/vhack.eu/nixos-server/pulls/25
Diffstat (limited to '')
-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]; + }; + }; }; } |