2019-12-03 05:18:30 +00:00
|
|
|
{
|
2023-11-11 00:06:12 +00:00
|
|
|
description = "pub.solar NixOS flake";
|
2019-12-05 05:36:36 +00:00
|
|
|
|
2022-02-02 03:15:24 +00:00
|
|
|
nixConfig.extra-experimental-features = "nix-command flakes";
|
2021-07-16 21:09:26 +00:00
|
|
|
|
2020-08-02 04:08:41 +00:00
|
|
|
inputs = {
|
2022-04-09 14:40:03 +00:00
|
|
|
# Track channels with commits tested and built by hydra
|
2023-11-11 00:06:12 +00:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
|
|
|
|
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
2023-09-13 10:38:12 +00:00
|
|
|
|
2022-11-07 10:24:59 +00:00
|
|
|
flake-compat.url = "github:edolstra/flake-compat";
|
|
|
|
flake-compat.flake = false;
|
2022-11-20 22:28:23 +00:00
|
|
|
|
2023-11-11 00:06:12 +00:00
|
|
|
nix-darwin.url = "github:lnl7/nix-darwin/master";
|
|
|
|
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
|
2022-11-20 22:28:23 +00:00
|
|
|
|
2023-11-11 00:06:12 +00:00
|
|
|
home-manager.url = "github:nix-community/home-manager/release-23.05";
|
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
2022-11-20 22:28:23 +00:00
|
|
|
|
2023-11-11 00:06:12 +00:00
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
|
|
nixos-flake.url = "github:srid/nixos-flake";
|
2022-11-20 22:28:23 +00:00
|
|
|
|
2023-11-11 00:06:12 +00:00
|
|
|
deploy-rs.url = "github:serokell/deploy-rs";
|
|
|
|
deploy-rs.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
deploy-rs.inputs.flake-compat.follows = "flake-compat";
|
2022-11-20 22:28:23 +00:00
|
|
|
|
2021-05-13 17:35:23 +00:00
|
|
|
agenix.url = "github:ryantm/agenix";
|
2023-11-11 00:06:12 +00:00
|
|
|
agenix.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
agenix.inputs.darwin.follows = "nix-darwin";
|
2022-11-20 22:28:23 +00:00
|
|
|
|
2021-03-02 03:30:47 +00:00
|
|
|
nixos-hardware.url = "github:nixos/nixos-hardware";
|
2023-11-11 00:06:12 +00:00
|
|
|
master.url = "github:nixos/nixpkgs/master";
|
2022-08-21 21:21:15 +00:00
|
|
|
|
|
|
|
# hensoko additions
|
|
|
|
musnix.url = "github:musnix/musnix";
|
2023-11-11 00:06:12 +00:00
|
|
|
musnix.inputs.nixpkgs.follows = "nixpkgs";
|
2022-08-21 22:53:04 +00:00
|
|
|
|
|
|
|
nixpkgs-hensoko.url = "git+https://git.b12f.io/hensoko/nixpkgs";
|
2023-02-25 13:45:21 +00:00
|
|
|
|
|
|
|
factorio-pr.url = "github:werner291/nixpkgs/master";
|
2022-11-20 22:28:23 +00:00
|
|
|
};
|
|
|
|
|
2023-11-11 00:06:12 +00:00
|
|
|
outputs = inputs@{ self, ... }:
|
|
|
|
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
|
|
|
systems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"aarch64-linux"
|
|
|
|
"x86_64-darwin"
|
|
|
|
"aarch64-darwin"
|
|
|
|
];
|
2021-07-15 22:15:18 +00:00
|
|
|
|
2023-11-11 00:06:12 +00:00
|
|
|
imports = [
|
|
|
|
inputs.nixos-flake.flakeModule
|
|
|
|
./lib
|
|
|
|
./modules
|
|
|
|
./hosts
|
|
|
|
./users
|
|
|
|
];
|
2019-12-14 04:39:25 +00:00
|
|
|
|
2023-11-11 00:06:12 +00:00
|
|
|
perSystem = args@{ system, pkgs, config, ... }: {
|
|
|
|
_module.args = {
|
|
|
|
inherit inputs;
|
|
|
|
pkgs = import inputs.nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = [
|
|
|
|
inputs.agenix.overlays.default
|
|
|
|
];
|
|
|
|
};
|
2021-07-16 21:01:25 +00:00
|
|
|
|
2023-11-11 00:06:12 +00:00
|
|
|
unstable = import inputs.unstable { inherit system; };
|
|
|
|
master = import inputs.master { inherit system; };
|
2023-05-13 16:43:12 +00:00
|
|
|
};
|
2022-11-20 22:28:23 +00:00
|
|
|
|
2023-11-11 00:06:12 +00:00
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
deploy-rs
|
|
|
|
nixpkgs-fmt
|
|
|
|
agenix
|
|
|
|
cachix
|
|
|
|
editorconfig-checker
|
|
|
|
nix
|
|
|
|
nodePackages.prettier
|
|
|
|
nvfetcher
|
|
|
|
shellcheck
|
|
|
|
shfmt
|
|
|
|
treefmt
|
|
|
|
nixos-generators
|
2022-01-31 16:52:56 +00:00
|
|
|
];
|
2021-07-16 21:01:25 +00:00
|
|
|
};
|
2023-11-11 00:06:12 +00:00
|
|
|
};
|
2021-07-16 21:01:25 +00:00
|
|
|
|
2023-11-11 00:06:12 +00:00
|
|
|
flake = {
|
|
|
|
deploy.nodes = self.pub-solar-os.lib.deploy.mkDeployNodes self.nixosConfigurations {
|
2022-08-21 22:53:04 +00:00
|
|
|
companion = {
|
2023-11-11 00:06:12 +00:00
|
|
|
sshUser = "iot";
|
2023-02-25 13:45:21 +00:00
|
|
|
};
|
|
|
|
cox = {
|
2023-11-11 00:06:12 +00:00
|
|
|
sshUser = "iot";
|
2023-02-25 13:45:21 +00:00
|
|
|
};
|
|
|
|
falcone = {
|
2023-11-11 00:06:12 +00:00
|
|
|
sshUser = "iot";
|
2023-02-25 13:45:21 +00:00
|
|
|
};
|
|
|
|
giggles = {
|
2023-11-11 00:06:12 +00:00
|
|
|
sshUser = "iot";
|
2023-02-25 13:45:21 +00:00
|
|
|
};
|
2022-08-21 22:53:04 +00:00
|
|
|
|
2023-02-25 13:45:21 +00:00
|
|
|
norman = {};
|
2022-08-21 22:53:04 +00:00
|
|
|
|
2023-02-25 13:45:21 +00:00
|
|
|
harrison = {
|
2023-11-11 00:06:12 +00:00
|
|
|
sshUser = "iot";
|
2023-02-25 13:45:21 +00:00
|
|
|
};
|
2022-08-21 22:53:04 +00:00
|
|
|
|
2023-02-25 13:45:21 +00:00
|
|
|
surfplace = {
|
2023-11-11 00:06:12 +00:00
|
|
|
sshUser = "iot";
|
2022-08-21 22:53:04 +00:00
|
|
|
};
|
|
|
|
};
|
2023-02-25 13:45:21 +00:00
|
|
|
};
|
2022-08-13 20:35:43 +00:00
|
|
|
};
|
2019-12-03 05:18:30 +00:00
|
|
|
}
|