This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

flake: use new clan syntax

+21 -14
+21 -14
flake.nix
··· 18 18 # stockholm.url = "path:/home/lass/sync/stockholm"; 19 19 stockholm.inputs.nixpkgs.follows = "nixpkgs"; 20 20 21 - disko.url = "github:nix-community/disko"; 21 + # disko.url = "github:nix-community/disko/images"; 22 + disko.url = "git+file:/home/lass/src/disko/"; 22 23 disko.inputs.nixpkgs.follows = "nixpkgs"; 23 24 }; 24 25 25 26 outputs = inputs@{ self, flake-parts, nixpkgs, clan-core, ... }: 27 + let 28 + clan = clan-core.lib.buildClan { 29 + directory = self; 30 + specialArgs.self = self; 31 + machines = nixpkgs.lib.mapAttrs (machineName: _: { 32 + 33 + imports = [ 34 + ./nixos/machines/${machineName}/physical.nix 35 + { 36 + clanCore.machineName = machineName; 37 + clanCore.secretStore = "password-store"; 38 + krebs.secret.directory = "/etc/secrets"; 39 + } 40 + ]; 41 + }) (builtins.readDir ./nixos/machines); 42 + }; 43 + in 26 44 flake-parts.lib.mkFlake { inherit inputs; } { 27 45 systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ]; 28 46 imports = [ ··· 31 49 32 50 ./tools/zsh.nix 33 51 ]; 34 - flake.nixosConfigurations = nixpkgs.lib.mapAttrs (machineName: _: nixpkgs.lib.nixosSystem { 35 - system = "x86_64-linux"; 36 - specialArgs.self = self; 37 - modules = [ 38 - ./nixos/machines/${machineName}/physical.nix 39 - clan-core.nixosModules.clanCore 40 - { 41 - clanCore.machineName = machineName; 42 - clanCore.secretStore = "password-store"; 43 - krebs.secret.directory = "/etc/secrets"; 44 - } 45 - ]; 46 - }) (builtins.readDir ./nixos/machines); 52 + flake.nixosConfigurations = clan.nixosConfigurations; 53 + flake.clanInternals = clan.clanInternals; 47 54 }; 48 55 }