server-config/flake.nix
Danila Fedorin 2286867025 Pin the blog nixpkgs to the OS nixpkgs.
Easier to update Hugo this way.

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2023-12-16 19:34:11 +00:00

24 lines
721 B
Nix

{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
blog.url = "git+https://dev.danilafe.com/Nix-Configs/blog-static-flake.git";
blog.inputs.nixpkgs.follows = "nixpkgs";
web-files.url = "git+https://dev.danilafe.com/Nix-Configs/web-files.git";
};
outputs = { self, nixpkgs, blog, web-files }:
let
system = "x86_64-linux";
in
{
nixosConfigurations.nixos-droplet-v2 = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
inherit system;
blog = blog.lib."${system}";
web-files = web-files.defaultPackage."${system}";
};
modules = [ ./configuration.nix ];
};
};
}