flake/flake.nix
2024-08-31 00:23:59 +02:00

25 lines
649 B
Nix

{
description = "Lyns flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
sops-nix.url = "github:Mic92/sops-nix";
};
outputs = { self, nixpkgs, sops-nix }@inputs: {
nixosConfigurations = {
"forgejo" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
# Import the configuration.nix here, so that the
# old configuration file can still take effect.
# Note: configuration.nix itself is also a Nixpkgs Module,
./configuration.nix
sops-nix.nixosModules.sops
];
specialArgs = {
inherit inputs;
flake = self;
};
};
};
};
}