Commit for generation 198
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
@@ -14,7 +14,7 @@
|
||||
networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
||||
hostName = "glasshouse";
|
||||
hosts = {
|
||||
"192.168.1.163" = [ "glasshouse.info" ];
|
||||
"192.168.1.163" = [ "glasshaus" ];
|
||||
};
|
||||
firewall = {
|
||||
enable = true;
|
||||
@@ -26,6 +26,7 @@
|
||||
enable = true;
|
||||
libraries = with pkgs; [
|
||||
stdenv.cc.cc
|
||||
ffmpeg-full
|
||||
];
|
||||
};
|
||||
|
||||
@@ -95,7 +96,9 @@ pagedmov ALL=(ALL) NOPASSWD: /run/current-system/sw/bin/nixos-rebuild
|
||||
pyright
|
||||
protontricks
|
||||
protonmail-bridge
|
||||
nix-index
|
||||
playerctl
|
||||
tree
|
||||
pavucontrol
|
||||
pamixer
|
||||
p7zip
|
||||
@@ -127,6 +130,7 @@ pagedmov ALL=(ALL) NOPASSWD: /run/current-system/sw/bin/nixos-rebuild
|
||||
libclang
|
||||
cava
|
||||
quintom-cursor-theme
|
||||
nixos-option
|
||||
];
|
||||
|
||||
|
||||
@@ -138,6 +142,15 @@ pagedmov ALL=(ALL) NOPASSWD: /run/current-system/sw/bin/nixos-rebuild
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
services.foundryvtt = {
|
||||
enable = true;
|
||||
hostName = "wumbodnd";
|
||||
package = inputs.foundryvtt.packages.${pkgs.system}.foundryvtt_12;
|
||||
minifyStaticFiles = true;
|
||||
proxyPort = 443;
|
||||
proxySSL = false;
|
||||
upnp = false;
|
||||
};
|
||||
|
||||
system.stateVersion = "24.05"; # Did you read the comment?
|
||||
|
||||
|
||||
1
glasshouse-desktop/derivations/nix-autobahn
Submodule
1
glasshouse-desktop/derivations/nix-autobahn
Submodule
Submodule glasshouse-desktop/derivations/nix-autobahn added at 9122088c5d
1
glasshouse-desktop/derivations/nix-patchtools
Submodule
1
glasshouse-desktop/derivations/nix-patchtools
Submodule
Submodule glasshouse-desktop/derivations/nix-patchtools added at 6cc6fa4e0d
@@ -1,4 +1,4 @@
|
||||
{ config, pkgs, nvim, toilet, ... }:
|
||||
{ config, pkgs, nvim, toilet, nix-autobahn, ... }:
|
||||
|
||||
{
|
||||
# Home Manager needs a bit of information about you and the paths it should
|
||||
@@ -61,6 +61,7 @@
|
||||
libreoffice
|
||||
nvim
|
||||
toilet
|
||||
nix-autobahn
|
||||
];
|
||||
|
||||
pointerCursor = {
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
STARSHIP_CONFIG = /home/pagedmov/.config/starship/starship.toml;
|
||||
FZF_DEFAULT_COMMAND = "find $HOME \( -path \"$HOME/.steam\" -o -path \"$HOME/.mozilla\" -o -path \"$HOME/go\" \) -prune -o -type f -print";
|
||||
GIT_TOKEN = "$(cat supersecret/git-token)";
|
||||
PROMPT_COMMAND = "if [[ $? != 0 ]]; then sounds_enabled && (aplay ~/sound/sys/error.wav 2> /dev/null &); fi";
|
||||
PROMPT_COMMAND = "if [[ $? != 0 ]]; then s_check && (aplay ~/sound/sys/error.wav 2> /dev/null &); fi";
|
||||
};
|
||||
|
||||
shellAliases = {
|
||||
@@ -50,7 +50,6 @@
|
||||
nixconf = "nvim $HOME/sysflakes/glasshouse-desktop/configuration.nix";
|
||||
viflake = "nvim flake.nix";
|
||||
nvimcfg = "ranger $HOME/sysflakes/glasshouse-desktop/dotfiles/packages/nixvim/";
|
||||
nix = "nix-beep";
|
||||
};
|
||||
|
||||
initExtraFirst = ''
|
||||
@@ -65,6 +64,7 @@ if [[ $- != *i* ]]; then
|
||||
return
|
||||
fi
|
||||
|
||||
|
||||
typeset -g comppath="$HOME/.cache"
|
||||
typeset -g compfile="$comppath/.zcompdump"
|
||||
|
||||
@@ -74,7 +74,6 @@ else
|
||||
mkdir -p "$comppath"
|
||||
fi
|
||||
|
||||
sounds_enabled() {[ "$SOUNDS_ENABLED" -eq "1" ]}
|
||||
|
||||
|
||||
preexec() {
|
||||
@@ -91,6 +90,8 @@ preexec() {
|
||||
echo "$cmd_count" > "$cmdcounter"
|
||||
}
|
||||
|
||||
s_check() { [ $SOUNDS_ENABLED -eq 1 ] }
|
||||
|
||||
snd_restart() {
|
||||
echo -n "Restarting wireplumber service... "
|
||||
systemctl --user restart wireplumber; code1=$? && echo "SUCCESS" || echo "FAILED"
|
||||
@@ -127,7 +128,7 @@ wiki_update() {
|
||||
# Functions
|
||||
ls() {
|
||||
command ls --group-directories-first --color=always -F1 "$@" | sort -f -k1
|
||||
sounds_enabled && (aplay ~/sound/sys/ls.wav > /dev/null 2>&1 &)
|
||||
s_check && (aplay ~/sound/sys/ls.wav > /dev/null 2>&1 &)
|
||||
}
|
||||
|
||||
# cd and ls after
|
||||
@@ -136,7 +137,7 @@ cd() {
|
||||
ls "$@"
|
||||
builtin cd "$@"
|
||||
export SOUNDS_ENABLED=1
|
||||
sounds_enabled && (aplay ~/sound/sys/cd.wav > /dev/null 2>&1 &)
|
||||
s_check && (aplay ~/sound/sys/cd.wav > /dev/null 2>&1 &)
|
||||
}
|
||||
src() {
|
||||
autoload -U zrecompile
|
||||
@@ -204,34 +205,25 @@ safe_rm() {
|
||||
done
|
||||
}
|
||||
|
||||
nix-beep() {
|
||||
sounds_enabled && (aplay ~/sound/sys/nixswitch-start.wav > /dev/null 2>&1 &)
|
||||
nix "$@"
|
||||
if [ "$?" -eq "0" ]; then
|
||||
sounds_enabled && (aplay ~/sound/sys/update.wav > /dev/null 2>&1 &)
|
||||
else
|
||||
sounds_enabled && (aplay ~/sound/sys/error.wav > /dev/null 2>&1 &)
|
||||
fi
|
||||
}
|
||||
|
||||
nixswitch() {
|
||||
sounds_enabled && (aplay ~/sound/sys/nixswitch-start.wav > /dev/null 2>&1 &)
|
||||
s_check && (aplay ~/sound/sys/nixswitch-start.wav > /dev/null 2>&1 &)
|
||||
builtin cd "$HOME/sysflakes"
|
||||
nix flake update
|
||||
|
||||
gen=$(readlink /nix/var/nix/profiles/system | sed 's/.*system-\([0-9]*\)-link/\1/')
|
||||
gen=$((gen + 1))
|
||||
|
||||
if git diff --cached --quiet ; then
|
||||
|
||||
git diff --cached --quiet
|
||||
if [ $? -eq 1 ]; then
|
||||
git add .
|
||||
git commit -m "Commit for generation $gen"
|
||||
git push
|
||||
fi
|
||||
sudo nixos-rebuild switch --flake "$HOME/sysflakes#glasshouse"
|
||||
if [ $? -eq 0 ]; then
|
||||
sounds_enabled && (aplay ~/sound/sys/update.wav > /dev/null 2>&1 &)
|
||||
s_check && (aplay ~/sound/sys/update.wav > /dev/null 2>&1 &)
|
||||
else
|
||||
sounds_enabled && (aplay ~/sound/sys/error.wav > /dev/null 2>&1 &)
|
||||
s_check && (aplay ~/sound/sys/error.wav > /dev/null 2>&1 &)
|
||||
fi
|
||||
builtin cd $OLDPWD
|
||||
}
|
||||
@@ -294,7 +286,7 @@ fi
|
||||
source ~/.zkbd
|
||||
~/coding/scripts/splash.sh
|
||||
eval "$(starship init zsh)"
|
||||
(aplay ~/sound/sys/sh-source.wav > /dev/null 2>&1 &)
|
||||
s_check && (aplay ~/sound/sys/sh-source.wav > /dev/null 2>&1 &)
|
||||
'';
|
||||
|
||||
# Options
|
||||
|
||||
Reference in New Issue
Block a user