55 current 2025-10-07 21:40:00 25.05.20251001.5b5be50 6.12.49 *
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# flake for blakes nixos config
|
# flake for blakes nixos config
|
||||||
# define new devices in outputs
|
# define new devices in outputs
|
||||||
# generation: 54 current 2025-10-07 21:38:22 25.05.20251001.5b5be50 6.12.49 *
|
# generation: 55 current 2025-10-07 21:40:00 25.05.20251001.5b5be50 6.12.49 *
|
||||||
{
|
{
|
||||||
description = "blakes nix config";
|
description = "blakes nix config";
|
||||||
inputs = {
|
inputs = {
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ in
|
|||||||
ROCKET_ADDRESS = "0.0.0.0";
|
ROCKET_ADDRESS = "0.0.0.0";
|
||||||
ROCKET_PORT = cfg.port;
|
ROCKET_PORT = cfg.port;
|
||||||
SIGNUPS_ALLOWED = true;
|
SIGNUPS_ALLOWED = true;
|
||||||
# EXPERIMENTAL_CLIENT_FEATURE_FLAGS=fido2-vault-credentials
|
EXPERIMENTAL_CLIENT_FEATURE_FLAGS=fido2-vault-credentials autofill-overlay autofill-v2 inline-menu-positioning-improvements ssh-key-vault-item;
|
||||||
# The following flags are available:
|
# The following flags are available:
|
||||||
# - "autofill-overlay": Add an overlay menu to form fields for quick access to credentials.
|
# - "autofill-overlay": Add an overlay menu to form fields for quick access to credentials.
|
||||||
# - "autofill-v2": Use the new autofill implementation.
|
# - "autofill-v2": Use the new autofill implementation.
|
||||||
|
|||||||
26
rebuild.sh
26
rebuild.sh
@@ -1,26 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
pushd ~/.nix
|
|
||||||
# nvim flake.nix
|
|
||||||
# alejandra . &>/dev/null
|
|
||||||
# git diff -U0 *.nix
|
|
||||||
|
|
||||||
# add generation comment to flake.nix
|
|
||||||
gen=$(nixos-rebuild list-generations | grep current)
|
|
||||||
if sed -n '3p' flake.nix | grep -q '^# generation:'; then
|
|
||||||
# replace the comment on line 3
|
|
||||||
sed -i "3s/^# generation:.*/# generation: $gen/" flake.nix
|
|
||||||
else
|
|
||||||
# insert comment on line 3
|
|
||||||
sed -i "3i# generation: $gen" flake.nix
|
|
||||||
fi
|
|
||||||
|
|
||||||
git diff -U0 $(find . -name '*.nix')
|
|
||||||
|
|
||||||
echo "nixos rebuilding..."
|
|
||||||
#sudo nixos-rebuild switch --flake ~/.nix#snowbelle &>.nixos-switch-log || (
|
|
||||||
# cat .nixos-switch-log | grep --color error && false)
|
|
||||||
sudo nixos-rebuild switch --flake ~/.nix#snowbelle 2>&1 | tee .nixos-switch-log | grep --color=always -E "error|$" && true
|
|
||||||
|
|
||||||
git commit -am "$gen"
|
|
||||||
popd
|
|
||||||
@@ -62,8 +62,9 @@ alias grep='grep --color=auto'
|
|||||||
alias fgrep='fgrep --color=auto'
|
alias fgrep='fgrep --color=auto'
|
||||||
alias egrep='egrep --color=auto'
|
alias egrep='egrep --color=auto'
|
||||||
|
|
||||||
# packages
|
# scripts
|
||||||
alias rebuild='sh ~/.nix/rebuild.sh'
|
alias rebuild='sh ~/.nix/bin/rebuild.sh'
|
||||||
|
alias perms='sudo sh ~/.nix/bin/perms.sh'
|
||||||
|
|
||||||
# tools
|
# tools
|
||||||
alias v='nvim'
|
alias v='nvim'
|
||||||
|
|||||||
Reference in New Issue
Block a user