hyprland: add notification daemon
This commit is contained in:
parent
70a8af6395
commit
ee02393220
@ -9,6 +9,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./gitea-runner.nix
|
./gitea-runner.nix
|
||||||
|
./zonos-container.nix
|
||||||
../desktop.nix
|
../desktop.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
72
hosts/odyssey/zonos-container.nix
Normal file
72
hosts/odyssey/zonos-container.nix
Normal 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" ];
|
||||||
|
};
|
||||||
|
}
|
@ -88,6 +88,7 @@ with lib;
|
|||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
"audio"
|
"audio"
|
||||||
|
"docker"
|
||||||
"lxd"
|
"lxd"
|
||||||
"networkmanager"
|
"networkmanager"
|
||||||
"wheel"
|
"wheel"
|
||||||
|
@ -21,8 +21,6 @@ in
|
|||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
docker.enable = false;
|
|
||||||
|
|
||||||
podman = {
|
podman = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultNetwork.settings.dns_enabled = true;
|
defaultNetwork.settings.dns_enabled = true;
|
||||||
@ -40,7 +38,6 @@ in
|
|||||||
runroot = "/run/containers/storage";
|
runroot = "/run/containers/storage";
|
||||||
};
|
};
|
||||||
|
|
||||||
oci-containers.backend = "podman";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.interfaces."podman+" = {
|
networking.firewall.interfaces."podman+" = {
|
||||||
|
@ -33,6 +33,7 @@ in
|
|||||||
user.packages = with pkgs.unstable; [
|
user.packages = with pkgs.unstable; [
|
||||||
anyrun
|
anyrun
|
||||||
clipse
|
clipse
|
||||||
|
dunst
|
||||||
hyprpaper
|
hyprpaper
|
||||||
kitty
|
kitty
|
||||||
mpv
|
mpv
|
||||||
|
Loading…
x
Reference in New Issue
Block a user