mirror of
https://git.gay/xqtc/nixos-config
synced 2024-11-22 21:00:32 +01:00
nix fmt; justfile adjustments
This commit is contained in:
parent
692e3f5ccb
commit
b9e4385f0c
|
@ -1,5 +1,9 @@
|
||||||
{config, lib, pkgs, ...}:
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.yazi = {
|
programs.yazi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableNushellIntegration = true;
|
enableNushellIntegration = true;
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
{ config, lib, pkgs, ... }: {
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
#
|
#
|
||||||
# BACKUP
|
# BACKUP
|
||||||
# Check via nix-shell -p borgbackup --run "borg info --rsh 'ssh -p 23 -i /home/moe/.ssh/storagebox_nextcloud_data' u409248-sub1@u409248-sub1.your-storagebox.de:nextcloud_data_backups"
|
# Check via nix-shell -p borgbackup --run "borg info --rsh 'ssh -p 23 -i /home/moe/.ssh/storagebox_nextcloud_data' u409248-sub1@u409248-sub1.your-storagebox.de:nextcloud_data_backups"
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
{config, lib, inputs, ...}:
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
services.paperless = {
|
services.paperless = {
|
||||||
enable = true;
|
enable = true;
|
||||||
passwordFile = "/etc/paperless_sc";
|
passwordFile = "/etc/paperless_sc";
|
||||||
|
|
13
justfile
13
justfile
|
@ -11,9 +11,16 @@ rebuild:
|
||||||
nh os switch . -- -vv --impure -j 4;
|
nh os switch . -- -vv --impure -j 4;
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
nh os switch . -- -vv --impure -j 4;
|
nh os switch . -- -vv;
|
||||||
|
|
||||||
|
|
||||||
beleth:
|
beleth:
|
||||||
nixos-rebuild switch --flake '.#beleth' --build-host {{beleth-host}} --target-host {{beleth-host}}
|
#!/usr/bin/env bash
|
||||||
ssh {{beleth-user-host}} "cd; cd nixos-config; git pull; cd; sh build_website.sh"
|
arch=$(nix-instantiate --eval -E 'builtins.currentSystem')
|
||||||
|
arch_sanitized=$(echo $arch | sed 's/^"//;s/"$//')
|
||||||
|
if [ $arch_sanitized == "x86_64-linux" ]; then
|
||||||
|
nixos-rebuild switch --flake '.#beleth' --build-host {{beleth-host}} --target-host {{beleth-host}};
|
||||||
|
ssh {{beleth-user-host}} "cd; cd nixos-config; git pull; cd; sh build_website.sh";
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
@echo "Host arch needs to be 'x86_64-linux'! Aborting...";
|
||||||
|
|
Loading…
Reference in a new issue