This repository has no description
0

Configure Feed

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

superconfig / flake.nix
3.2 kB 88 lines
1{ 2 description = "lassulus superconfig"; 3 4 inputs = { 5 # nixpkgs.url = "github:lassulus/nixpkgs/jitsi-upgrade"; 6 nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 7 # nixpkgs.url = "git+file:/home/lass/src/nixpkgs"; 8 9 # nixvim.url = "github:nix-community/nixvim"; 10 # nixvim.inputs.nixpkgs.follows = "nixpkgs"; 11 12 astro-nvim.url = "github:AstroNvim/AstroNvim"; 13 astro-nvim.flake = false; 14 15 clan-core.url = "git+https://git.clan.lol/clan/clan-core"; 16 # clan-core.url = "git+file:/home/lass/src/clan/clan-core"; 17 clan-core.inputs.nixpkgs.follows = "nixpkgs"; 18 clan-core.inputs.flake-parts.follows = "flake-parts"; 19 clan-core.inputs.disko.follows = "disko"; 20 21 # stockholm.url = "git+https://cgit.lassul.us/stockholm"; 22 # stockholm.url = "path:/home/lass/sync/stockholm"; 23 stockholm.url = "github:krebs/stockholm"; 24 stockholm.inputs.nixpkgs.follows = "nixpkgs"; 25 26 disko.url = "github:nix-community/disko"; 27 # disko.url = "git+file:/home/lass/src/disko/"; 28 disko.inputs.nixpkgs.follows = "nixpkgs"; 29 30 nixos-hardware.url = "github:nixos/nixos-hardware"; 31 32 nether.url = "github:krebs/nether"; 33 nether.inputs.nixpkgs.follows = "nixpkgs"; 34 nether.inputs.clan-core.follows = "clan-core"; 35 36 spora.url = "github:krebs/spora"; 37 spora.inputs.nixpkgs.follows = "nixpkgs"; 38 }; 39 40 outputs = inputs@{ self, flake-parts, nixpkgs, clan-core, ... }: 41 let 42 clan = clan-core.lib.buildClan { 43 clanName = "superconfig"; 44 directory = self; 45 specialArgs.self = self; 46 machines = nixpkgs.lib.mapAttrs (machineName: _: { 47 48 imports = [ 49 ./machines/${machineName}/physical.nix 50 ({ config, pkgs, ... }: { 51 clanCore.machineName = machineName; 52 clanCore.facts.secretStore = "password-store"; 53 clanCore.facts.secretUploadDirectory = "/etc/secrets"; 54 clanCore.facts.secretDirectory = pkgs.lib.mkForce config.clanCore.facts.secretUploadDirectory; 55 clan.networking.targetHost = "root@${machineName}"; 56 krebs.secret.directory = config.clanCore.facts.secretUploadDirectory; 57 nixpkgs.overlays = [ 58 self.inputs.stockholm.overlays.default 59 (import (self.inputs.stockholm.inputs.nix-writers + "/pkgs")) # TODO get rid of that overlay 60 ]; 61 }) 62 ./2configs 63 ./3modules 64 self.inputs.stockholm.nixosModules.krebs 65 ]; 66 }) (builtins.readDir ./machines); 67 }; 68 in 69 flake-parts.lib.mkFlake { inherit inputs; } { 70 systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ]; 71 imports = [ 72 ./tools/nvim.nix 73 ./tools/astronvim/flake-module.nix 74 ./tools/zsh.nix 75 ./tools/get-spora-hosts.nix 76 ]; 77 flake.nixosConfigurations = clan.nixosConfigurations; 78 flake.clanInternals = clan.clanInternals; 79 perSystem = { config, lib, pkgs, system, ... }: { 80 packages = lib.mapAttrs (name: v_: pkgs.callPackage ./5pkgs/${name} {}) (builtins.readDir ./5pkgs); 81 devShells.default = pkgs.mkShell { 82 packages = [ 83 clan-core.packages.${system}.clan-cli 84 ]; 85 }; 86 }; 87 }; 88}