This commit is contained in:
Tyler Beckman 2024-12-12 15:33:50 -07:00
parent 32a1ca6843
commit 72cf59fbee
Signed by: Ty
GPG key ID: 2813440C772555A4
4 changed files with 41 additions and 2 deletions

View file

@ -48,9 +48,11 @@
url = "github:nix-community/nix-vscode-extensions";
inputs.nixpkgs.follows = "nixpkgs";
};
# VSCode server support
vscode-server.url = "github:nix-community/nixos-vscode-server";
};
outputs = inputs@{ nixpkgs, home-manager, plasma-manager, nix-index-database, ... }: let
outputs = inputs@{ nixpkgs, home-manager, plasma-manager, nix-index-database, vscode-server, ... }: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
secrets = import ./secrets.nix;
@ -108,6 +110,10 @@
vscode.enable = false;
};
}
# VSCode server support
vscode-server.nixosModules.default
{ services.vscode-server.enable = true; }
];
specialArgs = {
@ -115,4 +121,4 @@
};
};
};
}
}

View file

@ -10,6 +10,7 @@
imports = [
./hardware-configuration.nix
./modules
./services
];
system.stateVersion = "24.11";

View file

@ -0,0 +1,15 @@
{ ... }:
{
imports = [
./jellyfin.nix
];
networking = {
nat = {
enable = true;
internalInterfaces = ["ve-+"];
externalInterface = "wlp2s0";
};
networkmanager.unmanaged = [ "interface-name:ve-*" ];
};
}

View file

@ -0,0 +1,17 @@
{ config, ... }:
{
containers.jellyfin = {
config = { pkgs, ...}: {
system.stateVersion = "25.05";
services.jellyfin = {
enable = true;
package = pkgs.jellyfin;
};
};
autoStart = true;
privateNetwork = true;
hostAddress = "172.30.0.2"; # TODO define in config option
localAddress = "172.30.0.2";
};
}