This repository has no description
1.8 kB
57 lines
1{
2 description = "lassulus superconfig";
3
4 inputs = {
5 nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6
7 nixvim.url = "github:nix-community/nixvim";
8 nixvim.inputs.nixpkgs.follows = "nixpkgs";
9
10 astro-nvim.url = "github:AstroNvim/AstroNvim";
11 astro-nvim.flake = false;
12
13 clan-core.url = "git+https://git.clan.lol/clan/clan-core";
14 # clan-core.url = "git+file:/home/lass/src/clan/clan-core";
15 clan-core.inputs.nixpkgs.follows = "nixpkgs";
16 clan-core.inputs.flake-parts.follows = "flake-parts";
17 clan-core.inputs.disko.follows = "disko";
18
19 stockholm.url = "git+https://cgit.lassul.us/stockholm";
20 # stockholm.url = "path:/home/lass/sync/stockholm";
21 stockholm.inputs.nixpkgs.follows = "nixpkgs";
22
23 disko.url = "github:nix-community/disko";
24 # disko.url = "git+file:/home/lass/src/disko/";
25 disko.inputs.nixpkgs.follows = "nixpkgs";
26 };
27
28 outputs = inputs@{ self, flake-parts, nixpkgs, clan-core, ... }:
29 let
30 clan = clan-core.lib.buildClan {
31 directory = self;
32 specialArgs.self = self;
33 machines = nixpkgs.lib.mapAttrs (machineName: _: {
34
35 imports = [
36 ./nixos/machines/${machineName}/physical.nix
37 {
38 clanCore.machineName = machineName;
39 clanCore.secretStore = "password-store";
40 krebs.secret.directory = "/etc/secrets";
41 }
42 ];
43 }) (builtins.readDir ./nixos/machines);
44 };
45 in
46 flake-parts.lib.mkFlake { inherit inputs; } {
47 systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
48 imports = [
49 ./tools/nvim.nix
50 ./tools/astronvim/flake-module.nix
51
52 ./tools/zsh.nix
53 ];
54 flake.nixosConfigurations = clan.nixosConfigurations;
55 flake.clanInternals = clan.clanInternals;
56 };
57}