2022-04-29 14:23:10 -04:00
|
|
|
{
|
|
|
|
description = "walkah's little city state";
|
|
|
|
|
|
|
|
inputs = {
|
2022-09-23 15:40:36 -04:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
2024-10-01 13:34:13 -04:00
|
|
|
raspberry-pi-nix.url = "github:nix-community/raspberry-pi-nix";
|
2022-04-29 14:23:10 -04:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2023-06-23 18:16:24 -04:00
|
|
|
|
|
|
|
deploy-rs = {
|
|
|
|
url = "github:serokell/deploy-rs";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2022-05-03 21:00:37 -04:00
|
|
|
|
2022-05-31 10:38:16 -04:00
|
|
|
darwin = {
|
2022-10-23 11:02:55 -04:00
|
|
|
url = "github:lnl7/nix-darwin/master";
|
2022-05-31 10:38:16 -04:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-09-14 18:12:01 -04:00
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2022-05-08 14:06:24 -04:00
|
|
|
flake-compat = {
|
|
|
|
url = "github:edolstra/flake-compat";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
2023-07-14 18:53:25 -04:00
|
|
|
nixos-generators = {
|
|
|
|
url = "github:nix-community/nixos-generators";
|
2022-05-09 17:09:32 -04:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2023-07-14 18:53:25 -04:00
|
|
|
pre-commit-hooks = {
|
|
|
|
url = "github:cachix/pre-commit-hooks.nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
sops-nix = {
|
|
|
|
url = "github:Mic92/sops-nix";
|
2023-02-09 22:38:20 -05:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2022-04-29 14:23:10 -04:00
|
|
|
};
|
|
|
|
|
2024-09-14 18:12:01 -04:00
|
|
|
outputs = { self, nixpkgs, flake-utils, deploy-rs, pre-commit-hooks, ... }@inputs:
|
2022-04-29 14:23:10 -04:00
|
|
|
flake-utils.lib.eachDefaultSystem
|
2023-07-27 15:51:15 -04:00
|
|
|
(system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = [ self.overlays.default ];
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
2024-01-26 17:00:00 -05:00
|
|
|
checks = import ./nix/checks.nix { inherit self pkgs deploy-rs system pre-commit-hooks; };
|
2023-07-27 15:51:15 -04:00
|
|
|
devShells = import ./nix/shells.nix { inherit self pkgs system; };
|
|
|
|
formatter = pkgs.nixpkgs-fmt;
|
|
|
|
})
|
2023-07-27 15:22:16 -04:00
|
|
|
// {
|
|
|
|
hosts = import ./nix/hosts.nix;
|
2024-09-14 18:12:01 -04:00
|
|
|
overlays.default = nixpkgs.lib.composeManyExtensions [ ];
|
2023-06-20 23:35:34 -04:00
|
|
|
|
2023-07-27 15:22:16 -04:00
|
|
|
darwinConfigurations = import ./nix/darwin.nix inputs;
|
|
|
|
nixosConfigurations = import ./nix/nixos.nix inputs;
|
|
|
|
deploy = import ./nix/deploy.nix inputs;
|
2024-09-15 20:35:46 -04:00
|
|
|
|
|
|
|
nixConfig = {
|
|
|
|
extra-substituters = [
|
|
|
|
"https://walkah.cachix.org"
|
|
|
|
"https://nix-community.cachix.org"
|
|
|
|
];
|
|
|
|
extra-trusted-public-keys = [
|
|
|
|
"walkah.cachix.org-1:D8cO78JoJC6UPV1ZMgd1V5znpk3jNUERGIeAKN15hxo="
|
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
|
|
];
|
|
|
|
};
|
2022-04-29 14:23:10 -04:00
|
|
|
};
|
|
|
|
}
|