Compare commits
5 commits
7cb1b981ca
...
2b20a876cd
Author | SHA1 | Date | |
---|---|---|---|
2b20a876cd | |||
6cf076d67f | |||
8820846d31 | |||
3d78606a56 | |||
374b4f3b5d |
7 changed files with 56 additions and 15 deletions
29
options/custom/containers/owncast.nix
Normal file
29
options/custom/containers/owncast.nix
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib; let
|
||||||
|
cfg = config.custom.containers.owncast;
|
||||||
|
in {
|
||||||
|
options.custom.containers.owncast.enable = mkOption {default = false;};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
#?? arion-owncast pull
|
||||||
|
environment.shellAliases.arion-owncast = "sudo arion --prebuilt-file ${config.virtualisation.arion.projects.owncast.settings.out.dockerComposeYaml}";
|
||||||
|
|
||||||
|
virtualisation.arion.projects.owncast.settings.services = {
|
||||||
|
owncast.service = {
|
||||||
|
container_name = "owncast";
|
||||||
|
image = "owncast/owncast:0.1.3";
|
||||||
|
restart = "unless-stopped";
|
||||||
|
volumes = ["${config.custom.containers.directory}/owncast/data:/app/data"];
|
||||||
|
|
||||||
|
ports = [
|
||||||
|
"1935:1935"
|
||||||
|
"127.0.0.1:8800:8080"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -10,17 +10,23 @@ in {
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
# https://github.com/direnv/direnv
|
# https://github.com/direnv/direnv
|
||||||
programs.direnv = {
|
programs.direnv =
|
||||||
enable = true;
|
{
|
||||||
loadInNixShell = false; # nix develop
|
|
||||||
silent = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
home-manager.users.${config.custom.username} = {
|
|
||||||
programs.direnv = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
|
loadInNixShell = false; # nix develop
|
||||||
|
}
|
||||||
|
// optionalAttrs (versionAtLeast version "24.11") {
|
||||||
silent = true;
|
silent = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home-manager.users.${config.custom.username} = {
|
||||||
|
programs.direnv =
|
||||||
|
{
|
||||||
|
enable = true;
|
||||||
|
}
|
||||||
|
// optionalAttrs (versionAtLeast version "24.11") {
|
||||||
|
silent = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,13 +23,15 @@ in {
|
||||||
services = {
|
services = {
|
||||||
gvfs.enable = true; # Trash dependency
|
gvfs.enable = true; # Trash dependency
|
||||||
|
|
||||||
gnome = {
|
gnome =
|
||||||
sushi.enable = true; # Quick preview with spacebar
|
{
|
||||||
|
sushi.enable = true; # Quick preview with spacebar
|
||||||
# File indexing
|
}
|
||||||
localsearch.enable = cfg.index;
|
// optionalAttrs (versionAtLeast version "24.11") {
|
||||||
tinysparql.enable = cfg.index;
|
# File indexing
|
||||||
};
|
localsearch.enable = cfg.index;
|
||||||
|
tinysparql.enable = cfg.index;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Alternative fix to services.gnome.core-utilities.enable
|
# Alternative fix to services.gnome.core-utilities.enable
|
||||||
|
|
|
@ -11,5 +11,7 @@ in {
|
||||||
config.home-manager.users.${config.custom.username} = mkIf cfg.enable {
|
config.home-manager.users.${config.custom.username} = mkIf cfg.enable {
|
||||||
# https://github.com/obsproject/obs-studio
|
# https://github.com/obsproject/obs-studio
|
||||||
programs.obs-studio.enable = true;
|
programs.obs-studio.enable = true;
|
||||||
|
|
||||||
|
xdg.configFile."obs-studio".source = config.home-manager.users.${config.custom.username}.lib.file.mkOutOfStoreSymlink "${config.custom.sync}/common/config/obs-studio";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,6 +80,7 @@ in {
|
||||||
"application/x-shellscript" = gnome-text-editor;
|
"application/x-shellscript" = gnome-text-editor;
|
||||||
"application/x-trash" = gnome-text-editor;
|
"application/x-trash" = gnome-text-editor;
|
||||||
"application/x-xpinstall" = gnome-text-editor;
|
"application/x-xpinstall" = gnome-text-editor;
|
||||||
|
"application/x-wine-extension-ini" = gnome-text-editor;
|
||||||
"application/xhtml_xml" = gnome-text-editor;
|
"application/xhtml_xml" = gnome-text-editor;
|
||||||
"application/xhtml+xml" = gnome-text-editor;
|
"application/xhtml+xml" = gnome-text-editor;
|
||||||
"application/xml" = gnome-text-editor;
|
"application/xml" = gnome-text-editor;
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
mastodon.enable = true;
|
mastodon.enable = true;
|
||||||
netbox.enable = true;
|
netbox.enable = true;
|
||||||
nextcloud.enable = true;
|
nextcloud.enable = true;
|
||||||
|
owncast.enable = true;
|
||||||
redlib.enable = true;
|
redlib.enable = true;
|
||||||
searxng.enable = true;
|
searxng.enable = true;
|
||||||
};
|
};
|
||||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue