matt1432
b25ff8dd9a
All checks were successful
Discord / discord commits (push) Has been skipped
Flake Inputs: • Updated input 'agsV2': 'github:Aylur/ags/9c1b7ba' (2024-09-22) → 'github:Aylur/ags/ff3740e' (2024-09-27) • Updated input 'astal': 'github:Aylur/astal/c68d116' (2024-09-26) → 'github:Aylur/astal/9e63fe3' (2024-09-28) • Updated input 'discord-overlay': 'github:matt1432/discord-nightly-overlay/ce9de15' (2024-09-26) → 'github:matt1432/discord-nightly-overlay/5cc5b7f' (2024-09-28) • Updated input 'gpu-screen-recorder-src': 'git+https://repo.dec05eba.com/gpu-screen-recorder?ref=refs/heads/master&rev=0b20a46' (2024-09-26) → 'git+https://repo.dec05eba.com/gpu-screen-recorder?ref=refs/heads/master&rev=ebc8c69' (2024-09-27) • Updated input 'home-manager': 'github:nix-community/home-manager/c124568' (2024-09-26) → 'github:nix-community/home-manager/ffe2d07' (2024-09-26) • Updated input 'hyprland': 'git+https://github.com/hyprwm/Hyprland?ref=refs/heads/main&rev=caaa9b1&submodules=1' (2024-09-26) → 'git+https://github.com/hyprwm/Hyprland?ref=refs/heads/main&rev=6f313de&submodules=1' (2024-09-28) • Added input 'hyprland/hyprland-protocols': 'github:hyprwm/hyprland-protocols/6b3261e' (2024-09-27) • Updated input 'jovian': 'github:Jovian-Experiments/Jovian-NixOS/03aa054' (2024-09-23) → 'github:Jovian-Experiments/Jovian-NixOS/3390ff2' (2024-09-27) • Updated input 'nix-fast-build': 'github:Mic92/nix-fast-build/030e586' (2024-06-27) → 'github:Mic92/nix-fast-build/bd134ae' (2024-09-27) • Updated input 'nix-gaming': 'github:fufexan/nix-gaming/f3e9775' (2024-09-23) → 'github:fufexan/nix-gaming/b9750ee' (2024-09-28) • Updated input 'nixd': 'github:nix-community/nixd/a47ac2c' (2024-09-19) → 'github:nix-community/nixd/e5e144f' (2024-09-28) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/30439d9' (2024-09-23) → 'github:NixOS/nixpkgs/1925c60' (2024-09-26) • Updated input 'nixpkgs-wayland': 'github:nix-community/nixpkgs-wayland/73529b9' (2024-09-26) → 'github:nix-community/nixpkgs-wayland/811af6a' (2024-09-27) • Updated input 'sops-nix': 'github:Mic92/sops-nix/e2d404a' (2024-09-16) → 'github:Mic92/sops-nix/127a96f' (2024-09-27) • Updated input 'spotifywebapi-src': 'github:thlucas1/SpotifyWebApiPython/59a7cb4' (2024-09-24) → 'github:thlucas1/SpotifyWebApiPython/092a1cf' (2024-09-26) Docker Images: • postgres 14: sha256:1bd26d434ac67d210a42cf19fa0812efd22472e0494f9c6ffa654509f427608a → sha256:626046694f31a4a6a92511bbeca43f7e78ea8c6ae2f2ed70bbaa9b9abd5b67ab • ghcr.io/gethomepage/homepage latest: sha256:5c264918d2d18a753da8657fee7e0579c8b11581b19275d9a93fde76a8267f3c → sha256:671c2ed1a61b5dfbb9a1998c8738c3aeb1acf11adbc12563f81fcf4fd9802198 • ghcr.io/immich-app/immich-machine-learning release: sha256:66f13f7fb1af555f9f1767c3dd5d404b7e5f486a272dc73af9e6480f541463dc → sha256:60d6d3b7090c664b76adabd00c06674e25c5a91419e374bff4e7cf2ee5dd920a • ghcr.io/immich-app/immich-server release: sha256:544fcfc41ce97833e33126e5041fb3b821e3db7bf405b54ac06689247a170a90 → sha256:effd3d44202964c5f53af85e0fd0f2ca5287c989a43c4d55ba71133eb148bed3 • nextcloud fpm: sha256:724553f742322d67f34282be46b414572d4e0cd46ccd54d2f2a24b6a87a472b0 → sha256:88ad5957e747ddceb7641b072c22a0fbf85fe3b7ca9fc63a871d72b14e5d0ae1 • nginx latest: sha256:04ba374043ccd2fc5c593885c0eacddebabd5ca375f9323666f28dfd5a9710e3 → sha256:b5d3f3e104699f0768e5ca8626914c16e52647943c65274d8a9e63072bd015bb • ghcr.io/linuxserver/prowlarr latest: sha256:8d3da3256868cf40f06cdca2074dee07a190ec42a6df022fb9fe6f73842ba293 → sha256:a6fc8ab9ff34d82327d29f8b5bfb7a672c0e54a274e5e5b023db01c335d05dfd • ghcr.io/linuxserver/sonarr latest: sha256:98c21a64377619ec74778c70cc2e74d3e978a4d2c61f97b9ad88a0e5bc0766f9 → sha256:12570fbaddc8733664e1e5d9bb12a719cb07f9455c518097b0e6426f4960f884 Firefox Addons: floccus: 5.2.7 -> 5.3.0.2 sponsorblock: 5.8.1 -> 5.9
212 lines
4.8 KiB
Nix
212 lines
4.8 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 {
|
|
cudaSupport = true;
|
|
extraModules = [./devices/binto];
|
|
};
|
|
|
|
bbsteamie = mkNixOS {extraModules = [./devices/bbsteamie];};
|
|
|
|
# NAS
|
|
nos = mkNixOS {
|
|
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);
|
|
};
|
|
}
|