diff --git a/README.org b/README.org index 3474a1e..e62bbee 100644 --- a/README.org +++ b/README.org @@ -329,6 +329,11 @@ alacritty libsForQt5.bismuth libnotify rofi-wayland +waybar +eww +wlrctl +hyprpaper +swaylock-fancy aha glxinfo vulkan-tools @@ -1035,10 +1040,30 @@ Dalinar's config is of course server oriented. # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ - <> + vim + wget + yt-dlp + bat + ripgrep + ffmpeg-full + rsync + dutree + tmux + git + samba + exa + jq + fd + bc + sysstat + procs + btop + htop + unzip + #blesh ]; - <> + virtualisation.docker.enable = true; # Some programs need SUID wrappers, can be configured further or are # started in user sessions. @@ -1058,20 +1083,43 @@ Dalinar's config is of course server oriented. lidSwitchExternalPower = "ignore"; }; + services.monero = { + enable = true; + dataDir = "/storage/monero"; + }; + # DDCLIENT services.ddclient = { enable = true; - domains = [ - "nc.cochrun.xyz" - "home.cochrun.xyz" - "mail.cochrun.xyz" - "jelly.cochrun.xyz" - ]; - passwordFile = "/etc/nixos/ddclientp"; - protocol = "namecheap"; - use = "web, web=dynamicdns.park-your-domain.com/getip"; - server = "dynamicdns.park-your-domain.com"; - username = "cochrun.xyz"; + configFile = /etc/nixos/ddclient.conf; + #domains = [ + # "nc.cochrun.xyz" + # "home.cochrun.xyz" + # "mail.cochrun.xyz" + # "jelly.cochrun.xyz" + #]; + #passwordFile = "/etc/nixos/ddclientp"; + #protocol = "namecheap"; + #use = "web, web=dynamicdns.park-your-domain.com/getip"; + #server = "dynamicdns.park-your-domain.com"; + #username = "cochrun.xyz"; + #extraConfig = '' + #use=web, web=dynamicdns.park-your-domain.com/getip + #protocol=namecheap + #server=dynamicdns.park-your-domain.com + #login=livingseedco.shop + #password=e157e42337fc4ccd850d0a3904733f46 + #@ + + #use=web, web=dynamicdns.park-your-domain.com/getip + #protocol=namecheap + #server=dynamicdns.park-your-domain.com + #login=cochrun.xyz + #password=94602c373f9f4743838bf567def2eb72 + #@,nc.cochrun.xyz,home.cochrun.xyz,mail.cochrun.xyz,jelly.cochrun.xyz + + + #''; }; # CADDY @@ -1082,11 +1130,26 @@ Dalinar's config is of course server oriented. reverse_proxy localhost:8123 ''; }; + virtualHosts = { + "jelly.cochrun.xyz".extraConfig = '' + reverse_proxy localhost:8096 + ''; + }; virtualHosts = { "livingseedco.shop".extraConfig = '' reverse_proxy localhost:8282 ''; }; + virtualHosts = { + "sonarr.cochrun.xyz".extraConfig = '' + reverse_proxy localhost:7879 + ''; + }; + virtualHosts = { + "192.168.1.2".extraConfig = '' + reverse_proxy localhost:9091 + ''; + }; virtualHosts = { "nc.cochrun.xyz".extraConfig = '' reverse_proxy localhost:8080 @@ -1175,7 +1238,7 @@ Dalinar's hardware I also use home-manager for managing dotfiles. This means that everything is contained in this folder and then tangled out to their respective places when rebuilding the system. #+begin_src nix :tangle user/home.nix -{ config, pkgs, ... }: +{ config, lib, pkgs, ... }: { # Home Manager needs a bit of information about you and the @@ -1418,7 +1481,7 @@ I also use home-manager for managing dotfiles. This means that everything is con services.nextcloud-client = { enable = true; - # startInBackground = true; + startInBackground = true; }; services.syncthing.enable = true; @@ -1689,7 +1752,7 @@ I also use home-manager for managing dotfiles. This means that everything is con }; Install = { - WantedBy = ["multi-user.target"]; + WantedBy = ["graphical-session.target"]; }; }; @@ -1706,6 +1769,16 @@ I also use home-manager for managing dotfiles. This means that everything is con WantedBy = ["default.target"]; }; }; + + nextlcoud-client = { + Unit = { + Description = "Nextcloud Client"; + After = [ "plasma-workspace.target" ]; + # PartOf = [ "plasma-workspace.target" ]; + }; + + # Install = { WantedBy = [ "plasma-workspace.target" ]; }; + }; }; } diff --git a/eww/eww.yuck b/eww/eww.yuck index 50483ff..aac2b39 100644 --- a/eww/eww.yuck +++ b/eww/eww.yuck @@ -14,10 +14,10 @@ :initial "getvol" 'tail -F /tmp/vol') -(defwidget volslider [] - (box :orientation "horizontal" - :halign "center" - volume - (scale :value volume - :min 0 - :max 100))) +;; (defwidget volslider [] +;; (box :orientation "horizontal" +;; :halign "center" +;; volume +;; (scale :value volume +;; :min 0 +;; :max 100))) diff --git a/rofi/launchers-git/launcher.sh b/rofi/launchers-git/launcher.sh index 839f4be..89e7d67 100755 --- a/rofi/launchers-git/launcher.sh +++ b/rofi/launchers-git/launcher.sh @@ -12,7 +12,7 @@ else #echo "this is not hidpi" fi -rofi -no-lazy-grab -show combi -combi-modi "drun,run" -theme launchers-git/"$style".rasi +rofi -no-lazy-grab -modi combi -show combi -combi-modi "drun,run" -theme launchers-git/"$style".rasi # $@ & diff --git a/scripts/emacslof b/scripts/emacslof index a71ed14..86fa122 100755 --- a/scripts/emacslof +++ b/scripts/emacslof @@ -2,11 +2,12 @@ # Check to see if an emacsclient is running if [ $(pgrep -c emacsclient) -gt 0 ]; then + echo hi - if [ $XDG_SESSION_TYPE = "x11" ]; then + if [ "$XDG_SESSION_TYPE" == "x11" ]; then #X11 emacsrg=$(wmctrl -lx | rg emacs.Emacs | rg -v org-agenda | awk '{print $1}') - # echo $emacsrg + echo $emacsrg if [ -z $emacsrg ]; then exec emacsclient -c & @@ -16,15 +17,15 @@ if [ $(pgrep -c emacsclient) -gt 0 ]; then exit fi else - if [ $KDE_FULL_SESSION = "true" ]; then + if [ "$KDE_FULL_SESSION" == "true" ]; then exec /home/chris/bin/ww -fa Emacs -c emacsclient exit else # WAYLAND - emacsrg=$(wlrctl window list | rg -v 'emacs:\sorg-agenda' | rg 'emacs:') + emacsrg=$(wlrctl window list | rg -v 'Emacs:\sorg-agenda' | rg 'Emacs:') emacswin=$(echo $emacsrg | sed 's/.*\: //') - # echo $emacswin + echo $emacswin exec wlrctl toplevel focus title:"$emacswin" exit diff --git a/scripts/fflof b/scripts/fflof index 17a7959..3ce90f5 100755 --- a/scripts/fflof +++ b/scripts/fflof @@ -6,7 +6,7 @@ echo $MOZ_ENABLE_WAYLAND if [ $(pgrep -c firefox) -gt 0 ]; then echo "ff running" - if [ $XDG_SESSION_TYPE = "x11" ]; then + if [ "$XDG_SESSION_TYPE" = "x11" ]; then #X11 ffrg=$(wmctrl -lx | rg firefox | awk '{print $1}') # echo $emacsrg @@ -19,7 +19,7 @@ if [ $(pgrep -c firefox) -gt 0 ]; then exit fi else - if [ $KDE_FULL_SESSION = "true" ]; then + if [ "$KDE_FULL_SESSION" = "true" ]; then echo "KDE" exec /home/chris/bin/ww -f firefox -c firefox exit @@ -30,7 +30,7 @@ if [ $(pgrep -c firefox) -gt 0 ]; then ffwin=$(echo $ffrg | sed 's/.*\: //') # echo $ffwin - exec wlrctl toplevel focus title:"$ffwin" + exec wlrctl toplevel focus firefox exit fi fi diff --git a/scripts/startup.sh b/scripts/startup.sh index b566681..f29f783 100755 --- a/scripts/startup.sh +++ b/scripts/startup.sh @@ -2,9 +2,9 @@ waybar & rbw-agent & -killall jellyfin-mpv-shim && jellyfin-mpv-shim & +systemctl --user restart jellyfin-mpv-shim.service & +systemctl --user restart nextcloud-client.service & +systemctl --user restart emacs.service & /usr/lib/kdeconnectd & -emacs --daemon & nm-applet & -nextcloud --background & greenclip daemon & diff --git a/system/kaladin/configuration.nix b/system/kaladin/configuration.nix index b4ba2fa..36c441b 100644 --- a/system/kaladin/configuration.nix +++ b/system/kaladin/configuration.nix @@ -229,6 +229,11 @@ libsForQt5.bismuth libnotify rofi-wayland + waybar + eww + wlrctl + hyprpaper + swaylock-fancy aha glxinfo vulkan-tools diff --git a/system/syl/configuration.nix b/system/syl/configuration.nix index 210881a..5af282c 100644 --- a/system/syl/configuration.nix +++ b/system/syl/configuration.nix @@ -242,6 +242,11 @@ libsForQt5.bismuth libnotify rofi-wayland + waybar + eww + wlrctl + hyprpaper + swaylock-fancy aha glxinfo vulkan-tools diff --git a/user/home.nix b/user/home.nix index 89c5639..c8bdeac 100644 --- a/user/home.nix +++ b/user/home.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, lib, pkgs, ... }: { # Home Manager needs a bit of information about you and the @@ -241,7 +241,7 @@ services.nextcloud-client = { enable = true; - # startInBackground = true; + startInBackground = true; }; services.syncthing.enable = true; @@ -512,7 +512,7 @@ }; Install = { - WantedBy = ["multi-user.target"]; + WantedBy = ["graphical-session.target"]; }; }; @@ -529,6 +529,16 @@ WantedBy = ["default.target"]; }; }; + + nextlcoud-client = { + Unit = { + Description = "Nextcloud Client"; + After = [ "plasma-workspace.target" ]; + # PartOf = [ "plasma-workspace.target" ]; + }; + + # Install = { WantedBy = [ "plasma-workspace.target" ]; }; + }; }; } diff --git a/waybar/config b/waybar/config index aef8908..25b26b5 100644 --- a/waybar/config +++ b/waybar/config @@ -4,7 +4,7 @@ "height": 30, // Waybar height (to be removed for auto height) // "width": 1280, // Waybar width // Choose the order of the modules "custom/wintitle", - "modules-left": ["sway/workspaces", "custom/wintitle", "river/tags", "sway/mode", "sway/window"], + "modules-left": ["sway/workspaces", "custom/wintitle", "hyprland/window", "river/tags", "sway/mode", "sway/window"], "modules-center": ["clock"], "modules-right": ["pulseaudio", "network", "memory", "cpu", "battery", "battery#bat2", "tray"], "margin-top": 0, @@ -30,6 +30,9 @@ "river/tags": { "num-tags": 8 }, + "hyprland/window": { + "format": "{}" + }, "sway/mode": { "format": " {}" }, @@ -41,7 +44,7 @@ } }, "tray": { - // "icon-size": 21, + "icon-size": 21, "spacing": 10 }, "clock": { @@ -146,7 +149,7 @@ // "default": "🎜" //}, "interval": 1, - "exec": "wintitle" + "exec": "/home/chris/bin/wintitle" }, "wlr/taskbar": { "format": "{icon}",