This repository has no description
0

Configure Feed

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

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