forked from pub-solar/infra
teutat3s
2ee4bc5682
https://nixos.org/manual/nixos/stable/release-notes#sec-release-23.11-highlights Track nixos-23.11 branch, remove unstable overlays This will update our services to the following versions: nextcloud: 27.1.3 -> 27.1.4 forgejo: 1.20.5-0 -> 1.20.6-0 keycloak: 21.1.2 -> 22.0.5 matrix-synapse: 1.95.1 -> 1.97.0 Internal: postgresql: 14.9 -> 15.5 Flake inputs diff: • Updated input 'home-manager': 'github:nix-community/home-manager/28535c3a34d79071f2ccb68671971ce0c0984d7e' (2023-11-19) → 'github:nix-community/home-manager/aeb2232d7a32530d3448318790534d196bf9427a' (2023-11-24) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/d2332963662edffacfddfad59ff4f709dde80ffe' (2023-11-30) → 'github:nixos/nixpkgs/5de0b32be6e85dc1a9404c75131316e4ffbc634c' (2023-12-01)
102 lines
3.1 KiB
Nix
102 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
|
|
];
|
|
};
|
|
};
|
|
|
|
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" ];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|