2019-12-03 05:18:30 +00:00
|
|
|
{
|
2023-09-12 20:07:05 +00:00
|
|
|
description = "b12f hosts";
|
2019-12-05 05:36:36 +00:00
|
|
|
|
2021-11-30 00:38:56 +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-10-03 11:08:10 +00:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
|
|
|
|
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
2022-11-20 22:28:23 +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-09-12 20:07:05 +00:00
|
|
|
nix-darwin.url = "github:lnl7/nix-darwin/master";
|
2023-10-03 11:08:10 +00:00
|
|
|
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
|
2023-09-12 20:07:05 +00:00
|
|
|
home-manager.url = "github:nix-community/home-manager/release-23.05";
|
2023-10-03 11:08:10 +00:00
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
2022-11-20 22:28:23 +00:00
|
|
|
|
2023-09-12 20:07:05 +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-09-29 20:01:03 +00:00
|
|
|
deploy-rs.url = "github:serokell/deploy-rs";
|
2023-10-03 11:08:10 +00:00
|
|
|
deploy-rs.inputs.nixpkgs.follows = "nixpkgs";
|
2023-09-29 20:01:03 +00:00
|
|
|
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-10-03 11:08:10 +00:00
|
|
|
agenix.inputs.nixpkgs.follows = "nixpkgs";
|
2023-09-29 20:01:03 +00:00
|
|
|
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";
|
2022-11-20 22:28:23 +00:00
|
|
|
|
2023-07-02 10:48:54 +00:00
|
|
|
keycloak-theme-pub-solar.url = "git+https://git.pub.solar/pub-solar/keycloak-theme?ref=main";
|
2023-10-03 11:08:10 +00:00
|
|
|
keycloak-theme-pub-solar.inputs.nixpkgs.follows = "nixpkgs";
|
2023-07-02 10:48:54 +00:00
|
|
|
|
2023-01-28 21:34:24 +00:00
|
|
|
master.url = "github:nixos/nixpkgs/master";
|
2023-07-03 11:20:13 +00:00
|
|
|
fix-yubikey-agent.url = "github:pub-solar/nixpkgs/fix/use-latest-unstable-yubikey-agent";
|
|
|
|
fix-atomic-container-restarts.url = "github:pub-solar/nixpkgs/fix/atomic-container-restarts";
|
2023-02-21 11:37:18 +00:00
|
|
|
scan2paperless.url = "git+https://git.pub.solar/b12f/scan2paperless.git";
|
2023-09-11 21:51:13 +00:00
|
|
|
musnix.url = "github:musnix/musnix";
|
|
|
|
|
|
|
|
adblock-unbound.url = "github:MayNiklas/nixos-adblock-unbound";
|
2023-10-03 11:08:10 +00:00
|
|
|
adblock-unbound.inputs.nixpkgs.follows = "nixpkgs";
|
2022-11-20 22:28:23 +00:00
|
|
|
};
|
|
|
|
|
2023-09-12 20:07:05 +00:00
|
|
|
outputs = inputs@{ self, ... }:
|
|
|
|
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
|
|
|
systems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"aarch64-linux"
|
|
|
|
"x86_64-darwin"
|
|
|
|
"aarch64-darwin"
|
|
|
|
];
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
inputs.nixos-flake.flakeModule
|
2023-10-03 11:08:10 +00:00
|
|
|
./modules
|
|
|
|
./hosts
|
|
|
|
./users
|
2023-09-12 20:07:05 +00:00
|
|
|
];
|
|
|
|
|
2023-10-03 11:08:10 +00:00
|
|
|
perSystem = args@{ 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; };
|
|
|
|
fix-yubikey-agent = import inputs.fix-yubikey-agent { inherit system; };
|
2023-09-14 09:01:28 +00:00
|
|
|
};
|
2023-09-29 20:01:03 +00:00
|
|
|
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
buildInputs = [
|
|
|
|
pkgs.nixpkgs-fmt
|
2023-10-03 11:08:10 +00:00
|
|
|
pkgs.agenix
|
2023-09-29 20:01:03 +00:00
|
|
|
pkgs.ssh-to-age
|
|
|
|
];
|
|
|
|
};
|
2023-09-14 09:01:28 +00:00
|
|
|
};
|
2023-09-12 20:07:05 +00:00
|
|
|
|
|
|
|
flake = {
|
|
|
|
nixosModules = rec {
|
2023-09-29 20:01:03 +00:00
|
|
|
base.imports = [
|
|
|
|
self.nixosModules.home-manager
|
|
|
|
inputs.agenix.nixosModules.default
|
|
|
|
inputs.musnix.nixosModules.musnix
|
2023-09-12 20:07:05 +00:00
|
|
|
|
2023-10-03 11:08:10 +00:00
|
|
|
({
|
|
|
|
flake,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
unstable,
|
|
|
|
master,
|
|
|
|
fix-yubikey-agent,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
nixpkgs.overlays = (import ./overlays) ++ [
|
|
|
|
(prev: next: {
|
|
|
|
scan2paperless = inputs.scan2paperless.legacyPackages.${prev.system}.scan2paperless;
|
|
|
|
nixd = inputs.unstable.legacyPackages.${prev.system}.nixd;
|
|
|
|
yubikey-agent = inputs.fix-yubikey-agent.legacyPackages.${prev.system}.yubikey-agent;
|
|
|
|
|
|
|
|
factorio-headless = inputs.master.legacyPackages.${prev.system}.factorio-headless;
|
|
|
|
paperless-ngx = inputs.master.legacyPackages.${prev.system}.paperless-ngx;
|
|
|
|
waybar = inputs.master.legacyPackages.${prev.system}.waybar;
|
|
|
|
element-desktop = inputs.master.legacyPackages.${prev.system}.element-desktop;
|
|
|
|
|
|
|
|
adlist = inputs.adblock-unbound.packages.${prev.system};
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nix.nixPath = [
|
|
|
|
"nixpkgs=${inputs.nixpkgs}"
|
|
|
|
"nixos-config=${./lib/compat/nixos}"
|
|
|
|
"home-manager=${inputs.home-manager}"
|
|
|
|
];
|
2023-05-13 16:43:12 +00:00
|
|
|
})
|
2021-07-16 21:01:25 +00:00
|
|
|
|
2023-10-03 11:08:10 +00:00
|
|
|
self.nixosModules.arduino
|
|
|
|
self.nixosModules.audio
|
|
|
|
self.nixosModules.ci-runner
|
|
|
|
self.nixosModules.core
|
|
|
|
self.nixosModules.crypto
|
|
|
|
self.nixosModules.devops
|
|
|
|
self.nixosModules.docker
|
|
|
|
self.nixosModules.docker-ci-runner
|
|
|
|
self.nixosModules.email
|
|
|
|
self.nixosModules.gaming
|
|
|
|
self.nixosModules.graphical
|
|
|
|
self.nixosModules.mobile
|
|
|
|
self.nixosModules.nix
|
|
|
|
self.nixosModules.nextcloud
|
|
|
|
self.nixosModules.office
|
|
|
|
self.nixosModules.paperless
|
|
|
|
self.nixosModules.paranoia
|
|
|
|
self.nixosModules.printing
|
|
|
|
self.nixosModules.social
|
|
|
|
self.nixosModules.sway
|
|
|
|
self.nixosModules.terminal-life
|
|
|
|
self.nixosModules.uhk
|
|
|
|
self.nixosModules.user
|
|
|
|
self.nixosModules.virtualisation
|
|
|
|
|
|
|
|
self.nixosModules.root
|
2022-01-31 16:52:56 +00:00
|
|
|
];
|
2022-11-20 22:28:23 +00:00
|
|
|
};
|
|
|
|
};
|
2022-08-13 20:35:43 +00:00
|
|
|
};
|
2019-12-03 05:18:30 +00:00
|
|
|
}
|