66 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			66 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   description = "Clan services for use with Amarth Cloud";
 | |
| 
 | |
|   inputs = {
 | |
|     nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
 | |
| 
 | |
|     flake-parts = {
 | |
|       url = "github:hercules-ci/flake-parts";
 | |
|       inputs.nixpkgs-lib.follows = "nixpkgs";
 | |
|     };
 | |
| 
 | |
|     clan-core = {
 | |
|       url = "https://git.clan.lol/clan/clan-core/archive/main.tar.gz";
 | |
|       inputs.nixpkgs.follows = "nixpkgs";
 | |
|       inputs.flake-parts.follows = "flake-parts";
 | |
|     };
 | |
| 
 | |
|     devshell = {
 | |
|       url = "github:numtide/devshell";
 | |
|     };
 | |
|   };
 | |
| 
 | |
|   outputs =
 | |
|     inputs@{ flake-parts, systems, ... }:
 | |
|     flake-parts.lib.mkFlake { inherit inputs; } ({ ... }: {
 | |
|       systems = [
 | |
|         "x86_64-linux"
 | |
|       ];
 | |
| 
 | |
|       imports = [
 | |
|         flake-parts.flakeModules.modules
 | |
|         inputs.clan-core.flakeModules.default
 | |
|         inputs.clan-core.flakeModules.testModule
 | |
|         inputs.devshell.flakeModule
 | |
| 
 | |
|         ./clanServices/flake-module.nix
 | |
|       ];
 | |
| 
 | |
|       flake = {
 | |
|         modules = {};
 | |
|       };
 | |
| 
 | |
|       clan = {
 | |
|         meta.name = "amarth-services";
 | |
| 
 | |
|         inventory = {
 | |
|           machines = {
 | |
|             "test-darwin-machine" = {
 | |
|               machineClass = "darwin";
 | |
|             };
 | |
|           };
 | |
|         };
 | |
|       };
 | |
| 
 | |
|       perSystem = { system, pkgs, ... }: {
 | |
|         devshells = {
 | |
|           default = {
 | |
|             packages = [
 | |
|               pkgs.just
 | |
|               inputs.clan-core.packages.${system}.clan-cli
 | |
|             ];
 | |
|           };
 | |
|         };
 | |
|       };
 | |
|     });
 | |
| }
 |