This repository has no description
0

Configure Feed

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

superconfig / flake.nix
3.8 kB 101 lines
1{ 2 description = "lassulus superconfig"; 3 4 inputs = { 5 nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 6 # nixpkgs.url = "path:/home/lass/tmp/nixpkgs-disk-debug"; 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 = "github:krebs/stockholm"; 22 # stockholm.url = "git+https://cgit.lassul.us/stockholm"; 23 # stockholm.url = "path:/home/lass/sync/stockholm"; 24 stockholm.inputs.nixpkgs.follows = "nixpkgs"; 25 26 disko.url = "github:nix-community/disko"; 27 # disko.url = "path:/home/lass/src/disko/"; 28 disko.inputs.nixpkgs.follows = "nixpkgs"; 29 30 nixos-hardware.url = "github:nixos/nixos-hardware"; 31 32 data-mesher.url = "https://git.clan.lol/clan/data-mesher/archive/main.tar.gz"; 33 # data-mesher.url = "path:/home/lass/src/data-mesher/"; 34 data-mesher.inputs.nixpkgs.follows = "nixpkgs"; 35 36 nether.url = "github:krebs/nether"; 37 # nether.url = "git+file:/home/lass/src/nether"; 38 nether.inputs.nixpkgs.follows = "nixpkgs"; 39 nether.inputs.clan-core.follows = "clan-core"; 40 nether.inputs.data-mesher.follows = "data-mesher"; 41 42 spora.url = "github:krebs/spora"; 43 # spora.url = "git+file:/home/lass/src/spora"; 44 spora.inputs.nixpkgs.follows = "nixpkgs"; 45 46 nix-darwin.url = "github:LnL7/nix-darwin"; 47 nix-darwin.inputs.nixpkgs.follows = "nixpkgs"; 48 49 nixos-facter.url = "github:numtide/nixos-facter-modules"; 50 }; 51 52 outputs = inputs@{ self, flake-parts, nixpkgs, clan-core, ... }: 53 let 54 clan = clan-core.lib.buildClan { 55 directory = self; 56 specialArgs.self = self; 57 machines = nixpkgs.lib.mapAttrs (machineName: _: { 58 59 imports = [ 60 ./machines/${machineName}/physical.nix 61 ({ config, pkgs, ... }: { 62 clan.core.machineName = machineName; 63 clan.core.facts.secretStore = "password-store"; 64 clan.core.facts.secretUploadDirectory = nixpkgs.lib.mkDefault "/etc/secrets"; 65 clan.networking.targetHost = "root@${machineName}"; 66 krebs.secret.directory = config.clanCore.facts.secretUploadDirectory; 67 nixpkgs.overlays = [ 68 self.inputs.stockholm.overlays.default 69 (import (self.inputs.stockholm.inputs.nix-writers + "/pkgs")) # TODO get rid of that overlay 70 ]; 71 }) 72 ./2configs 73 ./3modules 74 self.inputs.stockholm.nixosModules.krebs 75 ]; 76 }) (builtins.readDir ./machines); 77 }; 78 in 79 flake-parts.lib.mkFlake { inherit inputs; } { 80 systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ]; 81 imports = [ 82 ./tools/nvim.nix 83 ./tools/astronvim/flake-module.nix 84 ./tools/zsh.nix 85 ./tools/get-spora-hosts.nix 86 ]; 87 flake.nixosConfigurations = clan.nixosConfigurations; 88 flake.clanInternals = clan.clanInternals; 89 perSystem = { config, lib, pkgs, system, ... }: { 90 packages = lib.mapAttrs (name: v_: pkgs.callPackage ./5pkgs/${name} {}) (builtins.readDir ./5pkgs); 91 devShells.default = pkgs.mkShell { 92 packages = [ 93 clan-core.packages.${system}.clan-cli 94 ]; 95 }; 96 }; 97 flake.darwinConfigurations.barnacle = inputs.nix-darwin.lib.darwinSystem { 98 modules = [ ./darwin/barnacle/config.nix ]; 99 }; 100 }; 101}