matt1432
6f8940cfd0
All checks were successful
Discord / discord commits (push) Has been skipped
Flake Inputs: • Updated input 'discord-overlay': 'github:matt1432/discord-nightly-overlay/0e14fde' (2024-09-05) → 'github:matt1432/discord-nightly-overlay/925a600' (2024-09-07) • Updated input 'gpu-screen-recorder-src': 'git+https://repo.dec05eba.com/gpu-screen-recorder?ref=refs/heads/master&rev=98f75b2' (2024-09-03) → 'git+https://repo.dec05eba.com/gpu-screen-recorder?ref=refs/heads/master&rev=3446f86' (2024-09-06) • Updated input 'gtk-theme-src': 'github:dracula/gtk/e59324a' (2024-08-31) → 'github:dracula/gtk/19e0dcb' (2024-09-07) • Updated input 'home-manager': 'github:nix-community/home-manager/471e3eb' (2024-09-01) → 'github:nix-community/home-manager/aaebdea' (2024-09-07) • Updated input 'hyprland': 'git+https://github.com/hyprwm/Hyprland?ref=refs/heads/main&rev=027140b&submodules=1' (2024-09-04) → 'git+https://github.com/hyprwm/Hyprland?ref=refs/heads/main&rev=312411f&submodules=1' (2024-09-07) • Updated input 'jellyfin-flake': 'github:matt1432/nixos-jellyfin/949818a' (2024-08-30) → 'github:matt1432/nixos-jellyfin/03d120f' (2024-09-08) • Updated input 'jovian': 'github:Jovian-Experiments/Jovian-NixOS/b13488a' (2024-09-01) → 'github:Jovian-Experiments/Jovian-NixOS/2d050e6' (2024-09-06) • Updated input 'nh': 'github:viperML/nh/5dd64eb' (2024-09-02) → 'github:viperML/nh/7650b37' (2024-09-07) • Updated input 'nix-gaming': 'github:fufexan/nix-gaming/76446e8' (2024-09-01) → 'github:fufexan/nix-gaming/ec0bcac' (2024-09-08) • Updated input 'nix-gaming/umu': 'git+https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix&ref=refs/heads/main&rev=dd3105e&submodules=1' (2024-08-20) → 'git+https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix&ref=refs/heads/main&rev=2d3c948&submodules=1' (2024-09-04) • Updated input 'nix-on-droid': 'github:nix-community/nix-on-droid/248cc08' (2024-07-22) → 'github:nix-community/nix-on-droid/5d88ff2' (2024-09-06) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/ad416d0' (2024-09-04) → 'github:NixOS/nixpkgs/574d1ea' (2024-09-06) • Updated input 'nixpkgs-wayland': 'github:nix-community/nixpkgs-wayland/52b72b1' (2024-09-02) → 'github:nix-community/nixpkgs-wayland/0483138' (2024-09-07) Docker Images: • freshrss/freshrss latest: sha256:7b1d8f14c3905469c4f20488e78082dc6ca8a50b61798cc38f669a63f897f6b5 → sha256:2edf78120d06de267864a9d4affbd8158f23e668cf569e273f7f6e755c73b0a5 • postgres 14: sha256:148b383bf37b569f1b44d72b3558979540e9f5f951789b0b0c6e827decbeef09 → sha256:1bd26d434ac67d210a42cf19fa0812efd22472e0494f9c6ffa654509f427608a • rssbridge/rss-bridge latest: sha256:ed96ae6fb5be49a7c14fc35de039d53f2b42d99034c49c4e28fe0810e3886445 → sha256:a869f33f22d10ce04b5efa40efe273f3454dee8113508f64bca18a85b1eff724 • nginx latest: sha256:1a2bb47140dd616774ffe05ea1ea8762e1f1f08e20a35632e1e6539376d44d60 → sha256:04ba374043ccd2fc5c593885c0eacddebabd5ca375f9323666f28dfd5a9710e3 • onlyoffice/documentserver latest: sha256:a69b1c43c6641e45789a6ebb7e84359ada749c8e2d4e83916d4e85945238f418 → sha256:b9e3c35eab182d3de822a53b109b0f27070f6eacea3b1388b9c50d1182f638f2 • postgres 15-alpine: sha256:fa484d844b88ac34811daf3da66af1fd17e34b0e1ff5d1b6f904269c85890dc0 → sha256:362404e4f27e4f477c6cd4a76c65f06d387b7fda2caf216e656b17bf00f9908f • ghcr.io/linuxserver/sonarr latest: sha256:879f5f35b05566f71296bad0f3704709103568a6b4f42f5959543f5322728723 → sha256:138998077a802c18b76c26636301fcd5517b7bfaf75db025d457199176078a12 • ghcr.io/immich-app/immich-machine-learning v1.114.0: sha256:f7964140e00bd615497d37040eb907a7cd87db6f06baea784d411cda572a29df → sha256:c0300d34fb275343c8e3b50796c9b10e6f33218e84c958386a218fbdceaeed65 • ghcr.io/immich-app/immich-server v1.114.0: sha256:9d1c9ab40f3171f1dc06d5c6bc32541ff4b0835c1d217ff5cc61c85e26d2452f → sha256:df4ae6d2bf8aa3ebd6370b42a667a007c5e7452a1cd2ab4c22fbaff9a69ffcbc
214 lines
4.9 KiB
Nix
214 lines
4.9 KiB
Nix
{
|
|
inputs = let
|
|
inherit (import ./inputs.nix) mkDep mkInput otherInputs;
|
|
|
|
mainInputs = {
|
|
systems = mkInput {
|
|
owner = "nix-systems";
|
|
repo = "default-linux";
|
|
};
|
|
|
|
nixpkgs = mkInput {
|
|
owner = "NixOS";
|
|
repo = "nixpkgs";
|
|
ref = "nixos-unstable";
|
|
};
|
|
|
|
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";
|
|
};
|
|
|
|
jovian = mkDep {
|
|
owner = "Jovian-Experiments";
|
|
repo = "Jovian-NixOS";
|
|
};
|
|
};
|
|
in
|
|
mainInputs // otherInputs;
|
|
|
|
outputs = inputs @ {
|
|
nixpkgs,
|
|
secrets,
|
|
self,
|
|
systems,
|
|
...
|
|
}: let
|
|
inherit (import ./lib {inherit inputs;}) mkVersion mkNixOS mkNixOnDroid mkPkgs;
|
|
|
|
perSystem = attrs:
|
|
nixpkgs.lib.genAttrs (import systems) (system:
|
|
attrs (mkPkgs {inherit system nixpkgs;}));
|
|
in {
|
|
nixosModules = import ./nixosModules self;
|
|
|
|
homeManagerModules = import ./homeManagerModules self;
|
|
|
|
nixosConfigurations = {
|
|
# Desktops
|
|
wim = mkNixOS {
|
|
extraModules = [
|
|
./devices/wim
|
|
secrets.nixosModules.default
|
|
];
|
|
};
|
|
binto = mkNixOS {
|
|
# FIXME: https://github.com/NixOS/nixpkgs/issues/338315
|
|
# cudaSupport = true;
|
|
extraModules = [./devices/binto];
|
|
};
|
|
|
|
bbsteamie = mkNixOS {extraModules = [./devices/bbsteamie];};
|
|
|
|
# NAS
|
|
nos = mkNixOS {
|
|
# FIXME: https://github.com/NixOS/nixpkgs/issues/338315
|
|
# cudaSupport = true;
|
|
extraModules = [
|
|
./devices/nos
|
|
secrets.nixosModules.nos
|
|
];
|
|
};
|
|
|
|
# Build / test server
|
|
servivi = mkNixOS {
|
|
extraModules = [
|
|
./devices/servivi
|
|
secrets.nixosModules.servivi
|
|
];
|
|
};
|
|
|
|
# Home-assistant
|
|
homie = mkNixOS {
|
|
extraModules = [
|
|
./devices/homie
|
|
secrets.nixosModules.homie
|
|
];
|
|
};
|
|
|
|
# Cluster
|
|
thingone = mkNixOS {
|
|
extraModules = [
|
|
(import ./devices/cluster "thingone")
|
|
secrets.nixosModules.thingy
|
|
];
|
|
};
|
|
thingtwo = mkNixOS {
|
|
extraModules = [
|
|
(import ./devices/cluster "thingtwo")
|
|
secrets.nixosModules.thingy
|
|
];
|
|
};
|
|
|
|
live-image = mkNixOS {
|
|
extraModules = [
|
|
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
|
|
{
|
|
vars = {
|
|
mainUser = "nixos";
|
|
hostName = "nixos";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
|
|
nixOnDroidConfigurations.default =
|
|
mkNixOnDroid [./devices/android];
|
|
|
|
legacyPackages =
|
|
perSystem (pkgs:
|
|
import ./legacyPackages {inherit mkVersion pkgs inputs;});
|
|
|
|
packages =
|
|
perSystem (pkgs:
|
|
import ./packages {inherit self pkgs mkVersion inputs;});
|
|
|
|
overlays = import ./overlays {};
|
|
|
|
apps =
|
|
perSystem (pkgs:
|
|
import ./apps {inherit inputs pkgs;});
|
|
|
|
devShells = perSystem (pkgs: {
|
|
default = pkgs.mkShell {
|
|
packages = [
|
|
(pkgs.writeShellScriptBin "mkIso" ''
|
|
isoConfig="nixosConfigurations.live-image.config.system.build.isoImage"
|
|
nom build $(realpath /etc/nixos)#$isoConfig
|
|
'')
|
|
];
|
|
};
|
|
|
|
node = pkgs.mkShell {
|
|
packages =
|
|
(builtins.attrValues {
|
|
inherit
|
|
(pkgs)
|
|
nodejs_latest
|
|
typescript
|
|
;
|
|
})
|
|
++ [
|
|
(pkgs.writeShellApplication {
|
|
name = "updateNpmDeps";
|
|
runtimeInputs = builtins.attrValues {
|
|
inherit
|
|
(pkgs)
|
|
prefetch-npm-deps
|
|
nodejs_latest
|
|
;
|
|
};
|
|
|
|
text = ''
|
|
npm i --package-lock-only || true # this command will fail but still updates the main lockfile
|
|
prefetch-npm-deps ./package-lock.json
|
|
'';
|
|
})
|
|
];
|
|
};
|
|
|
|
subtitles-dev = pkgs.mkShell {
|
|
packages = builtins.attrValues {
|
|
inherit
|
|
(pkgs)
|
|
nodejs_latest
|
|
ffmpeg-full
|
|
typescript
|
|
;
|
|
|
|
inherit
|
|
(pkgs.nodePackages)
|
|
ts-node
|
|
;
|
|
};
|
|
};
|
|
});
|
|
|
|
# For nix-fast-build. I use a custom output to alleviate eval time of this flake. ie. when doing nix flake show
|
|
nixFastChecks =
|
|
perSystem (pkgs:
|
|
import ./checks {inherit pkgs self;});
|
|
|
|
formatter = perSystem (pkgs: pkgs.alejandra);
|
|
};
|
|
}
|