hyprland: add notification daemon

This commit is contained in:
Jordan Holt 2025-03-16 11:40:22 +00:00
parent 70a8af6395
commit ee02393220
Signed by: jordan
GPG Key ID: B8CFFF61F1CCF520
5 changed files with 75 additions and 3 deletions

View File

@ -9,6 +9,7 @@
imports = [
./hardware-configuration.nix
./gitea-runner.nix
./zonos-container.nix
../desktop.nix
];

View File

@ -0,0 +1,72 @@
# Auto-generated using compose2nix v0.3.2-pre.
{ pkgs, lib, ... }:
{
hardware.nvidia-container-toolkit.enable = true;
# Runtime
virtualisation.docker = {
enable = true;
# enableNvidia = true;
enableOnBoot = true;
autoPrune.enable = true;
daemon.settings.features.cdi = true;
rootless.enable = true;
rootless.daemon.settings.features.cdi = true;
};
virtualisation.oci-containers.backend = "docker";
# Containers
virtualisation.oci-containers.containers."zonos_container" = {
image = "compose2nix/zonos_container";
environment = {
"GRADIO_SHARE" = "False";
"NVIDIA_VISIBLE_DEVICES" = "0";
};
cmd = [
"python3"
"gradio_interface.py"
];
log-driver = "journald";
extraOptions = [
"--device=nvidia.com/gpu=0"
"--network=host"
];
};
systemd.services."docker-zonos_container" = {
serviceConfig = {
Restart = lib.mkOverride 90 "no";
};
partOf = [
"docker-compose-zonos-root.target"
];
wantedBy = [
"docker-compose-zonos-root.target"
];
};
# Builds
systemd.services."docker-build-zonos_container" = {
path = [
pkgs.docker
pkgs.git
];
serviceConfig = {
Type = "oneshot";
TimeoutSec = 900;
};
script = ''
cd /home/jordan/projects/jordan/Zonos
docker build -t compose2nix/zonos_container .
'';
};
# Root service
# When started, this will automatically create all resources and start
# the containers. When stopped, this will teardown all resources.
systemd.targets."docker-compose-zonos-root" = {
unitConfig = {
Description = "Root target generated by compose2nix.";
};
wantedBy = [ "multi-user.target" ];
};
}

View File

@ -88,6 +88,7 @@ with lib;
isNormalUser = true;
extraGroups = [
"audio"
"docker"
"lxd"
"networkmanager"
"wheel"

View File

@ -21,8 +21,6 @@ in
config = mkIf cfg.enable {
virtualisation = {
docker.enable = false;
podman = {
enable = true;
defaultNetwork.settings.dns_enabled = true;
@ -40,7 +38,6 @@ in
runroot = "/run/containers/storage";
};
oci-containers.backend = "podman";
};
networking.firewall.interfaces."podman+" = {

View File

@ -33,6 +33,7 @@ in
user.packages = with pkgs.unstable; [
anyrun
clipse
dunst
hyprpaper
kitty
mpv