fix icons

This commit is contained in:
mjallen18
2024-08-26 16:54:22 -05:00
parent f3c53ca33b
commit c42e4f5a98
20 changed files with 206 additions and 76 deletions

View File

@@ -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 = {
enable = true;
@@ -33,7 +36,7 @@
"$mod, M, exec, wlogout --protocol layer-shell"
"$mod, E, exec, nautilus"
"$mod, V, togglefloating, "
"$mod, D, exec, nwg-drawer -fm nautilus -term kitty"
"$mod, D, exec, ${drawer}"
"$mod, P, pseudo, " # dwindle
"$mod, S, togglesplit, " # dwindle
"$mod SHIFT, Q, exec, hyprlock"
@@ -193,45 +196,27 @@
"float, title:wlogout"
"fullscreen, title:wlogout"
"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 = [
"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, class:^(it.mijorus.smile)$,title:^(Smile)$"
"float, class:^(.blueman-manager-wrapped)$,title:^(Bluetooth Devices)$"
# Picture in picture windows
# "float, class:pavucontrol,title:pavucontrol" # ?????
"float, title:^(Picture-in-Picture)$"
"pin, title:^(Picture-in-Picture)$"
# discord/vesktop
"workspace: name:discord, class:^(vesktop)$"
"float, 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
"float, class:^([Ss]team)$, title:^((?![Ss]team).*)$"
"workspace name:steam silent, class:^([Ss]team)$, title:^([Ss]team)$"
"tile, class:^([Ss]team)$, title:^([Ss]team)$"
"float, class:^(steam)$,title:^(Friends List)$"
# Code
# "pin, class:^(code)$,title:^(Save As)$"
@@ -240,6 +225,26 @@
# Game Tearing??? https://wiki.hyprland.org/Configuring/Tearing/
"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 = {
@@ -268,7 +273,7 @@
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = nwg-look -a
exec-once = nm-applet
exec-once = blueberry
exec-once = blueberry-tray
exec-once = [silent] firefox
exec-once = [silent] vesktop
exec-once = [silent] spotify

View File

@@ -56,7 +56,7 @@
"custom/updates" = {
tooltip = true;
format = { };
interval = 60;
interval = 30;
exec = "sudo waybar-updates";
return-type = "json";
};
@@ -147,17 +147,17 @@
format = "{icon}";
format-icons = {
locked = "󰪛";
unlocked = "";
unlocked = " ";
};
};
"keyboard-state#numlock" = {
numlock = true;
icon-size = 30;
icon-size = 60;
format = "{icon}";
format-icons = {
locked = "󰎣";
unlocked = "";
unlocked = " ";
};
};
};
@@ -302,16 +302,16 @@
#keyboard-state.numlock {
color: @maroon;
background-color: @surface0;
padding: 0.5rem 1rem;
padding: 0.5rem;
margin: 5px 0;
border-radius: 0;
font-size: 50px;
font-size: 10rem;
}
#keyboard-state.capslock {
color: @peach;
background-color: @surface0;
padding: 0.5rem 1rem;
padding: 0.5rem;
margin: 5px 0;
border-radius: 0;
font-size: 18px;

View File

@@ -55,7 +55,7 @@ def check():
if len(updates_dict.keys()) > 0:
data["text"] = ("󰏕")
else:
data["text"] = ("")
data["text"] = (u"\u00A0")
if len(updates_dict.keys()) <= 0:
data["tooltip"] = ("flake inputs up to date")
else:

View File

@@ -56,6 +56,28 @@ WWO_CODE = {
"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 = {
"Unknown": "",
"Cloudy": "☁️",

View File

@@ -21,6 +21,8 @@ in
dbus.enable = true;
ddccontrol.enable = true;
blueman.enable = true;
};
programs.hyprland = {

View File

@@ -15,7 +15,6 @@ in
environment.systemPackages = with pkgs; [
adwaita-icon-theme
apple-cursor
blueberry
catppuccin
catppuccin-gtk
catppuccin-qt5ct
@@ -34,6 +33,7 @@ in
meson
nautilus
networkmanagerapplet
nm-tray
nwg-drawer
nwg-look
pamixer

View File

@@ -13,8 +13,13 @@ let
accents = [ gtkThemeAccent ];
variant = gtkThemeVariant;
};
iconTheme = "Colloid-dark"; # Colloid, Colloid-light, Colloid-dark
iconThemePkg = pkgs.colloid-icon-theme;
iconThemeColor = "dark"; # "" "light" "dark"
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
{
imports = [
@@ -140,6 +145,7 @@ in
XDG_CONFIG_HOME = "\${HOME}/.config";
#XDG_BIN_HOME = "\${HOME}/.local/bin";
XDG_DATA_HOME = "\${HOME}/.local/share";
ICON_THEME = iconTheme;
};
home.pointerCursor = {
@@ -168,13 +174,11 @@ in
};
gtk3.extraConfig = {
# gtk-application-prefer-dark-theme = true;
"AdwStyleManager:color-scheme" = "ADW_COLOR_SCHEME_PREFER_DARK";
gtk-application-prefer-dark-theme = true;
};
gtk4.extraConfig = {
# gtk-application-prefer-dark-theme = true;
"AdwStyleManager:color-scheme" = "ADW_COLOR_SCHEME_PREFER_DARK";
gtk-application-prefer-dark-theme = true;
};
};

View File

@@ -18,6 +18,8 @@
jellyseerr.enable = true;
manyfold.enable = true;
mariadb = {
enable = true;
environmentFiles = [

View File

@@ -188,7 +188,6 @@ in
"jallen-nas"
"docker"
"podman"
config.services.redis.servers.nextcloud.user
]; # Enable sudo for the user.
hashedPasswordFile = passwordFile;
};

View File

@@ -17,14 +17,15 @@
group = "colord";
mode = "u=rwx,g=rx,o=";
}
{
directory = "/etc/nix";
user = "root";
group = "root";
mode = "u=rwx,g=rx,o=rx";
}
];
files = [
{
file = "/etc/nix/id_rsa";
parentDirectory = {
mode = "u=rwx,g=,o=";
};
}
"/etc/machine-id"
];
};
}

View File

@@ -116,7 +116,7 @@ in
port = 6379;
};
nextcloud = {
manyfold = {
enable = true;
port = 6380;
# user = "911";#"${config.users.users.nix-apps.name}:${config.users.groups.jallen-nas.name}";

View File

@@ -24,13 +24,17 @@
};
sops.secrets."jallen-nas/nextcloud/dbpassword" = {
restartUnits = [ "container@nextcloud.service" ];
restartUnits = [ "podman-nextcloud.service" ];
};
sops.secrets."jallen-nas/nextcloud/adminpassword" = {
restartUnits = [ "container@nextcloud.service" ];
restartUnits = [ "podman-nextcloud.service" ];
};
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 = ''

View 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 ];
};
};
}

View 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";
};
};
}

View File

@@ -10,15 +10,22 @@ in
virtualisation.oci-containers.containers."${cfg.name}" = {
autoStart = cfg.autoStart;
image = cfg.image;
extraOptions = [ "--device=nvidia.com/gpu=0" ];
ports = [
"${cfg.httpPort}:3000"
"${cfg.httpsPort}:3001"
];
volumes = [ "${cfg.configPath}:/config" ];
volumes = [
"${cfg.configPath}:/config"
"${cfg.dataPath}:/data"
];
environment = {
PUID = cfg.puid;
PGID = cfg.pgid;
TZ = cfg.timeZone;
TITLE = "orca-slicer";
DRINODE = "/dev/dri/renderD128";
NO_DECOR = "1";
};
};
};

View File

@@ -34,6 +34,11 @@ with lib;
default = "/media/nas/ssd/ssd_app_data/orca-slicer";
};
dataPath = mkOption {
type = types.str;
default = "/media/nas/main/3d_printer";
};
puid = mkOption {
type = types.str;
default = "911";

View File

@@ -10,6 +10,7 @@
./apps/jackett
./apps/jellyfin
./apps/jellyseerr
./apps/manyfold
./apps/mariadb
./apps/mealie
./apps/nextcloud

View File

@@ -12,6 +12,8 @@ jallen-nas:
dbpassword: ENC[AES256_GCM,data:Xu92h2psR4jAJDM=,iv:UsJD1zq9Uy0Exxk58nkyPGyI8m2BOuvr2DK843h5pSk=,tag:k4MvHT8BoahCf9ZxQw8ovA==,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]
manyfold:
secretkeybase: ENC[AES256_GCM,data:b+fgTrtnZcp34DOQ0dtKc6bX6/dm9j0o3QJr,iv:e4hOwgTFCXVokGqhwKsYHt5IQgtaKcMmEqvDoMly5aI=,tag:E8gFiOuozA4T1mmcgXfbDg==,type:str]
desktop:
matt_password: ENC[AES256_GCM,data:z/Jjzr+/PREpNEQsAVl4soeKAwW3sdteIqjhZT2txQDiR0FvGvEBoE/aYCM9NS7XSCgTeTuOqgBGfq4xDLc5/ZBAl7KoGHmKIQ==,iv:qVONkw8PDI2ydqybqGIU2XFq4+qC1BeXnfwxbxbWBww=,tag:eYOD2EoBn9XMiYOaBDFlRw==,type:str]
sops:
@@ -47,8 +49,8 @@ sops:
UGhsN2N0Mjl3UEJvUVlGRlJiN05WaUkKW37lU4G4CLTo6JoHC2OyhKsG/FuO+BiN
pzlVJwzRnmAqwklRbc6RMbQLl2EQrp6KQcgYsUxCMH9OQ/9WJ98dxQ==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2024-08-23T16:35:44Z"
mac: ENC[AES256_GCM,data:gVu0zOwEB/Mup8fXdlFxg8qRMHULMmQeDAsoFw8dlZpFe2IOAHOdemiV1T4oVhhZ78Or+c4PHO0a0M1piscLoHeAVnwPURe5t8tu+8BlwmKRu0+B618ekMXnDs8OYeNvRkA0DcsBr7lF08dbVSLdjfOqrT72XIuCm8XWnPnLPyE=,iv:MoThEq02i+G4BFbHzi6B2QgF7o0TlX3Ew1pB9SUaBRc=,tag:11/5WaAfx9731mo07Vi/ZQ==,type:str]
lastmodified: "2024-08-26T14:10:01Z"
mac: ENC[AES256_GCM,data:vmu42Qg97HenH7qP3WfwvQGb0yPf4/ViIlFQDig1t1LRenIveY4ZI6WutdM7QQ32FEcqBjuBa0m+K3YYYOmvRqxjWrqgD4Zx9vKKhoAFgYNlLUDahzyuA/o6PTM0MxFA1LWAO7Qu37/DxWuKJ41blhCsiYITlpjrQAzRWagp9r8=,iv:XTxCuBhOY8q5ZiXDL2Qf8149K5xJGs5qFDxBvA6057o=,tag:FNeQfNrHKh45b+K16SFrxw==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.9.0

View File

@@ -1,9 +1,4 @@
{
lib,
pkgs,
config,
...
}:
{ lib, config, ... }:
with lib;
let
cfg = config.share.gaming;
@@ -34,7 +29,12 @@ in
"--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 = {

View File

@@ -1,12 +1,4 @@
{
pkgs,
lib,
LT,
config,
utils,
inputs,
...
}@args:
{ ... }@args:
{
# 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.
@@ -33,12 +25,7 @@
}
];
files = [
# {
# file = "/etc/nix/id_rsa";
# parentDirectory = {
# mode = "u=rwx,g=,o=";
# };
# }
"/etc/machine-id"
];
};
}