Compare commits

..

No commits in common. "bf272f660796f765c2919a2e4a75441556604d18" and "7e0a5243647dceeb09ff3095938282370f4047d4" have entirely different histories.

2 changed files with 80 additions and 99 deletions

108
flake.lock generated
View file

@ -4,25 +4,21 @@
"inputs": { "inputs": {
"data-mesher": "data-mesher", "data-mesher": "data-mesher",
"disko": "disko", "disko": "disko",
"flake-parts": [ "flake-parts": "flake-parts",
"flake-parts"
],
"nix-darwin": "nix-darwin", "nix-darwin": "nix-darwin",
"nix-select": "nix-select", "nix-select": "nix-select",
"nixos-facter-modules": "nixos-facter-modules", "nixos-facter-modules": "nixos-facter-modules",
"nixpkgs": [ "nixpkgs": "nixpkgs",
"nixpkgs"
],
"sops-nix": "sops-nix", "sops-nix": "sops-nix",
"systems": "systems", "systems": "systems",
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1758121565, "lastModified": 1757912940,
"narHash": "sha256-y37cz5A+EFMBvWi0/S+wrkTMHGQnDb7cifqZoIfSRHE=", "narHash": "sha256-Xypz7pxa1L09GooMueosv0CRW4Cx5/gdtvSPBrnXf6M=",
"rev": "b7798f54666fe61d8b16b5c45c39fac97e2d2e60", "rev": "93280a9f987bbe689c74f1ea21d0c2fa4645c359",
"type": "tarball", "type": "tarball",
"url": "https://git.clan.lol/api/v1/repos/clan/clan-core/archive/b7798f54666fe61d8b16b5c45c39fac97e2d2e60.tar.gz" "url": "https://git.clan.lol/api/v1/repos/clan/clan-core/archive/93280a9f987bbe689c74f1ea21d0c2fa4645c359.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",
@ -56,24 +52,6 @@
"url": "https://git.clan.lol/clan/data-mesher/archive/main.tar.gz" "url": "https://git.clan.lol/clan/data-mesher/archive/main.tar.gz"
} }
}, },
"devshell": {
"inputs": {
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1741473158,
"narHash": "sha256-kWNaq6wQUbUMlPgw8Y+9/9wP0F8SHkjy24/mN3UAppg=",
"owner": "numtide",
"repo": "devshell",
"rev": "7c9e793ebe66bcba8292989a68c0419b737a22a0",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "devshell",
"type": "github"
}
},
"disko": { "disko": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -96,6 +74,27 @@
} }
}, },
"flake-parts": { "flake-parts": {
"inputs": {
"nixpkgs-lib": [
"clan-core",
"nixpkgs"
]
},
"locked": {
"lastModified": 1756770412,
"narHash": "sha256-+uWLQZccFHwqpGqr2Yt5VsW/PbeJVTn9Dk6SHWhNRPw=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "4524271976b625a4a605beefd893f270620fd751",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-parts_2": {
"inputs": { "inputs": {
"nixpkgs-lib": [ "nixpkgs-lib": [
"nixpkgs" "nixpkgs"
@ -123,11 +122,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1758102940, "lastModified": 1757430124,
"narHash": "sha256-wwqf3+A8EiqwWpcAaPN20QXJLlpGPpwtLTrzgnngI2o=", "narHash": "sha256-MhDltfXesGH8VkGv3hmJ1QEKl1ChTIj9wmGAFfWj/Wk=",
"owner": "nix-darwin", "owner": "nix-darwin",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "ebd0bfc11fc2b5cff37401e9b3703881ad5fabbd", "rev": "830b3f0b50045cf0bcfd4dab65fad05bf882e196",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -166,42 +165,25 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1722073938, "lastModified": 315532800,
"narHash": "sha256-OpX0StkL8vpXyWOGUD6G+MA26wAXK6SpT94kLJXo6B4=", "narHash": "sha256-h8Sx4S+/0FpodZji6W9lHzwY5BcuUG85Aj3GfhvGC2o=",
"owner": "NixOS", "rev": "a650b5d0de99158323597f048667c4d914243224",
"repo": "nixpkgs", "type": "tarball",
"rev": "e36e9f57337d0ff0cf77aceb58af4c805472bfae", "url": "https://releases.nixos.org/nixpkgs/nixpkgs-25.11pre845298.a650b5d0de99/nixexprs.tar.xz"
"type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "type": "tarball",
"ref": "nixpkgs-unstable", "url": "https://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz"
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1757745802,
"narHash": "sha256-hLEO2TPj55KcUFUU1vgtHE9UEIOjRcH/4QbmfHNF820=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c23193b943c6c689d70ee98ce3128239ed9e32d1",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
} }
}, },
"root": { "root": {
"inputs": { "inputs": {
"clan-core": "clan-core", "clan-core": "clan-core",
"devshell": "devshell", "flake-parts": "flake-parts_2",
"flake-parts": "flake-parts", "nixpkgs": [
"nixpkgs": "nixpkgs_2" "clan-core",
"nixpkgs"
]
} }
}, },
"sops-nix": { "sops-nix": {
@ -212,11 +194,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1758007585, "lastModified": 1757449901,
"narHash": "sha256-HYnwlbY6RE5xVd5rh0bYw77pnD8lOgbT4mlrfjgNZ0c=", "narHash": "sha256-qwN8nYdSRnmmyyi+uR6m4gXnVktmy5smG1MOrSFD8PI=",
"owner": "Mic92", "owner": "Mic92",
"repo": "sops-nix", "repo": "sops-nix",
"rev": "f77d4cfa075c3de66fc9976b80e0c4fc69e2c139", "rev": "3b4a369df9dd6ee171a7ea4448b50e2528faf850",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -2,51 +2,50 @@
description = "Clan services for use with Amarth Cloud"; description = "Clan services for use with Amarth Cloud";
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable"; clan-core.url = "https://git.clan.lol/clan/clan-core/archive/main.tar.gz";
nixpkgs.follows = "clan-core/nixpkgs";
flake-parts = { flake-parts = {
url = "github:hercules-ci/flake-parts"; url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs"; 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 = { outputs = inputs@{ self, flake-parts, clan-core, nixpkgs, ... }:
url = "github:numtide/devshell"; let
}; # clan = clan-core.lib.clan {
}; # inherit self;
# imports = [];
outputs = # specialArgs = { inherit inputs; };
inputs@{ flake-parts, ... }: # };
flake-parts.lib.mkFlake { inherit inputs; } ({ self, pkgs, ... }: { in
systems = [ {
"x86_64-linux" # inherit (clan.config) nixosConfigurations nixosModules clanInternals;
]; # clan = clan.config;
imports = [ imports = [
inputs.clan-core.flakeModules.default clan-core.flakeModules.default
inputs.devshell.flakeModule # ./clanServices/flake-module.nix
]; ];
clan = { clan.modules = {
meta.name = "amarth-services";
modules = {
"@amarth/zitadel" = flake-parts.lib.importApply ./modules/service/zitadel/default.nix {}; "@amarth/zitadel" = flake-parts.lib.importApply ./modules/service/zitadel/default.nix {};
"@amarth/k3s" = flake-parts.lib.importApply ./clanServices/k3s/default.nix {}; "@amarth/k3s" = flake-parts.lib.importApply ./clanServices/k3s/default.nix {};
}; };
};
perSystem = { system, ... }: { devShells =
devshells = { nixpkgs.lib.genAttrs
default = { [
packages = [ inputs.clan-core.packages.${system}.clan-cli ]; "x86_64-linux"
}; "aarch64-linux"
}; "aarch64-darwin"
"x86_64-darwin"
]
(system: {
default = clan-core.inputs.nixpkgs.legacyPackages.${system}.mkShell {
packages = [ clan-core.packages.${system}.clan-cli ];
}; };
}); });
};
} }