This repository has no description
0

Configure Feed

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

superconfig / flake.nix
2.8 kB 79 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 33 outputs = inputs@{ self, flake-parts, nixpkgs, clan-core, ... }: 34 let 35 clan = clan-core.lib.buildClan { 36 clanName = "superconfig"; 37 directory = self; 38 specialArgs.self = self; 39 machines = nixpkgs.lib.mapAttrs (machineName: _: { 40 41 imports = [ 42 ./machines/${machineName}/physical.nix 43 ({ config, pkgs, ... }: { 44 clanCore.machineName = machineName; 45 clanCore.secretStore = "password-store"; 46 clanCore.secretsUploadDirectory = "/etc/secrets"; 47 krebs.secret.directory = config.clanCore.secretsUploadDirectory; 48 nixpkgs.config.packageOverrides = import ./5pkgs pkgs; # TODO move into packages 49 nixpkgs.overlays = [ 50 self.inputs.stockholm.overlays.default 51 (import (self.inputs.stockholm.inputs.nix-writers + "/pkgs")) # TODO get rid of that overlay 52 ]; 53 }) 54 ./2configs 55 ./3modules 56 self.inputs.stockholm.nixosModules.krebs 57 ]; 58 }) (builtins.readDir ./machines); 59 }; 60 in 61 flake-parts.lib.mkFlake { inherit inputs; } { 62 systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ]; 63 imports = [ 64 ./tools/nvim.nix 65 ./tools/astronvim/flake-module.nix 66 67 ./tools/zsh.nix 68 ]; 69 flake.nixosConfigurations = clan.nixosConfigurations; 70 flake.clanInternals = clan.clanInternals; 71 perSystem = { config, pkgs, system, ... }: { 72 devShells.default = pkgs.mkShell { 73 packages = [ 74 clan-core.packages.${system}.clan-cli 75 ]; 76 }; 77 }; 78 }; 79}