nixos/flake.nix

65 lines
2.0 KiB
Nix
Raw Normal View History

2022-10-25 19:56:22 +01:00
{
inputs = {
2022-12-04 15:01:05 +00:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
2022-11-20 20:29:49 +00:00
agenix.url = "github:ryantm/agenix";
agenix.inputs.nixpkgs.follows = "nixpkgs";
2022-10-25 19:56:22 +01:00
};
description = "Hillion Nix flake";
2022-11-20 20:29:49 +00:00
outputs = { self, nixpkgs, nixpkgs-unstable, agenix }@inputs: {
2022-11-18 20:47:23 +00:00
nixosConfigurations."gendry.jakehillion-terminals.ts.hillion.co.uk" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = inputs;
modules = [
./hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/default.nix
agenix.nixosModule
{
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
}
];
};
2022-10-25 19:56:22 +01:00
nixosConfigurations."vm.strangervm.ts.hillion.co.uk" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = inputs;
modules = [
./hosts/vm.strangervm.ts.hillion.co.uk/default.nix
2022-11-20 20:29:49 +00:00
agenix.nixosModule
2022-10-25 19:56:22 +01:00
{
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
}
];
};
2022-10-30 20:49:38 +00:00
nixosConfigurations."microserver.parents.ts.hillion.co.uk" = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
specialArgs = inputs;
modules = [
./hosts/microserver.parents.ts.hillion.co.uk/default.nix
2022-11-20 20:29:49 +00:00
agenix.nixosModule
2022-10-30 20:49:38 +00:00
{
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
}
];
};
2022-10-22 22:18:32 +01:00
nixosConfigurations."microserver.home.ts.hillion.co.uk" = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
specialArgs = inputs;
modules = [
./hosts/microserver.home.ts.hillion.co.uk/default.nix
2022-11-20 20:29:49 +00:00
agenix.nixosModule
2022-10-22 22:18:32 +01:00
{
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
}
];
};
2022-12-28 13:59:16 +00:00
formatter."x86_64-linux" = nixpkgs.legacyPackages."x86_64-linux".nixpkgs-fmt;
formatter."aarch64-darwin" = nixpkgs.legacyPackages."aarch64-darwin".nixpkgs-fmt;
2022-10-25 19:56:22 +01:00
};
}