This repository has no description
0

Configure Feed

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

superconfig / flake.nix
4.4 kB 134 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 treefmt-nix.url = "github:numtide/treefmt-nix"; 52 treefmt-nix.inputs.nixpkgs.follows = "nixpkgs"; 53 54 nixos-generators.url = "github:nix-community/nixos-generators"; 55 nixos-generators.inputs.nixpkgs.follows = "nixpkgs"; 56 }; 57 58 outputs = 59 inputs@{ 60 self, 61 flake-parts, 62 nixpkgs, 63 clan-core, 64 ... 65 }: 66 let 67 clan = clan-core.lib.buildClan { 68 directory = self; 69 specialArgs.self = self; 70 machines = nixpkgs.lib.mapAttrs (machineName: _: { 71 72 imports = [ 73 ./machines/${machineName}/physical.nix 74 ( 75 { config, ... }: 76 { 77 clan.core.machineName = machineName; 78 clan.core.facts.secretStore = "password-store"; 79 clan.core.facts.secretUploadDirectory = nixpkgs.lib.mkDefault "/etc/secrets"; 80 clan.networking.targetHost = "root@${machineName}"; 81 krebs.secret.directory = config.clanCore.facts.secretUploadDirectory; 82 nixpkgs.overlays = [ 83 self.inputs.stockholm.overlays.default 84 (import (self.inputs.stockholm.inputs.nix-writers + "/pkgs")) # TODO get rid of that overlay 85 ]; 86 } 87 ) 88 ./2configs 89 ./3modules 90 self.inputs.stockholm.nixosModules.krebs 91 ]; 92 }) (builtins.readDir ./machines); 93 }; 94 in 95 flake-parts.lib.mkFlake { inherit inputs; } { 96 systems = [ 97 "x86_64-linux" 98 "aarch64-linux" 99 "aarch64-darwin" 100 "x86_64-darwin" 101 ]; 102 imports = [ 103 ./tools/nvim.nix 104 ./tools/astronvim/flake-module.nix 105 ./tools/zsh.nix 106 ./tools/get-spora-hosts.nix 107 ./formatter.nix 108 ]; 109 flake.nixosConfigurations = clan.nixosConfigurations; 110 flake.clanInternals = clan.clanInternals; 111 perSystem = 112 { 113 lib, 114 pkgs, 115 system, 116 config, 117 ... 118 }: 119 { 120 packages = lib.mapAttrs (name: _v_: pkgs.callPackage ./5pkgs/${name} { }) ( 121 builtins.readDir ./5pkgs 122 ); 123 devShells.default = pkgs.mkShell { 124 packages = [ 125 clan-core.packages.${system}.clan-cli 126 config.treefmt.build.wrapper 127 ]; 128 }; 129 }; 130 flake.darwinConfigurations.barnacle = inputs.nix-darwin.lib.darwinSystem { 131 modules = [ ./darwin/barnacle/config.nix ]; 132 }; 133 }; 134}