This repository has no description
0

Configure Feed

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

superconfig / flake.nix
3.9 kB 105 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 55 outputs = inputs@{ self, flake-parts, nixpkgs, clan-core, ... }: 56 let 57 clan = clan-core.lib.buildClan { 58 directory = self; 59 specialArgs.self = self; 60 machines = nixpkgs.lib.mapAttrs (machineName: _: { 61 62 imports = [ 63 ./machines/${machineName}/physical.nix 64 ({ config, pkgs, ... }: { 65 clan.core.machineName = machineName; 66 clan.core.facts.secretStore = "password-store"; 67 clan.core.facts.secretUploadDirectory = nixpkgs.lib.mkDefault "/etc/secrets"; 68 clan.networking.targetHost = "root@${machineName}"; 69 krebs.secret.directory = config.clanCore.facts.secretUploadDirectory; 70 nixpkgs.overlays = [ 71 self.inputs.stockholm.overlays.default 72 (import (self.inputs.stockholm.inputs.nix-writers + "/pkgs")) # TODO get rid of that overlay 73 ]; 74 }) 75 ./2configs 76 ./3modules 77 self.inputs.stockholm.nixosModules.krebs 78 ]; 79 }) (builtins.readDir ./machines); 80 }; 81 in 82 flake-parts.lib.mkFlake { inherit inputs; } { 83 systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ]; 84 imports = [ 85 ./tools/nvim.nix 86 ./tools/astronvim/flake-module.nix 87 ./tools/zsh.nix 88 ./tools/get-spora-hosts.nix 89 ./formatter.nix 90 ]; 91 flake.nixosConfigurations = clan.nixosConfigurations; 92 flake.clanInternals = clan.clanInternals; 93 perSystem = { config, lib, pkgs, system, ... }: { 94 packages = lib.mapAttrs (name: v_: pkgs.callPackage ./5pkgs/${name} {}) (builtins.readDir ./5pkgs); 95 devShells.default = pkgs.mkShell { 96 packages = [ 97 clan-core.packages.${system}.clan-cli 98 ]; 99 }; 100 }; 101 flake.darwinConfigurations.barnacle = inputs.nix-darwin.lib.darwinSystem { 102 modules = [ ./darwin/barnacle/config.nix ]; 103 }; 104 }; 105}