2023-06-11 23:09:59 +02:00
|
|
|
# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
|
|
|
|
nixpkgs-hashicorp.url = "sourcehut:~magic_rb/nixpkgs?ref=nixos-unstable";
|
|
|
|
nixinate.url = "github:MagicRB/nixinate";
|
|
|
|
home-manager.url = "github:nix-community/home-manager?ref=master";
|
|
|
|
nixng.url = "github:nix-community/NixNG";
|
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
|
|
nil.url = "github:oxalica/nil";
|
|
|
|
uterranix.url = "path:///home/main/uterranix";
|
|
|
|
dwarffs.url = "github:edolstra/dwarffs";
|
2023-06-12 23:25:40 +02:00
|
|
|
serokell-nix.url = "github:serokell/serokell.nix?ref=magicrb-allow-wildcards-with-no-main";
|
2023-06-11 23:09:59 +02:00
|
|
|
|
|
|
|
tuxedo-rs.url = "github:AaronErhardt/tuxedo-rs";
|
|
|
|
tuxedo-rs.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
|
|
|
tuxedo-nixos.url = "github:blitz/tuxedo-nixos";
|
|
|
|
tuxedo-nixos.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
|
|
|
emacs.url = "sourcehut:~magic_rb/emacs";
|
|
|
|
emacs.flake = false;
|
|
|
|
|
|
|
|
vtermModule.url = "github:akermu/emacs-libvterm";
|
|
|
|
vtermModule.flake = false;
|
|
|
|
|
|
|
|
secret.url = "path:///var/empty";
|
|
|
|
secret.flake = false;
|
|
|
|
|
|
|
|
ical2org.url = "git+https://git.sr.ht/~magic_rb/ical2orgpy";
|
|
|
|
ical2org.flake = false;
|
|
|
|
|
|
|
|
udp-over-tcp.url = "github:mullvad/udp-over-tcp";
|
|
|
|
udp-over-tcp.flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = inputs@{ flake-parts, self, ... }:
|
|
|
|
flake-parts.lib.mkFlake { inherit inputs; } ({ config, ... }: {
|
|
|
|
imports = [
|
2023-06-13 23:00:56 +02:00
|
|
|
modules/nixngConfigurations.nix
|
|
|
|
|
2023-06-11 23:09:59 +02:00
|
|
|
nixos/systems/omen
|
|
|
|
nixos/systems/heater
|
|
|
|
nixos/systems/toothpick
|
|
|
|
nixos/systems/liveusb
|
2023-06-12 23:25:40 +02:00
|
|
|
nixos/systems/blowhole
|
2023-06-11 23:09:59 +02:00
|
|
|
|
2023-06-13 23:06:10 +02:00
|
|
|
nixng/containers/ingress-blowhole
|
2023-06-13 23:05:35 +02:00
|
|
|
nixng/containers/matrix/mautrix-signal
|
|
|
|
nixng/containers/matrix/mautrix-discord
|
|
|
|
nixng/containers/matrix/mautrix-facebook
|
|
|
|
nixng/containers/matrix/heisenbridge
|
|
|
|
nixng/containers/matrix/synapse
|
2023-06-13 23:05:08 +02:00
|
|
|
nixng/containers/website
|
2023-06-13 23:07:02 +02:00
|
|
|
nixng/containers/home-assistant
|
2023-06-13 23:05:53 +02:00
|
|
|
nixng/containers/email/getmail
|
|
|
|
nixng/containers/email/dovecot.nix
|
|
|
|
nixng/containers/email/postfix
|
2023-06-13 23:04:43 +02:00
|
|
|
nixng/containers/ds3os
|
2023-06-13 23:06:34 +02:00
|
|
|
nixng/containers/syncthing
|
|
|
|
|
2023-06-11 23:09:59 +02:00
|
|
|
overlays/udp-over-tcp.nix
|
|
|
|
overlays/emacsclient-remote
|
|
|
|
overlays/magic-screenshot
|
|
|
|
overlays/emacs-rofi
|
|
|
|
overlays/tree-sitter-grammars.nix
|
|
|
|
overlays/emacs-master-nativecomp
|
2023-06-12 23:25:40 +02:00
|
|
|
overlays/zfs-relmount
|
|
|
|
overlays/ical2org.nix
|
2023-06-13 23:01:25 +02:00
|
|
|
overlays/mautrix-discord.nix
|
2023-06-13 23:03:01 +02:00
|
|
|
overlays/getmail6
|
2023-06-13 23:02:11 +02:00
|
|
|
overlays/maildrop
|
2023-06-13 23:03:45 +02:00
|
|
|
overlays/courier-unicode.nix
|
2023-06-13 23:04:10 +02:00
|
|
|
overlays/ds3os.nix
|
2023-06-11 23:09:59 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
flake.nixosModules = {
|
|
|
|
hashicorp = nixos/modules/hashicorp.nix;
|
2023-06-12 23:25:40 +02:00
|
|
|
hashicorp-envoy = nixos/modules/hashicorp-envoy.nix;
|
|
|
|
telegraf = nixos/modules/telegraf.nix;
|
|
|
|
grafana = nixos/modules/grafana.nix;
|
2023-06-11 23:09:59 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
flake.apps = inputs.nixpkgs.lib.genAttrs config.systems (system: {
|
|
|
|
nixinate = (inputs.nixinate.nixinate.${system} self).nixinate;
|
|
|
|
});
|
|
|
|
|
|
|
|
flake.patches = {
|
|
|
|
hashicorp-nomad.revert-change-consul-si-tokens-to-be-local = patches/0001-Revert-Change-consul-SI-tokens-to-be-local.patch;
|
|
|
|
hashicorp-nomad.add-nix-integration = patches/0001-Add-Nix-integration.patch;
|
2023-06-12 23:25:40 +02:00
|
|
|
hostapd.intel_lar-and-noscan = patches/0001-intel_lar-and-noscan.patch;
|
|
|
|
hostapd.hostapd-2_10-lar = patches/999-hostapd-2.10-lar.patch;
|
|
|
|
hostapd.hostapd-2_10-lar-2 = patches/hostapd-2.10-lar.patch;
|
2023-06-11 23:09:59 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
systems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"armv8-linux"
|
|
|
|
"riscv64-linux"
|
|
|
|
];
|
|
|
|
});
|
|
|
|
}
|