Compare commits

..

No commits in common. "da250e328cc757fd29dd34a6a1886d409c3f62d2" and "872849c87567adab55573b514bc5f23f4d0611a6" have entirely different histories.

6 changed files with 21 additions and 77 deletions

View file

@ -1,8 +1,10 @@
name: Eval NixOS Configurations name: Eval NixOS Configurations
on: on:
check_suite: push:
types: [completed] branches:
- deploy
workflow_dispatch:
permissions: permissions:
contents: write contents: write
@ -34,7 +36,7 @@ jobs:
failed_hosts="" failed_hosts=""
for host in $hosts; do for host in $hosts; do
echo "Eval derivation for $host" echo "Eval derivation for $host"
if ! nix derivation show ".#nixosConfigurations.$host.config.system.build.toplevel" > "eval/$host.json"; then if ! nix show-derivation -L ".#nixosConfigurations.$host.config.system.build.toplevel" > "eval/$host.json"; then
echo "❌ Failed to evaluate $host" echo "❌ Failed to evaluate $host"
failed_hosts+="$host " failed_hosts+="$host "
rm "eval/$host.json" rm "eval/$host.json"

View file

@ -15,12 +15,23 @@ in
../sops.nix ../sops.nix
]; ];
services.comin = {
enable = true;
remotes = [
{
name = "origin";
url = "https://github.com/xinyangli/nixos-config.git";
branches.main.name = "deploy-comin-eval";
}
];
hostname = config.networking.hostName;
};
commonSettings = { commonSettings = {
# auth.enable = true; # auth.enable = true;
nix = { nix = {
signing.enable = true; signing.enable = true;
}; };
comin.enable = true;
}; };
# Bootloader. # Bootloader.

View file

@ -19,7 +19,6 @@
nix = { nix = {
enable = true; enable = true;
}; };
comin.enable = true;
}; };
boot = { boot = {
@ -39,10 +38,7 @@
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
environment.systemPackages = [ environment.systemPackages = [ pkgs.virtiofsd ];
pkgs.virtiofsd
pkgs.intel-gpu-tools
];
sops = { sops = {
defaultSopsFile = ./secrets.yaml; defaultSopsFile = ./secrets.yaml;
@ -98,32 +94,15 @@
options = "rw,nodev,nosuid"; options = "rw,nodev,nosuid";
wantedBy = [ "restic-rest-server.service" ]; wantedBy = [ "restic-rest-server.service" ];
} }
# {
# what = "ocis";
# where = "/var/lib/ocis";
# type = "virtiofs";
# options = "rw,nodev,nosuid";
# wantedBy = [ "ocis.service" ];
# }
{ {
what = "media"; what = "ocis";
where = "/var/lib/jellyfin/media"; where = "/var/lib/ocis";
type = "virtiofs"; type = "virtiofs";
options = "rw,nodev,nosuid"; options = "rw,nodev,nosuid";
wantedBy = [ "ocis.service" ];
} }
]; ];
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver
intel-vaapi-driver
vaapiVdpau
intel-compute-runtime # OpenCL filter support (hardware tonemapping and subtitle burn-in)
intel-media-sdk # QSV up to 11th gen
];
};
services.openssh.ports = [ services.openssh.ports = [
22 22
2222 2222

View file

@ -4,6 +4,5 @@
./restic.nix ./restic.nix
./media-download.nix ./media-download.nix
./immich.nix ./immich.nix
./jellyfin.nix
]; ];
} }

View file

@ -1,15 +0,0 @@
{ config, pkgs, ... }:
{
services.jellyfin.enable = true;
environment.systemPackages = with pkgs; [
jellyfin
jellyfin-web
jellyfin-ffmpeg
];
services.caddy.virtualHosts."https://weilite.coho-tet.ts.net:8920".extraConfig = ''
reverse_proxy 127.0.0.1:8096
'';
networking.firewall.allowedTCPPorts = [ 8920 ]; # allow on lan
users.users.jellyfin.extraGroups = [ "render" ];
}

View file

@ -1,32 +0,0 @@
{
config,
lib,
...
}:
let
inherit (lib)
mkEnableOption
mkIf
;
cfg = config.commonSettings.comin;
in
{
options.commonSettings.comin = {
enable = mkEnableOption "auto updater with comin";
};
config = {
services.comin = mkIf cfg.enable {
enable = true;
remotes = [
{
name = "origin";
url = "https://github.com/xinyangli/nixos-config.git";
branches.main.name = "deploy-comin-eval";
}
];
hostname = config.networking.hostName;
};
};
}