This repository has no description
0

Configure Feed

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

superconfig / flake.nix
2.5 kB 75 lines
1{ 2 description = "lassulus superconfig"; 3 4 inputs = { 5 nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 6 # nixpkgs.url = "git+file:/home/lass/src/nixpkgs"; 7 8 nixvim.url = "github:nix-community/nixvim"; 9 nixvim.inputs.nixpkgs.follows = "nixpkgs"; 10 11 astro-nvim.url = "github:AstroNvim/AstroNvim"; 12 astro-nvim.flake = false; 13 14 clan-core.url = "git+https://git.clan.lol/clan/clan-core"; 15 # clan-core.url = "git+file:/home/lass/src/clan/clan-core"; 16 clan-core.inputs.nixpkgs.follows = "nixpkgs"; 17 clan-core.inputs.flake-parts.follows = "flake-parts"; 18 clan-core.inputs.disko.follows = "disko"; 19 20 stockholm.url = "git+https://cgit.lassul.us/stockholm"; 21 # stockholm.url = "path:/home/lass/sync/stockholm"; 22 stockholm.inputs.nixpkgs.follows = "nixpkgs"; 23 24 disko.url = "github:nix-community/disko"; 25 # disko.url = "git+file:/home/lass/src/disko/"; 26 disko.inputs.nixpkgs.follows = "nixpkgs"; 27 28 nixos-hardware.url = "github:nixos/nixos-hardware"; 29 }; 30 31 outputs = inputs@{ self, flake-parts, nixpkgs, clan-core, ... }: 32 let 33 clan = clan-core.lib.buildClan { 34 directory = self; 35 specialArgs.self = self; 36 machines = nixpkgs.lib.mapAttrs (machineName: _: { 37 38 imports = [ 39 ./machines/${machineName}/physical.nix 40 ({ pkgs, ... }: { 41 clanCore.machineName = machineName; 42 clanCore.secretStore = "password-store"; 43 krebs.secret.directory = "/etc/secrets"; 44 nixpkgs.config.packageOverrides = import ./5pkgs pkgs; # TODO move into packages 45 nixpkgs.overlays = [ 46 self.inputs.stockholm.overlays.default 47 (import (self.inputs.stockholm.inputs.nix-writers + "/pkgs")) # TODO get rid of that overlay 48 ]; 49 }) 50 ./2configs 51 ./3modules 52 self.inputs.stockholm.nixosModules.krebs 53 ]; 54 }) (builtins.readDir ./machines); 55 }; 56 in 57 flake-parts.lib.mkFlake { inherit inputs; } { 58 systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ]; 59 imports = [ 60 ./tools/nvim.nix 61 ./tools/astronvim/flake-module.nix 62 63 ./tools/zsh.nix 64 ]; 65 flake.nixosConfigurations = clan.nixosConfigurations; 66 flake.clanInternals = clan.clanInternals; 67 perSystem = { config, pkgs, system, ... }: { 68 devShells.default = pkgs.mkShell { 69 packages = [ 70 clan-core.packages.${system}.clan-cli 71 ]; 72 }; 73 }; 74 }; 75}