Files
hydenix/flake.nix
2025-11-01 10:30:13 +09:00

44 lines
1.1 KiB
Nix

{
description = "template for hydenix";
inputs = rec {
# Your nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# Hydenix
hydenix = {
# Available inputs:
# Main: github:richen604/hydenix
# Commit: github:richen604/hydenix/<commit-hash>
# Version: github:richen604/hydenix/v1.0.0 - note the version may not be compatible with this template
url = "github:richen604/hydenix";
# uncomment the below if you know what you're doing, hydenix updates nixos-unstable every week or so
# inputs.nixpkgs.follows = "nixpkgs";
};
# Hardware Configuration's, used in ./configuration.nix. Feel free to remove if unused
nixos-hardware.url = "github:nixos/nixos-hardware/master";
};
outputs =
{ ... }@inputs:
let
system = "x86_64-linux";
hydenixConfig = inputs.nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
inherit inputs;
};
modules = [
./configuration.nix
];
};
in
{
nixosConfigurations.hydenix = hydenixConfig;
nixosConfigurations.default = hydenixConfig;
};
}