2023-01-25 17:53:02 +01:00
|
|
|
{
|
2023-04-08 17:33:59 +02:00
|
|
|
description = "patricks tolle nix config";
|
|
|
|
|
2023-01-28 02:50:14 +01:00
|
|
|
inputs = {
|
2024-08-19 15:58:24 +02:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2024-11-14 12:27:17 +01:00
|
|
|
nixp-meta.url = "git+https://forge.lel.lol/patrick/nixp-meta.git";
|
2024-11-27 14:26:48 +01:00
|
|
|
idmail = {
|
|
|
|
url = "github:oddlama/idmail/";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-08-19 15:58:24 +02:00
|
|
|
|
2023-09-05 21:00:29 +02:00
|
|
|
nixpkgs-wayland = {
|
|
|
|
url = "github:nix-community/nixpkgs-wayland";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-04-08 17:33:59 +02:00
|
|
|
|
2023-12-22 01:45:26 +01:00
|
|
|
nixos-extra-modules = {
|
|
|
|
url = "github:oddlama/nixos-extra-modules";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-01-11 15:41:03 +01:00
|
|
|
microvm = {
|
|
|
|
url = "github:astro/microvm.nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-12-22 01:45:26 +01:00
|
|
|
|
2023-05-22 14:25:00 +02:00
|
|
|
# to prevent multiple instances of systems
|
|
|
|
systems.url = "github:nix-systems/default";
|
|
|
|
|
2023-08-30 14:25:52 +02:00
|
|
|
disko = {
|
|
|
|
url = "github:nix-community/disko";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2023-08-30 16:38:30 +02:00
|
|
|
nixos-generators = {
|
|
|
|
url = "github:nix-community/nixos-generators";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2023-01-28 02:50:14 +01:00
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
# should use system nixpkgs instead of their own
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-04-08 17:33:59 +02:00
|
|
|
|
2023-01-28 02:50:14 +01:00
|
|
|
agenix = {
|
|
|
|
url = "github:ryantm/agenix";
|
2023-05-19 06:54:56 +02:00
|
|
|
inputs.home-manager.follows = "home-manager";
|
2023-01-28 02:50:14 +01:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-01-28 18:41:31 +01:00
|
|
|
|
2024-08-08 21:38:44 +02:00
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
|
|
|
2023-05-02 15:08:36 +02:00
|
|
|
# Bin zu faul des zu kopieren
|
|
|
|
agenix-rekey = {
|
|
|
|
url = "github:oddlama/agenix-rekey";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2023-05-22 14:25:00 +02:00
|
|
|
};
|
2023-02-08 21:12:32 +01:00
|
|
|
|
|
|
|
pre-commit-hooks = {
|
2024-09-13 21:23:31 +02:00
|
|
|
url = "github:cachix/git-hooks.nix";
|
2023-02-08 21:12:32 +01:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-03-06 07:47:49 +01:00
|
|
|
|
2024-03-14 23:08:42 +01:00
|
|
|
nixos-nftables-firewall = {
|
|
|
|
url = "github:thelegy/nixos-nftables-firewall";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-04-24 01:00:57 +02:00
|
|
|
templates.url = "git+https://forge.lel.lol/patrick/nix-templates.git";
|
2023-05-02 15:08:36 +02:00
|
|
|
|
2024-04-12 12:07:01 +02:00
|
|
|
nix-topology.url = "github:oddlama/nix-topology";
|
|
|
|
|
2023-05-26 17:30:37 +02:00
|
|
|
impermanence.url = "github:nix-community/impermanence";
|
2023-05-02 15:08:36 +02:00
|
|
|
|
|
|
|
nixos-hardware.url = "github:nixos/nixos-hardware";
|
|
|
|
|
2023-05-22 14:25:00 +02:00
|
|
|
devshell = {
|
|
|
|
url = "github:numtide/devshell";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-04-11 23:11:53 +02:00
|
|
|
|
2023-09-18 13:04:44 +02:00
|
|
|
nix-index-database = {
|
|
|
|
url = "github:nix-community/nix-index-database";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-09-22 20:57:08 +02:00
|
|
|
|
2023-09-21 01:43:10 +02:00
|
|
|
lanzaboote = {
|
2024-12-17 21:54:26 +01:00
|
|
|
url = "github:nix-community/lanzaboote";
|
2023-09-21 01:43:10 +02:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-09-22 20:57:08 +02:00
|
|
|
|
2024-10-10 19:11:21 +02:00
|
|
|
#stylix.url = "github:danth/stylix";
|
|
|
|
# https://github.com/danth/stylix/pull/589
|
|
|
|
stylix.url = "github:danth/stylix/ed91a20c84a80a525780dcb5ea3387dddf6cd2de";
|
2023-10-13 16:55:01 +02:00
|
|
|
|
2024-07-23 19:17:51 +02:00
|
|
|
spicetify-nix = {
|
|
|
|
url = "github:Gerg-l/spicetify-nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-10-25 00:21:15 +02:00
|
|
|
|
|
|
|
nixvim = {
|
|
|
|
url = "github:nix-community/nixvim";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-01-25 17:53:02 +01:00
|
|
|
};
|
|
|
|
|
2024-07-26 22:12:48 +02:00
|
|
|
outputs =
|
2024-10-10 19:11:21 +02:00
|
|
|
{
|
|
|
|
self,
|
|
|
|
nixos-generators,
|
|
|
|
nixos-extra-modules,
|
|
|
|
nix-topology,
|
|
|
|
...
|
|
|
|
}@inputs:
|
2024-08-08 21:38:44 +02:00
|
|
|
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
|
|
|
imports = [
|
|
|
|
./nix/agenix-rekey.nix
|
|
|
|
./nix/devshell.nix
|
2024-12-20 20:40:27 +01:00
|
|
|
./nix/globals.nix
|
2024-08-08 21:38:44 +02:00
|
|
|
./nix/hosts.nix
|
|
|
|
./nix/pkgs.nix
|
2024-11-03 21:34:38 +01:00
|
|
|
./nix/patch.nix
|
2024-08-08 21:38:44 +02:00
|
|
|
nix-topology.flakeModule
|
|
|
|
];
|
|
|
|
|
2024-10-10 19:11:21 +02:00
|
|
|
systems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"aarch64-linux"
|
|
|
|
];
|
2024-08-08 21:38:44 +02:00
|
|
|
|
2024-10-10 19:11:21 +02:00
|
|
|
perSystem =
|
|
|
|
{ pkgs, system, ... }:
|
|
|
|
{
|
|
|
|
topology.modules = [ ./nix/topology.nix ];
|
|
|
|
apps.setupHetznerStorageBoxes =
|
|
|
|
import (nixos-extra-modules + "/apps/setup-hetzner-storage-boxes.nix")
|
|
|
|
{
|
|
|
|
inherit pkgs;
|
|
|
|
nixosConfigurations = inputs.self.nodes;
|
|
|
|
decryptIdentity = builtins.head self.secretsConfig.masterIdentities;
|
|
|
|
};
|
|
|
|
packages.live-iso = nixos-generators.nixosGenerate {
|
2024-07-26 22:12:48 +02:00
|
|
|
inherit pkgs;
|
2024-10-10 19:11:21 +02:00
|
|
|
modules = [
|
|
|
|
./nix/installer-configuration.nix
|
|
|
|
./config/basic/ssh.nix
|
|
|
|
];
|
|
|
|
format =
|
|
|
|
{
|
|
|
|
x86_64-linux = "install-iso";
|
|
|
|
aarch64-linux = "sd-aarch64-installer";
|
|
|
|
}
|
|
|
|
.${system};
|
2023-09-20 14:19:13 +02:00
|
|
|
};
|
2024-09-13 21:23:31 +02:00
|
|
|
|
2024-10-10 19:11:21 +02:00
|
|
|
};
|
2024-08-08 21:38:44 +02:00
|
|
|
};
|
2023-01-25 17:53:02 +01:00
|
|
|
}
|