fix icons
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
let
|
||||||
|
drawer = "nwg-drawer -fm nautilus -term kitty -mb 10 -mt 10 -ml 10 -mr 10 -pbuseicontheme -i Colloid-nord-dark";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -33,7 +36,7 @@
|
|||||||
"$mod, M, exec, wlogout --protocol layer-shell"
|
"$mod, M, exec, wlogout --protocol layer-shell"
|
||||||
"$mod, E, exec, nautilus"
|
"$mod, E, exec, nautilus"
|
||||||
"$mod, V, togglefloating, "
|
"$mod, V, togglefloating, "
|
||||||
"$mod, D, exec, nwg-drawer -fm nautilus -term kitty"
|
"$mod, D, exec, ${drawer}"
|
||||||
"$mod, P, pseudo, " # dwindle
|
"$mod, P, pseudo, " # dwindle
|
||||||
"$mod, S, togglesplit, " # dwindle
|
"$mod, S, togglesplit, " # dwindle
|
||||||
"$mod SHIFT, Q, exec, hyprlock"
|
"$mod SHIFT, Q, exec, hyprlock"
|
||||||
@@ -193,45 +196,27 @@
|
|||||||
"float, title:wlogout"
|
"float, title:wlogout"
|
||||||
"fullscreen, title:wlogout"
|
"fullscreen, title:wlogout"
|
||||||
"idleinhibit stayfocused, mpv"
|
"idleinhibit stayfocused, mpv"
|
||||||
"fullscreen, title:BBar"
|
|
||||||
"fullscreen, title:Remote Desktop Connection"
|
|
||||||
"norounding, class:Remote Desktop Connection"
|
|
||||||
"noshadow, class:Remote Desktop Connection"
|
|
||||||
"immediate, class:Remote Desktop Connection"
|
|
||||||
"syncfullscreen, class:Remote Desktop Connection"
|
|
||||||
"allowsinput, class:Remote Desktop Connection"
|
|
||||||
"noanim, class:Remote Desktop Connection"
|
|
||||||
"noblur, class:Remote Desktop Connection"
|
|
||||||
"noborder, class:Remote Desktop Connection"
|
|
||||||
"nodim, class:Remote Desktop Connection"
|
|
||||||
"nomaxsize, class:Remote Desktop Connection"
|
|
||||||
"minsize 3840 2160, class:Remote Desktop Connection"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
windowrulev2 = [
|
windowrulev2 = [
|
||||||
"float, class:Vmware-view,title:VMware Horizon Client"
|
|
||||||
"size 3840 2160, class:Remote Desktop Connection"
|
|
||||||
# "float, class:Remote Desktop Connection,title:BBar"
|
|
||||||
# "float, class:Remote Desktop Connection,title:Remote Desktop Connection"
|
|
||||||
"float, class:Credential Manager UI Host,title:Windows Security"
|
|
||||||
"float, title:^(Media viewer)$"
|
"float, title:^(Media viewer)$"
|
||||||
"float, class:^(it.mijorus.smile)$,title:^(Smile)$"
|
"float, class:^(it.mijorus.smile)$,title:^(Smile)$"
|
||||||
|
"float, class:^(.blueman-manager-wrapped)$,title:^(Bluetooth Devices)$"
|
||||||
# Picture in picture windows
|
# Picture in picture windows
|
||||||
# "float, class:pavucontrol,title:pavucontrol" # ?????
|
# "float, class:pavucontrol,title:pavucontrol" # ?????
|
||||||
"float, title:^(Picture-in-Picture)$"
|
"float, title:^(Picture-in-Picture)$"
|
||||||
"pin, title:^(Picture-in-Picture)$"
|
"pin, title:^(Picture-in-Picture)$"
|
||||||
|
|
||||||
|
# discord/vesktop
|
||||||
|
"workspace: name:discord, class:^(vesktop)$"
|
||||||
"float, class:^(vesktop)$,title:^(Discord Popout)$"
|
"float, class:^(vesktop)$,title:^(Discord Popout)$"
|
||||||
"pin, class:^(vesktop)$,title:^(Discord Popout)$"
|
"pin, class:^(vesktop)$,title:^(Discord Popout)$"
|
||||||
"float, class:^(steam)$,title:^(Friends List)$"
|
|
||||||
# Workspace assign
|
|
||||||
# "workspace: 1, class:^(kitty)$"
|
|
||||||
# "workspace: name:discord, class:^(firefox)$"
|
|
||||||
"workspace: name:discord, class:^(vesktop)$"
|
|
||||||
|
|
||||||
# Steam
|
# Steam
|
||||||
"float, class:^([Ss]team)$, title:^((?![Ss]team).*)$"
|
"float, class:^([Ss]team)$, title:^((?![Ss]team).*)$"
|
||||||
"workspace name:steam silent, class:^([Ss]team)$, title:^([Ss]team)$"
|
"workspace name:steam silent, class:^([Ss]team)$, title:^([Ss]team)$"
|
||||||
"tile, class:^([Ss]team)$, title:^([Ss]team)$"
|
"tile, class:^([Ss]team)$, title:^([Ss]team)$"
|
||||||
|
"float, class:^(steam)$,title:^(Friends List)$"
|
||||||
|
|
||||||
# Code
|
# Code
|
||||||
# "pin, class:^(code)$,title:^(Save As)$"
|
# "pin, class:^(code)$,title:^(Save As)$"
|
||||||
@@ -240,6 +225,26 @@
|
|||||||
|
|
||||||
# Game Tearing??? https://wiki.hyprland.org/Configuring/Tearing/
|
# Game Tearing??? https://wiki.hyprland.org/Configuring/Tearing/
|
||||||
"immediate, class:gamescope"
|
"immediate, class:gamescope"
|
||||||
|
|
||||||
|
# todo properly fix this shit instead of using gamescope
|
||||||
|
# vmware
|
||||||
|
"tag +horizonrdp, class:Remote Desktop Connection,title:BBar"
|
||||||
|
"tag +horizonrdp, class:Remote Desktop Connection,title:Remote Desktop Connection"
|
||||||
|
|
||||||
|
"noanim, tag:horizonrdp"
|
||||||
|
"noblur, tag:horizonrdp"
|
||||||
|
"norounding, tag:horizonrdp"
|
||||||
|
"noshadow, tag:horizonrdp"
|
||||||
|
"immediate, tag:horizonrdp"
|
||||||
|
"allowsinput, tag:horizonrdp"
|
||||||
|
"noborder, tag:horizonrdp"
|
||||||
|
"nodim, tag:horizonrdp"
|
||||||
|
"nomaxsize, tag:horizonrdp"
|
||||||
|
|
||||||
|
"float, class:Vmware-view,title:VMware Horizon Client"
|
||||||
|
"float, class:Remote Desktop Connection,title:^(Remote Desktop Connection)$"
|
||||||
|
"float, class:Remote Desktop Connection,title:^(5cd238b4x0)$"
|
||||||
|
"float, class:Credential Manager UI Host,title:Windows Security"
|
||||||
];
|
];
|
||||||
|
|
||||||
input = {
|
input = {
|
||||||
@@ -268,7 +273,7 @@
|
|||||||
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||||
exec-once = nwg-look -a
|
exec-once = nwg-look -a
|
||||||
exec-once = nm-applet
|
exec-once = nm-applet
|
||||||
exec-once = blueberry
|
exec-once = blueberry-tray
|
||||||
exec-once = [silent] firefox
|
exec-once = [silent] firefox
|
||||||
exec-once = [silent] vesktop
|
exec-once = [silent] vesktop
|
||||||
exec-once = [silent] spotify
|
exec-once = [silent] spotify
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
"custom/updates" = {
|
"custom/updates" = {
|
||||||
tooltip = true;
|
tooltip = true;
|
||||||
format = { };
|
format = { };
|
||||||
interval = 60;
|
interval = 30;
|
||||||
exec = "sudo waybar-updates";
|
exec = "sudo waybar-updates";
|
||||||
return-type = "json";
|
return-type = "json";
|
||||||
};
|
};
|
||||||
@@ -147,17 +147,17 @@
|
|||||||
format = "{icon}";
|
format = "{icon}";
|
||||||
format-icons = {
|
format-icons = {
|
||||||
locked = "";
|
locked = "";
|
||||||
unlocked = "";
|
unlocked = " ";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
"keyboard-state#numlock" = {
|
"keyboard-state#numlock" = {
|
||||||
numlock = true;
|
numlock = true;
|
||||||
icon-size = 30;
|
icon-size = 60;
|
||||||
format = "{icon}";
|
format = "{icon}";
|
||||||
format-icons = {
|
format-icons = {
|
||||||
locked = "";
|
locked = "";
|
||||||
unlocked = "";
|
unlocked = " ";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -302,16 +302,16 @@
|
|||||||
#keyboard-state.numlock {
|
#keyboard-state.numlock {
|
||||||
color: @maroon;
|
color: @maroon;
|
||||||
background-color: @surface0;
|
background-color: @surface0;
|
||||||
padding: 0.5rem 1rem;
|
padding: 0.5rem;
|
||||||
margin: 5px 0;
|
margin: 5px 0;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
font-size: 50px;
|
font-size: 10rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#keyboard-state.capslock {
|
#keyboard-state.capslock {
|
||||||
color: @peach;
|
color: @peach;
|
||||||
background-color: @surface0;
|
background-color: @surface0;
|
||||||
padding: 0.5rem 1rem;
|
padding: 0.5rem;
|
||||||
margin: 5px 0;
|
margin: 5px 0;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ def check():
|
|||||||
if len(updates_dict.keys()) > 0:
|
if len(updates_dict.keys()) > 0:
|
||||||
data["text"] = ("")
|
data["text"] = ("")
|
||||||
else:
|
else:
|
||||||
data["text"] = ("")
|
data["text"] = (u"\u00A0")
|
||||||
if len(updates_dict.keys()) <= 0:
|
if len(updates_dict.keys()) <= 0:
|
||||||
data["tooltip"] = ("flake inputs up to date")
|
data["tooltip"] = ("flake inputs up to date")
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -56,6 +56,28 @@ WWO_CODE = {
|
|||||||
"395": "HeavySnowShowers",
|
"395": "HeavySnowShowers",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WEATHER_SYMBOL_EMOJI = {
|
||||||
|
"Unknown": "✨",
|
||||||
|
"Cloudy": "☁️",
|
||||||
|
"Fog": "🌫",
|
||||||
|
"HeavyRain": "🌧",
|
||||||
|
"HeavyShowers": "🌧",
|
||||||
|
"HeavySnow": "❄️",
|
||||||
|
"HeavySnowShowers": "❄️",
|
||||||
|
"LightRain": "🌦",
|
||||||
|
"LightShowers": "🌦",
|
||||||
|
"LightSleet": "🌧",
|
||||||
|
"LightSleetShowers": "🌧",
|
||||||
|
"LightSnow": "🌨",
|
||||||
|
"LightSnowShowers": "🌨",
|
||||||
|
"PartlyCloudy": "⛅️",
|
||||||
|
"Sunny": "☀️",
|
||||||
|
"ThunderyHeavyRain": "🌩",
|
||||||
|
"ThunderyShowers": "⛈",
|
||||||
|
"ThunderySnowShowers": "⛈",
|
||||||
|
"VeryCloudy": "☁️",
|
||||||
|
}
|
||||||
|
|
||||||
WEATHER_SYMBOL = {
|
WEATHER_SYMBOL = {
|
||||||
"Unknown": "✨",
|
"Unknown": "✨",
|
||||||
"Cloudy": "☁️",
|
"Cloudy": "☁️",
|
||||||
|
|||||||
@@ -21,6 +21,8 @@ in
|
|||||||
dbus.enable = true;
|
dbus.enable = true;
|
||||||
|
|
||||||
ddccontrol.enable = true;
|
ddccontrol.enable = true;
|
||||||
|
|
||||||
|
blueman.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ in
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
adwaita-icon-theme
|
adwaita-icon-theme
|
||||||
apple-cursor
|
apple-cursor
|
||||||
blueberry
|
|
||||||
catppuccin
|
catppuccin
|
||||||
catppuccin-gtk
|
catppuccin-gtk
|
||||||
catppuccin-qt5ct
|
catppuccin-qt5ct
|
||||||
@@ -34,6 +33,7 @@ in
|
|||||||
meson
|
meson
|
||||||
nautilus
|
nautilus
|
||||||
networkmanagerapplet
|
networkmanagerapplet
|
||||||
|
nm-tray
|
||||||
nwg-drawer
|
nwg-drawer
|
||||||
nwg-look
|
nwg-look
|
||||||
pamixer
|
pamixer
|
||||||
|
|||||||
@@ -13,8 +13,13 @@ let
|
|||||||
accents = [ gtkThemeAccent ];
|
accents = [ gtkThemeAccent ];
|
||||||
variant = gtkThemeVariant;
|
variant = gtkThemeVariant;
|
||||||
};
|
};
|
||||||
iconTheme = "Colloid-dark"; # Colloid, Colloid-light, Colloid-dark
|
iconThemeColor = "dark"; # "" "light" "dark"
|
||||||
iconThemePkg = pkgs.colloid-icon-theme;
|
iconThemeVariant = "default"; # "" "purple" "pink" "red" "orange" "yellow" "green" "teal" "grey"
|
||||||
|
iconThemeScheme = "nord"; # "" "nord" "dracula" "gruvbox" "everforest" "catppuccin"
|
||||||
|
iconTheme = "Colloid-${iconThemeScheme}-${iconThemeColor}";
|
||||||
|
iconThemePkg = pkgs.colloid-icon-theme.override {
|
||||||
|
schemeVariants = [ iconThemeScheme ];
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
@@ -140,6 +145,7 @@ in
|
|||||||
XDG_CONFIG_HOME = "\${HOME}/.config";
|
XDG_CONFIG_HOME = "\${HOME}/.config";
|
||||||
#XDG_BIN_HOME = "\${HOME}/.local/bin";
|
#XDG_BIN_HOME = "\${HOME}/.local/bin";
|
||||||
XDG_DATA_HOME = "\${HOME}/.local/share";
|
XDG_DATA_HOME = "\${HOME}/.local/share";
|
||||||
|
ICON_THEME = iconTheme;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.pointerCursor = {
|
home.pointerCursor = {
|
||||||
@@ -168,13 +174,11 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
gtk3.extraConfig = {
|
gtk3.extraConfig = {
|
||||||
# gtk-application-prefer-dark-theme = true;
|
gtk-application-prefer-dark-theme = true;
|
||||||
"AdwStyleManager:color-scheme" = "ADW_COLOR_SCHEME_PREFER_DARK";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
gtk4.extraConfig = {
|
gtk4.extraConfig = {
|
||||||
# gtk-application-prefer-dark-theme = true;
|
gtk-application-prefer-dark-theme = true;
|
||||||
"AdwStyleManager:color-scheme" = "ADW_COLOR_SCHEME_PREFER_DARK";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -18,6 +18,8 @@
|
|||||||
|
|
||||||
jellyseerr.enable = true;
|
jellyseerr.enable = true;
|
||||||
|
|
||||||
|
manyfold.enable = true;
|
||||||
|
|
||||||
mariadb = {
|
mariadb = {
|
||||||
enable = true;
|
enable = true;
|
||||||
environmentFiles = [
|
environmentFiles = [
|
||||||
|
|||||||
@@ -188,7 +188,6 @@ in
|
|||||||
"jallen-nas"
|
"jallen-nas"
|
||||||
"docker"
|
"docker"
|
||||||
"podman"
|
"podman"
|
||||||
config.services.redis.servers.nextcloud.user
|
|
||||||
]; # Enable ‘sudo’ for the user.
|
]; # Enable ‘sudo’ for the user.
|
||||||
hashedPasswordFile = passwordFile;
|
hashedPasswordFile = passwordFile;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -17,14 +17,15 @@
|
|||||||
group = "colord";
|
group = "colord";
|
||||||
mode = "u=rwx,g=rx,o=";
|
mode = "u=rwx,g=rx,o=";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
directory = "/etc/nix";
|
||||||
|
user = "root";
|
||||||
|
group = "root";
|
||||||
|
mode = "u=rwx,g=rx,o=rx";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
files = [
|
files = [
|
||||||
{
|
"/etc/machine-id"
|
||||||
file = "/etc/nix/id_rsa";
|
|
||||||
parentDirectory = {
|
|
||||||
mode = "u=rwx,g=,o=";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ in
|
|||||||
port = 6379;
|
port = 6379;
|
||||||
};
|
};
|
||||||
|
|
||||||
nextcloud = {
|
manyfold = {
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 6380;
|
port = 6380;
|
||||||
# user = "911";#"${config.users.users.nix-apps.name}:${config.users.groups.jallen-nas.name}";
|
# user = "911";#"${config.users.users.nix-apps.name}:${config.users.groups.jallen-nas.name}";
|
||||||
|
|||||||
@@ -24,13 +24,17 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
sops.secrets."jallen-nas/nextcloud/dbpassword" = {
|
sops.secrets."jallen-nas/nextcloud/dbpassword" = {
|
||||||
restartUnits = [ "container@nextcloud.service" ];
|
restartUnits = [ "podman-nextcloud.service" ];
|
||||||
};
|
};
|
||||||
sops.secrets."jallen-nas/nextcloud/adminpassword" = {
|
sops.secrets."jallen-nas/nextcloud/adminpassword" = {
|
||||||
restartUnits = [ "container@nextcloud.service" ];
|
restartUnits = [ "podman-nextcloud.service" ];
|
||||||
};
|
};
|
||||||
sops.secrets."jallen-nas/nextcloud/smtppassword" = {
|
sops.secrets."jallen-nas/nextcloud/smtppassword" = {
|
||||||
restartUnits = [ "container@nextcloud.service" ];
|
restartUnits = [ "podman-nextcloud.service" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
sops.secrets."jallen-nas/manyfold/secretkeybase" = {
|
||||||
|
restartUnits = [ "podman-manyfold.service" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
sops.templates."nextcloud-smtp".content = ''
|
sops.templates."nextcloud-smtp".content = ''
|
||||||
|
|||||||
37
modules/apps/manyfold/default.nix
Normal file
37
modules/apps/manyfold/default.nix
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
{ lib, config, ... }:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.nas-apps.manyfold;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [ ./options.nix ];
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
virtualisation.oci-containers.containers."${cfg.name}" = {
|
||||||
|
autoStart = cfg.autoStart;
|
||||||
|
image = cfg.image;
|
||||||
|
ports = [ "${cfg.httpPort}:3214" ];
|
||||||
|
extraOptions = [
|
||||||
|
"--cap-drop=ALL"
|
||||||
|
"--cap-add=CHOWN"
|
||||||
|
"--cap-add=DAC_OVERRIDE"
|
||||||
|
"--cap-add=SETUID"
|
||||||
|
"--cap-add=SETGID"
|
||||||
|
"--security-opt=no-new-privileges:true"
|
||||||
|
];
|
||||||
|
volumes = [
|
||||||
|
"${cfg.configPath}:/config"
|
||||||
|
"${cfg.dataPath}:/libraries"
|
||||||
|
];
|
||||||
|
environment = {
|
||||||
|
PUID = cfg.puid;
|
||||||
|
PGID = cfg.pgid;
|
||||||
|
TZ = cfg.timeZone;
|
||||||
|
# For postgres or mariadb use <scheme>://<username>:<password>@<hostname>:<port>/<db name> where <scheme> is postgresql or mysql2
|
||||||
|
DATABASE_URL = "sqlite3:/config/manyfold.sqlite3";
|
||||||
|
# REDIS_URL = "redis://10.0.1.18:6380/0"; # redis://<hostname>:<port>/<db number>
|
||||||
|
};
|
||||||
|
environmentFiles = [ config.sops.secrets."jallen-nas/manyfold/secretkeybase".path ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
52
modules/apps/manyfold/options.nix
Normal file
52
modules/apps/manyfold/options.nix
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
{ lib, ... }:
|
||||||
|
with lib;
|
||||||
|
{
|
||||||
|
options.nas-apps.manyfold = {
|
||||||
|
enable = mkEnableOption "manyfold docker service";
|
||||||
|
|
||||||
|
autoStart = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
httpPort = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "3214";
|
||||||
|
};
|
||||||
|
|
||||||
|
name = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "manyfold";
|
||||||
|
};
|
||||||
|
|
||||||
|
image = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "ghcr.io/manyfold3d/manyfold";
|
||||||
|
};
|
||||||
|
|
||||||
|
configPath = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "/media/nas/ssd/nix-app-data/manyfold";
|
||||||
|
};
|
||||||
|
|
||||||
|
dataPath = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "/media/nas/main/3d_printer";
|
||||||
|
};
|
||||||
|
|
||||||
|
puid = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "911";
|
||||||
|
};
|
||||||
|
|
||||||
|
pgid = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "1000";
|
||||||
|
};
|
||||||
|
|
||||||
|
timeZone = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "America/Chicago";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -10,15 +10,22 @@ in
|
|||||||
virtualisation.oci-containers.containers."${cfg.name}" = {
|
virtualisation.oci-containers.containers."${cfg.name}" = {
|
||||||
autoStart = cfg.autoStart;
|
autoStart = cfg.autoStart;
|
||||||
image = cfg.image;
|
image = cfg.image;
|
||||||
|
extraOptions = [ "--device=nvidia.com/gpu=0" ];
|
||||||
ports = [
|
ports = [
|
||||||
"${cfg.httpPort}:3000"
|
"${cfg.httpPort}:3000"
|
||||||
"${cfg.httpsPort}:3001"
|
"${cfg.httpsPort}:3001"
|
||||||
];
|
];
|
||||||
volumes = [ "${cfg.configPath}:/config" ];
|
volumes = [
|
||||||
|
"${cfg.configPath}:/config"
|
||||||
|
"${cfg.dataPath}:/data"
|
||||||
|
];
|
||||||
environment = {
|
environment = {
|
||||||
PUID = cfg.puid;
|
PUID = cfg.puid;
|
||||||
PGID = cfg.pgid;
|
PGID = cfg.pgid;
|
||||||
TZ = cfg.timeZone;
|
TZ = cfg.timeZone;
|
||||||
|
TITLE = "orca-slicer";
|
||||||
|
DRINODE = "/dev/dri/renderD128";
|
||||||
|
NO_DECOR = "1";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -34,6 +34,11 @@ with lib;
|
|||||||
default = "/media/nas/ssd/ssd_app_data/orca-slicer";
|
default = "/media/nas/ssd/ssd_app_data/orca-slicer";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
dataPath = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "/media/nas/main/3d_printer";
|
||||||
|
};
|
||||||
|
|
||||||
puid = mkOption {
|
puid = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "911";
|
default = "911";
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
./apps/jackett
|
./apps/jackett
|
||||||
./apps/jellyfin
|
./apps/jellyfin
|
||||||
./apps/jellyseerr
|
./apps/jellyseerr
|
||||||
|
./apps/manyfold
|
||||||
./apps/mariadb
|
./apps/mariadb
|
||||||
./apps/mealie
|
./apps/mealie
|
||||||
./apps/nextcloud
|
./apps/nextcloud
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ jallen-nas:
|
|||||||
dbpassword: ENC[AES256_GCM,data:Xu92h2psR4jAJDM=,iv:UsJD1zq9Uy0Exxk58nkyPGyI8m2BOuvr2DK843h5pSk=,tag:k4MvHT8BoahCf9ZxQw8ovA==,type:str]
|
dbpassword: ENC[AES256_GCM,data:Xu92h2psR4jAJDM=,iv:UsJD1zq9Uy0Exxk58nkyPGyI8m2BOuvr2DK843h5pSk=,tag:k4MvHT8BoahCf9ZxQw8ovA==,type:str]
|
||||||
adminpassword: ENC[AES256_GCM,data:y4PXSbrAAw3A6cg=,iv:10Dm3IYqKJz2FNRteauuYSKXCHE2IKHv4ytidUvblXA=,tag:OAsZ69s4g2p0JEenLbkXdA==,type:str]
|
adminpassword: ENC[AES256_GCM,data:y4PXSbrAAw3A6cg=,iv:10Dm3IYqKJz2FNRteauuYSKXCHE2IKHv4ytidUvblXA=,tag:OAsZ69s4g2p0JEenLbkXdA==,type:str]
|
||||||
smtppassword: ENC[AES256_GCM,data:AIn3HJ3oX90nzcmSLSIeizqL1w==,iv:EyIgk3mxJ1Pn9Gff6ia6c2ekreSFGUWDbLrtC/meMyI=,tag:LvkT98sSOVDV+mxMyJKnbQ==,type:str]
|
smtppassword: ENC[AES256_GCM,data:AIn3HJ3oX90nzcmSLSIeizqL1w==,iv:EyIgk3mxJ1Pn9Gff6ia6c2ekreSFGUWDbLrtC/meMyI=,tag:LvkT98sSOVDV+mxMyJKnbQ==,type:str]
|
||||||
|
manyfold:
|
||||||
|
secretkeybase: ENC[AES256_GCM,data:b+fgTrtnZcp34DOQ0dtKc6bX6/dm9j0o3QJr,iv:e4hOwgTFCXVokGqhwKsYHt5IQgtaKcMmEqvDoMly5aI=,tag:E8gFiOuozA4T1mmcgXfbDg==,type:str]
|
||||||
desktop:
|
desktop:
|
||||||
matt_password: ENC[AES256_GCM,data:z/Jjzr+/PREpNEQsAVl4soeKAwW3sdteIqjhZT2txQDiR0FvGvEBoE/aYCM9NS7XSCgTeTuOqgBGfq4xDLc5/ZBAl7KoGHmKIQ==,iv:qVONkw8PDI2ydqybqGIU2XFq4+qC1BeXnfwxbxbWBww=,tag:eYOD2EoBn9XMiYOaBDFlRw==,type:str]
|
matt_password: ENC[AES256_GCM,data:z/Jjzr+/PREpNEQsAVl4soeKAwW3sdteIqjhZT2txQDiR0FvGvEBoE/aYCM9NS7XSCgTeTuOqgBGfq4xDLc5/ZBAl7KoGHmKIQ==,iv:qVONkw8PDI2ydqybqGIU2XFq4+qC1BeXnfwxbxbWBww=,tag:eYOD2EoBn9XMiYOaBDFlRw==,type:str]
|
||||||
sops:
|
sops:
|
||||||
@@ -47,8 +49,8 @@ sops:
|
|||||||
UGhsN2N0Mjl3UEJvUVlGRlJiN05WaUkKW37lU4G4CLTo6JoHC2OyhKsG/FuO+BiN
|
UGhsN2N0Mjl3UEJvUVlGRlJiN05WaUkKW37lU4G4CLTo6JoHC2OyhKsG/FuO+BiN
|
||||||
pzlVJwzRnmAqwklRbc6RMbQLl2EQrp6KQcgYsUxCMH9OQ/9WJ98dxQ==
|
pzlVJwzRnmAqwklRbc6RMbQLl2EQrp6KQcgYsUxCMH9OQ/9WJ98dxQ==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2024-08-23T16:35:44Z"
|
lastmodified: "2024-08-26T14:10:01Z"
|
||||||
mac: ENC[AES256_GCM,data:gVu0zOwEB/Mup8fXdlFxg8qRMHULMmQeDAsoFw8dlZpFe2IOAHOdemiV1T4oVhhZ78Or+c4PHO0a0M1piscLoHeAVnwPURe5t8tu+8BlwmKRu0+B618ekMXnDs8OYeNvRkA0DcsBr7lF08dbVSLdjfOqrT72XIuCm8XWnPnLPyE=,iv:MoThEq02i+G4BFbHzi6B2QgF7o0TlX3Ew1pB9SUaBRc=,tag:11/5WaAfx9731mo07Vi/ZQ==,type:str]
|
mac: ENC[AES256_GCM,data:vmu42Qg97HenH7qP3WfwvQGb0yPf4/ViIlFQDig1t1LRenIveY4ZI6WutdM7QQ32FEcqBjuBa0m+K3YYYOmvRqxjWrqgD4Zx9vKKhoAFgYNlLUDahzyuA/o6PTM0MxFA1LWAO7Qu37/DxWuKJ41blhCsiYITlpjrQAzRWagp9r8=,iv:XTxCuBhOY8q5ZiXDL2Qf8149K5xJGs5qFDxBvA6057o=,tag:FNeQfNrHKh45b+K16SFrxw==,type:str]
|
||||||
pgp: []
|
pgp: []
|
||||||
unencrypted_suffix: _unencrypted
|
unencrypted_suffix: _unencrypted
|
||||||
version: 3.9.0
|
version: 3.9.0
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
{
|
{ lib, config, ... }:
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.share.gaming;
|
cfg = config.share.gaming;
|
||||||
@@ -34,7 +29,12 @@ in
|
|||||||
"--adaptive-sync"
|
"--adaptive-sync"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};#"gamescope -f -H 2160 -W 3840 -r 240 --adaptive-sync --hdr-enabled
|
}; # "gamescope -f -H 2160 -W 3840 -r 240 --adaptive-sync --hdr-enabled
|
||||||
|
|
||||||
|
programs.alvr = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
|
||||||
# Hardware configs
|
# Hardware configs
|
||||||
hardware = {
|
hardware = {
|
||||||
|
|||||||
@@ -1,12 +1,4 @@
|
|||||||
{
|
{ ... }@args:
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
LT,
|
|
||||||
config,
|
|
||||||
utils,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}@args:
|
|
||||||
{
|
{
|
||||||
# Set up impernance configuration for things like bluetooth
|
# Set up impernance configuration for things like bluetooth
|
||||||
# In this configuration with /etc and /var/log being persistent, only directories outside of that need to be done here. See hardware configuration for all mountpoints.
|
# In this configuration with /etc and /var/log being persistent, only directories outside of that need to be done here. See hardware configuration for all mountpoints.
|
||||||
@@ -33,12 +25,7 @@
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
files = [
|
files = [
|
||||||
# {
|
"/etc/machine-id"
|
||||||
# file = "/etc/nix/id_rsa";
|
|
||||||
# parentDirectory = {
|
|
||||||
# mode = "u=rwx,g=,o=";
|
|
||||||
# };
|
|
||||||
# }
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user