matt1432
bc6b943b56
All checks were successful
Discord / discord commits (push) Has been skipped
Flake Inputs: • Updated input 'custom-sidebar-src': 'github:elchininet/custom-sidebar' (2025-01-18) rev: f658990328f47530097ab0242a5575cbba92b9ea → 'github:elchininet/custom-sidebar' (2025-01-19) rev: f40e85e4b59b47900b47d9054acfbbce80b60550 • Updated input 'home-manager': 'github:nix-community/home-manager' (2025-01-18) rev: 97d7946b5e107dd03cc82f21165251d4e0159655 → 'github:nix-community/home-manager' (2025-01-19) rev: f8ef4541bb8a54a8b52f19b52912119e689529b3 • Updated input 'hyprgrass': 'github:horriblename/hyprgrass' (2025-01-18) rev: ea3a6079a7e34235ee3df4b600ee11e48b0e7f4d → 'github:horriblename/hyprgrass' (2025-01-19) rev: 563725ad0fd86349616b5f107230a13c12194d18 • Updated input 'hyprland': 'github:hyprwm/Hyprland' (2025-01-18) rev: f56153a9c1b0a00fac0932a95e0cfa5a4f6c681f → 'github:hyprwm/Hyprland' (2025-01-19) rev: 407453166ce2a52433c7b0b4ee92a41e47ef8f6d • Updated input 'hyprland/hyprland-protocols': 'github:hyprwm/hyprland-protocols' (2025-01-01) rev: e3b6af97ddcfaafbda8e2828c719a5af84f662cb → 'github:hyprwm/hyprland-protocols' (2025-01-17) rev: 455c055883d9639d4fcbfcedb4c6d12ce313791e • Updated input 'jovian': 'github:Jovian-Experiments/Jovian-NixOS' (2025-01-17) rev: 27a0ddac1a14e10ba98530f59db728951495f2ce → 'github:Jovian-Experiments/Jovian-NixOS' (2025-01-19) rev: e26d456e9d9a33f66e1985ab4c06e1940352ef40 • Updated input 'nixpkgs': 'github:NixOS/nixpkgs' (2025-01-18) rev: b681ff2c9c9163f24ca705d948bb0cee1b3e09f9 → 'github:NixOS/nixpkgs' (2025-01-19) rev: 50165c4f7eb48ce82bd063e1fb8047a0f515f8ce • Updated input 'nixpkgs-wayland': 'github:nix-community/nixpkgs-wayland' (2025-01-15) rev: 8f3a889a1bb60d58f42fc671d8a0b73496ede51c → 'github:nix-community/nixpkgs-wayland' (2025-01-19) rev: 47260b4b1459fee2a27a630adf5be5caf0495ac2 • Updated input 'tuya-local-src': 'github:make-all/tuya-local' (2025-01-19) rev: 15ac106e35d075deb7688b9687d637db9fcb1203 → 'github:make-all/tuya-local' (2025-01-19) rev: 4d4cd82b3e6dcb32201b0441f4e043605d76b39b Docker Images: • 21hsmw/flaresolverr nodriver: sha256:21ade52a9dc85c1bc1592ccc994e41f3365a4603b3ca4a11328583aa6e99ace1 → sha256:3d99be35f845750adba3b9aa23844b7f585eeac6b1b45157bf14aaa8f7d16e20 • ghcr.io/linuxserver/radarr latest: sha256:dce7e81d08da67cf44437c7213d19faeef1323aa839712fbb53d1253ef94f93f → sha256:7a25facfb3e08c9f57cee1ffd995141de80587be1b038bba5fa8611c2355225a
156 lines
3.5 KiB
Nix
156 lines
3.5 KiB
Nix
{
|
|
inputs = let
|
|
inherit (import ./inputs) mkDep mkInput extraInputs;
|
|
|
|
mainInputs = {
|
|
systems = mkInput {
|
|
owner = "nix-systems";
|
|
repo = "default-linux";
|
|
};
|
|
|
|
nixpkgs = mkInput {
|
|
owner = "NixOS";
|
|
repo = "nixpkgs";
|
|
ref = "nixos-unstable-small";
|
|
};
|
|
|
|
home-manager = mkDep {
|
|
owner = "nix-community";
|
|
repo = "home-manager";
|
|
};
|
|
|
|
nix-on-droid = mkDep {
|
|
owner = "nix-community";
|
|
repo = "nix-on-droid";
|
|
|
|
inputs.home-manager.follows = "home-manager";
|
|
};
|
|
|
|
sops-nix = mkDep {
|
|
owner = "Mic92";
|
|
repo = "sops-nix";
|
|
};
|
|
|
|
secrets = mkDep {
|
|
type = "git";
|
|
url = "ssh://git@git.nelim.org/matt1432/nixos-secrets";
|
|
|
|
inputs.sops-nix.follows = "sops-nix";
|
|
};
|
|
};
|
|
in
|
|
mainInputs // extraInputs;
|
|
|
|
outputs = inputs @ {
|
|
self,
|
|
systems,
|
|
nixpkgs,
|
|
secrets,
|
|
...
|
|
}: let
|
|
inherit (self.lib) mkVersion mkNixOS mkNixOnDroid mkPkgs;
|
|
|
|
perSystem = attrs:
|
|
nixpkgs.lib.genAttrs (import systems) (system:
|
|
attrs (mkPkgs {inherit system nixpkgs;}));
|
|
in {
|
|
lib = import ./lib {inherit inputs perSystem;};
|
|
|
|
nixOnDroidConfigurations.default =
|
|
mkNixOnDroid [./configurations/android];
|
|
|
|
nixosConfigurations = {
|
|
# Desktops
|
|
wim = mkNixOS {
|
|
extraModules = [
|
|
./configurations/wim
|
|
secrets.nixosModules.default
|
|
];
|
|
};
|
|
binto = mkNixOS {
|
|
cudaSupport = true;
|
|
extraModules = [./configurations/binto];
|
|
};
|
|
|
|
bbsteamie = mkNixOS {
|
|
mainUser = "mariah";
|
|
extraModules = [./configurations/bbsteamie];
|
|
};
|
|
|
|
# NAS
|
|
nos = mkNixOS {
|
|
cudaSupport = true;
|
|
extraModules = [
|
|
./configurations/nos
|
|
secrets.nixosModules.nos
|
|
];
|
|
};
|
|
|
|
# Build / test server
|
|
servivi = mkNixOS {
|
|
extraModules = [
|
|
./configurations/servivi
|
|
secrets.nixosModules.servivi
|
|
];
|
|
};
|
|
|
|
# Home-assistant
|
|
homie = mkNixOS {
|
|
extraModules = [
|
|
./configurations/homie
|
|
secrets.nixosModules.homie
|
|
];
|
|
};
|
|
|
|
# Cluster
|
|
thingone = mkNixOS {
|
|
extraModules = [
|
|
(import ./configurations/cluster "thingone")
|
|
secrets.nixosModules.thingy
|
|
];
|
|
};
|
|
thingtwo = mkNixOS {
|
|
extraModules = [
|
|
(import ./configurations/cluster "thingtwo")
|
|
secrets.nixosModules.thingy
|
|
];
|
|
};
|
|
|
|
live-image = mkNixOS {
|
|
mainUser = "nixos";
|
|
extraModules = [./configurations/live-image];
|
|
};
|
|
};
|
|
|
|
# For nix-fast-build. I use a custom output to alleviate eval time of this flake. ie. when doing nix flake show
|
|
nixFastChecks = import ./nixFastChecks {inherit perSystem self;};
|
|
|
|
homeManagerModules = import ./homeManagerModules self;
|
|
|
|
nixosModules = import ./modules self;
|
|
|
|
overlays = import ./overlays self;
|
|
|
|
apps =
|
|
perSystem (pkgs:
|
|
import ./apps {inherit inputs pkgs;});
|
|
|
|
appsPackages =
|
|
perSystem (pkgs:
|
|
import ./apps/packages.nix {inherit pkgs self;});
|
|
|
|
devShells =
|
|
perSystem (pkgs:
|
|
import ./devShells {inherit pkgs self;});
|
|
|
|
packages =
|
|
perSystem (pkgs:
|
|
import ./packages {inherit inputs mkVersion pkgs;});
|
|
|
|
scopedPackages =
|
|
perSystem (pkgs:
|
|
import ./scopedPackages {inherit inputs mkVersion pkgs;});
|
|
|
|
formatter = perSystem (pkgs: pkgs.alejandra);
|
|
};
|
|
}
|