teutat3s
b76b7821a7
All checks were successful
Flake checks / Check (pull_request) Successful in 19m43s
• Updated input 'deploy-rs': 'github:serokell/deploy-rs/1776009f1f3fb2b5d236b84d9815f2edee463a9b' (2024-01-10) → 'github:serokell/deploy-rs/0a0187794ac7f7a1e62cda3dabf8dc041f868790' (2024-02-16) • Updated input 'flake-parts': 'github:hercules-ci/flake-parts/b253292d9c0a5ead9bc98c4e9a26c6312e27d69f' (2024-02-01) → 'github:hercules-ci/flake-parts/f7b3c975cf067e56e7cda6cb098ebe3fb4d74ca2' (2024-03-01) • Updated input 'flake-parts/nixpkgs-lib': 'github:NixOS/nixpkgs/97b17f32362e475016f942bbdfda4a4a72a8a652?dir=lib' (2024-01-29) → 'github:NixOS/nixpkgs/1536926ef5621b09bba54035ae2bb6d806d72ac8?dir=lib' (2024-02-29) • Updated input 'nix-darwin': 'github:lnl7/nix-darwin/44f50a5ecaab72a61d5fd8e5c5717bc4bf9c25dd' (2024-02-12) → 'github:lnl7/nix-darwin/daa03606dfb5296a22e842acb02b46c1c4e9f5e7' (2024-03-04) • Updated input 'nixos-flake': 'github:srid/nixos-flake/3891b2030114f8661402991eac9be0ed59f786ae' (2024-02-09) → 'github:srid/nixos-flake/50203d68b305abff2f29e555992eb55ddeffbcd5' (2024-02-24) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/c68a9fc85c2cb3a313be6ff40511635544dde8da' (2024-02-15) → 'github:nixos/nixpkgs/617579a787259b9a6419492eaac670a5f7663917' (2024-03-04) • Updated input 'unstable': 'github:nixos/nixpkgs/a4d4fe8c5002202493e87ec8dbc91335ff55552c' (2024-02-15) → 'github:nixos/nixpkgs/b8697e57f10292a6165a20f03d2f42920dfaf973' (2024-03-03) • Removed input 'nixpkgs-head'
104 lines
3.1 KiB
Nix
104 lines
3.1 KiB
Nix
{
|
|
inputs = {
|
|
# Track channels with commits tested and built by hydra
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
|
|
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
nixpkgs-2205.url = "github:nixos/nixpkgs/nixos-22.05";
|
|
|
|
nix-darwin.url = "github:lnl7/nix-darwin/master";
|
|
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
home-manager.url = "github:nix-community/home-manager/release-23.11";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
nixos-flake.url = "github:srid/nixos-flake";
|
|
|
|
deploy-rs.url = "github:serokell/deploy-rs";
|
|
deploy-rs.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
agenix.url = "github:ryantm/agenix";
|
|
agenix.inputs.nixpkgs.follows = "nixpkgs";
|
|
agenix.inputs.darwin.follows = "nix-darwin";
|
|
agenix.inputs.home-manager.follows = "home-manager";
|
|
|
|
keycloak-theme-pub-solar.url = "git+https://git.pub.solar/pub-solar/keycloak-theme?ref=main";
|
|
keycloak-theme-pub-solar.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
triton-vmtools.url = "git+https://git.pub.solar/pub-solar/infra-vintage?ref=main&dir=vmtools";
|
|
triton-vmtools.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
element-themes.url = "github:aaronraimist/element-themes/master";
|
|
element-themes.flake = false;
|
|
};
|
|
|
|
outputs = inputs@{ self, ... }:
|
|
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
|
systems = [ "x86_64-linux" "aarch64-linux" ];
|
|
|
|
imports = [
|
|
inputs.nixos-flake.flakeModule
|
|
./public-keys
|
|
./lib
|
|
./overlays
|
|
./modules
|
|
./hosts
|
|
];
|
|
|
|
perSystem = { system, pkgs, config, ... }: {
|
|
_module.args = {
|
|
inherit inputs;
|
|
pkgs = import inputs.nixpkgs {
|
|
inherit system;
|
|
overlays = [
|
|
inputs.agenix.overlays.default
|
|
];
|
|
};
|
|
unstable = import inputs.unstable { inherit system; };
|
|
master = import inputs.master { inherit system; };
|
|
};
|
|
devShells.default = pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
deploy-rs
|
|
nixpkgs-fmt
|
|
agenix
|
|
cachix
|
|
editorconfig-checker
|
|
nodePackages.prettier
|
|
nvfetcher
|
|
shellcheck
|
|
shfmt
|
|
treefmt
|
|
nixos-generators
|
|
inputs.nixpkgs-2205.legacyPackages.${system}.terraform
|
|
jq
|
|
];
|
|
};
|
|
};
|
|
|
|
flake =
|
|
let
|
|
username = "barkeeper";
|
|
in
|
|
{
|
|
inherit username;
|
|
|
|
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) inputs.deploy-rs.lib;
|
|
|
|
deploy.nodes = self.lib.deploy.mkDeployNodes self.nixosConfigurations {
|
|
nachtigall = {
|
|
# hostname is set in hosts/nachtigall/networking.nix
|
|
sshUser = username;
|
|
};
|
|
flora-6 = {
|
|
hostname = "flora-6.pub.solar";
|
|
sshUser = username;
|
|
# Example
|
|
#sshOpts = [ "-p" "19999" ];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|