nix-config/flake.nix
Lander Van den Bulcke 44a5bd24a3
feat: add opentofu
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
2025-01-10 16:48:16 +01:00

49 lines
1,022 B
Nix

{
description = "Your new nix config";
inputs = {
# Nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
# Secrets
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
# theme
catppuccin.url = "github:catppuccin/nix";
# Home manager
home-manager.url = "github:nix-community/home-manager/release-24.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nixvim.url = "git+https://codeberg.org/landervdb/nixvim.git";
};
outputs =
{
self,
nixpkgs,
...
}@inputs:
let
inherit (self) outputs;
in
{
nixosConfigurations = {
wodan = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
modules = [
./hosts/wodan
];
};
widar = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
modules = [
./hosts/widar
];
};
};
};
}