This repository has no description
0

Configure Feed

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

superconfig / flake.nix
3.4 kB 94 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 = "git+file:/home/lass/src/spora"; 37 spora.url = "github:krebs/spora"; 38 spora.inputs.nixpkgs.follows = "nixpkgs"; 39 40 nix-darwin.url = "github:LnL7/nix-darwin"; 41 nix-darwin.inputs.nixpkgs.follows = "nixpkgs"; 42 }; 43 44 outputs = inputs@{ self, flake-parts, nixpkgs, clan-core, ... }: 45 let 46 clan = clan-core.lib.buildClan { 47 clanName = "superconfig"; 48 directory = self; 49 specialArgs.self = self; 50 machines = nixpkgs.lib.mapAttrs (machineName: _: { 51 52 imports = [ 53 ./machines/${machineName}/physical.nix 54 ({ config, pkgs, ... }: { 55 clan.core.machineName = machineName; 56 clan.core.facts.secretStore = "password-store"; 57 clan.core.facts.secretUploadDirectory = nixpkgs.lib.mkDefault "/etc/secrets"; 58 clan.networking.targetHost = "root@${machineName}"; 59 krebs.secret.directory = config.clanCore.facts.secretUploadDirectory; 60 nixpkgs.overlays = [ 61 self.inputs.stockholm.overlays.default 62 (import (self.inputs.stockholm.inputs.nix-writers + "/pkgs")) # TODO get rid of that overlay 63 ]; 64 }) 65 ./2configs 66 ./3modules 67 self.inputs.stockholm.nixosModules.krebs 68 ]; 69 }) (builtins.readDir ./machines); 70 }; 71 in 72 flake-parts.lib.mkFlake { inherit inputs; } { 73 systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ]; 74 imports = [ 75 # ./tools/nvim.nix 76 ./tools/astronvim/flake-module.nix 77 ./tools/zsh.nix 78 ./tools/get-spora-hosts.nix 79 ]; 80 flake.nixosConfigurations = clan.nixosConfigurations; 81 flake.clanInternals = clan.clanInternals; 82 perSystem = { config, lib, pkgs, system, ... }: { 83 packages = lib.mapAttrs (name: v_: pkgs.callPackage ./5pkgs/${name} {}) (builtins.readDir ./5pkgs); 84 devShells.default = pkgs.mkShell { 85 packages = [ 86 clan-core.packages.${system}.clan-cli 87 ]; 88 }; 89 }; 90 flake.darwinConfigurations.barnacle = inputs.nix-darwin.lib.darwinSystem { 91 modules = [ ./darwin/barnacle/config.nix ]; 92 }; 93 }; 94}