general updates

This commit is contained in:
Chris Cochrun 2022-09-04 10:52:38 -05:00
parent 19d514e405
commit 1776b30851
10 changed files with 138 additions and 41 deletions

View file

@ -329,6 +329,11 @@ alacritty
libsForQt5.bismuth libsForQt5.bismuth
libnotify libnotify
rofi-wayland rofi-wayland
waybar
eww
wlrctl
hyprpaper
swaylock-fancy
aha aha
glxinfo glxinfo
vulkan-tools vulkan-tools
@ -1035,10 +1040,30 @@ Dalinar's config is of course server oriented.
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
<<base-packages>> vim
wget
yt-dlp
bat
ripgrep
ffmpeg-full
rsync
dutree
tmux
git
samba
exa
jq
fd
bc
sysstat
procs
btop
htop
unzip
#blesh
]; ];
<<containers>> virtualisation.docker.enable = true;
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
# started in user sessions. # started in user sessions.
@ -1058,20 +1083,43 @@ Dalinar's config is of course server oriented.
lidSwitchExternalPower = "ignore"; lidSwitchExternalPower = "ignore";
}; };
services.monero = {
enable = true;
dataDir = "/storage/monero";
};
# DDCLIENT # DDCLIENT
services.ddclient = { services.ddclient = {
enable = true; enable = true;
domains = [ configFile = /etc/nixos/ddclient.conf;
"nc.cochrun.xyz" #domains = [
"home.cochrun.xyz" # "nc.cochrun.xyz"
"mail.cochrun.xyz" # "home.cochrun.xyz"
"jelly.cochrun.xyz" # "mail.cochrun.xyz"
]; # "jelly.cochrun.xyz"
passwordFile = "/etc/nixos/ddclientp"; #];
protocol = "namecheap"; #passwordFile = "/etc/nixos/ddclientp";
use = "web, web=dynamicdns.park-your-domain.com/getip"; #protocol = "namecheap";
server = "dynamicdns.park-your-domain.com"; #use = "web, web=dynamicdns.park-your-domain.com/getip";
username = "cochrun.xyz"; #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 # CADDY
@ -1082,11 +1130,26 @@ Dalinar's config is of course server oriented.
reverse_proxy localhost:8123 reverse_proxy localhost:8123
''; '';
}; };
virtualHosts = {
"jelly.cochrun.xyz".extraConfig = ''
reverse_proxy localhost:8096
'';
};
virtualHosts = { virtualHosts = {
"livingseedco.shop".extraConfig = '' "livingseedco.shop".extraConfig = ''
reverse_proxy localhost:8282 reverse_proxy localhost:8282
''; '';
}; };
virtualHosts = {
"sonarr.cochrun.xyz".extraConfig = ''
reverse_proxy localhost:7879
'';
};
virtualHosts = {
"192.168.1.2".extraConfig = ''
reverse_proxy localhost:9091
'';
};
virtualHosts = { virtualHosts = {
"nc.cochrun.xyz".extraConfig = '' "nc.cochrun.xyz".extraConfig = ''
reverse_proxy localhost:8080 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. 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 #+begin_src nix :tangle user/home.nix
{ config, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
# Home Manager needs a bit of information about you and the # 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 = { services.nextcloud-client = {
enable = true; enable = true;
# startInBackground = true; startInBackground = true;
}; };
services.syncthing.enable = true; services.syncthing.enable = true;
@ -1689,7 +1752,7 @@ I also use home-manager for managing dotfiles. This means that everything is con
}; };
Install = { 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"]; WantedBy = ["default.target"];
}; };
}; };
nextlcoud-client = {
Unit = {
Description = "Nextcloud Client";
After = [ "plasma-workspace.target" ];
# PartOf = [ "plasma-workspace.target" ];
};
# Install = { WantedBy = [ "plasma-workspace.target" ]; };
};
}; };
} }

View file

@ -14,10 +14,10 @@
:initial "getvol" :initial "getvol"
'tail -F /tmp/vol') 'tail -F /tmp/vol')
(defwidget volslider [] ;; (defwidget volslider []
(box :orientation "horizontal" ;; (box :orientation "horizontal"
:halign "center" ;; :halign "center"
volume ;; volume
(scale :value volume ;; (scale :value volume
:min 0 ;; :min 0
:max 100))) ;; :max 100)))

View file

@ -12,7 +12,7 @@ else
#echo "this is not hidpi" #echo "this is not hidpi"
fi 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
# $@ & # $@ &

View file

@ -2,11 +2,12 @@
# Check to see if an emacsclient is running # Check to see if an emacsclient is running
if [ $(pgrep -c emacsclient) -gt 0 ]; then if [ $(pgrep -c emacsclient) -gt 0 ]; then
echo hi
if [ $XDG_SESSION_TYPE = "x11" ]; then if [ "$XDG_SESSION_TYPE" == "x11" ]; then
#X11 #X11
emacsrg=$(wmctrl -lx | rg emacs.Emacs | rg -v org-agenda | awk '{print $1}') emacsrg=$(wmctrl -lx | rg emacs.Emacs | rg -v org-agenda | awk '{print $1}')
# echo $emacsrg echo $emacsrg
if [ -z $emacsrg ]; then if [ -z $emacsrg ]; then
exec emacsclient -c & exec emacsclient -c &
@ -16,15 +17,15 @@ if [ $(pgrep -c emacsclient) -gt 0 ]; then
exit exit
fi fi
else else
if [ $KDE_FULL_SESSION = "true" ]; then if [ "$KDE_FULL_SESSION" == "true" ]; then
exec /home/chris/bin/ww -fa Emacs -c emacsclient exec /home/chris/bin/ww -fa Emacs -c emacsclient
exit exit
else else
# WAYLAND # 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/.*\: //') emacswin=$(echo $emacsrg | sed 's/.*\: //')
# echo $emacswin echo $emacswin
exec wlrctl toplevel focus title:"$emacswin" exec wlrctl toplevel focus title:"$emacswin"
exit exit

View file

@ -6,7 +6,7 @@ echo $MOZ_ENABLE_WAYLAND
if [ $(pgrep -c firefox) -gt 0 ]; then if [ $(pgrep -c firefox) -gt 0 ]; then
echo "ff running" echo "ff running"
if [ $XDG_SESSION_TYPE = "x11" ]; then if [ "$XDG_SESSION_TYPE" = "x11" ]; then
#X11 #X11
ffrg=$(wmctrl -lx | rg firefox | awk '{print $1}') ffrg=$(wmctrl -lx | rg firefox | awk '{print $1}')
# echo $emacsrg # echo $emacsrg
@ -19,7 +19,7 @@ if [ $(pgrep -c firefox) -gt 0 ]; then
exit exit
fi fi
else else
if [ $KDE_FULL_SESSION = "true" ]; then if [ "$KDE_FULL_SESSION" = "true" ]; then
echo "KDE" echo "KDE"
exec /home/chris/bin/ww -f firefox -c firefox exec /home/chris/bin/ww -f firefox -c firefox
exit exit
@ -30,7 +30,7 @@ if [ $(pgrep -c firefox) -gt 0 ]; then
ffwin=$(echo $ffrg | sed 's/.*\: //') ffwin=$(echo $ffrg | sed 's/.*\: //')
# echo $ffwin # echo $ffwin
exec wlrctl toplevel focus title:"$ffwin" exec wlrctl toplevel focus firefox
exit exit
fi fi
fi fi

View file

@ -2,9 +2,9 @@
waybar & waybar &
rbw-agent & 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 & /usr/lib/kdeconnectd &
emacs --daemon &
nm-applet & nm-applet &
nextcloud --background &
greenclip daemon & greenclip daemon &

View file

@ -229,6 +229,11 @@
libsForQt5.bismuth libsForQt5.bismuth
libnotify libnotify
rofi-wayland rofi-wayland
waybar
eww
wlrctl
hyprpaper
swaylock-fancy
aha aha
glxinfo glxinfo
vulkan-tools vulkan-tools

View file

@ -242,6 +242,11 @@
libsForQt5.bismuth libsForQt5.bismuth
libnotify libnotify
rofi-wayland rofi-wayland
waybar
eww
wlrctl
hyprpaper
swaylock-fancy
aha aha
glxinfo glxinfo
vulkan-tools vulkan-tools

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
# Home Manager needs a bit of information about you and the # Home Manager needs a bit of information about you and the
@ -241,7 +241,7 @@
services.nextcloud-client = { services.nextcloud-client = {
enable = true; enable = true;
# startInBackground = true; startInBackground = true;
}; };
services.syncthing.enable = true; services.syncthing.enable = true;
@ -512,7 +512,7 @@
}; };
Install = { Install = {
WantedBy = ["multi-user.target"]; WantedBy = ["graphical-session.target"];
}; };
}; };
@ -529,6 +529,16 @@
WantedBy = ["default.target"]; WantedBy = ["default.target"];
}; };
}; };
nextlcoud-client = {
Unit = {
Description = "Nextcloud Client";
After = [ "plasma-workspace.target" ];
# PartOf = [ "plasma-workspace.target" ];
};
# Install = { WantedBy = [ "plasma-workspace.target" ]; };
};
}; };
} }

View file

@ -4,7 +4,7 @@
"height": 30, // Waybar height (to be removed for auto height) "height": 30, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width // "width": 1280, // Waybar width
// Choose the order of the modules "custom/wintitle", // 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-center": ["clock"],
"modules-right": ["pulseaudio", "network", "memory", "cpu", "battery", "battery#bat2", "tray"], "modules-right": ["pulseaudio", "network", "memory", "cpu", "battery", "battery#bat2", "tray"],
"margin-top": 0, "margin-top": 0,
@ -30,6 +30,9 @@
"river/tags": { "river/tags": {
"num-tags": 8 "num-tags": 8
}, },
"hyprland/window": {
"format": "{}"
},
"sway/mode": { "sway/mode": {
"format": "<span style=\"italic\"> {}</span>" "format": "<span style=\"italic\"> {}</span>"
}, },
@ -41,7 +44,7 @@
} }
}, },
"tray": { "tray": {
// "icon-size": 21, "icon-size": 21,
"spacing": 10 "spacing": 10
}, },
"clock": { "clock": {
@ -146,7 +149,7 @@
// "default": "🎜" // "default": "🎜"
//}, //},
"interval": 1, "interval": 1,
"exec": "wintitle" "exec": "/home/chris/bin/wintitle"
}, },
"wlr/taskbar": { "wlr/taskbar": {
"format": "{icon}", "format": "{icon}",