added custom.nix, libreoffice, nixbitcoin-Lockpackages,removed onlyoffice service
This commit is contained in:
parent
f0237606bc
commit
f94c079667
@ -176,6 +176,7 @@ in
|
||||
gnome.zenity
|
||||
libargon2
|
||||
gnome.gnome-terminal
|
||||
libreoffice-fresh
|
||||
|
||||
];
|
||||
|
||||
|
@ -16,7 +16,11 @@ rm -rf /home/free/Downloads/sovran-pro-flake-update.sh
|
||||
|
||||
#### SCRIPT 2 ####
|
||||
|
||||
/run/current-system/sw/bin/wget "https://git.sovransystems.com/Sovran_Systems/Sovran_SystemsOS/raw/branch/main/file_fixes_and_new_services/add-custom-nix.sh"
|
||||
|
||||
/run/current-system/sw/bin/bash /home/free/Downloads/add-custom-nix.sh
|
||||
|
||||
rm -rf /home/free/Downloads/add-custom.nix.sh
|
||||
|
||||
|
||||
#### REMOVAL OF MAIN SCRIPT ####
|
||||
|
82
file_fixes_and_new_services/add-custom-nix.sh
Normal file
82
file_fixes_and_new_services/add-custom-nix.sh
Normal file
@ -0,0 +1,82 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
function log_console () {
|
||||
echo "`date` :: $1" >> /var/lib/beacons/awesome.log
|
||||
echo $1
|
||||
}
|
||||
|
||||
|
||||
#### CHECK TO SEE IF IT HAS BEEN RUN BEFORE ####
|
||||
|
||||
FILE=/var/lib/beacons/file_fixes_and_new_services/add-custom-nix/completed
|
||||
|
||||
if [ -e $FILE ]; then
|
||||
|
||||
/run/current-system/sw/bin/echo "File Found :), No Need to Run ... Exiting"
|
||||
|
||||
exit 1
|
||||
|
||||
fi
|
||||
|
||||
|
||||
#### CREATE INITIAL TAG ####
|
||||
|
||||
/run/current-system/sw/bin/mkdir -p /var/lib/beacons/file_fixes_and_new_services/add-custom-nix ; touch /var/lib/beacons/file_fixes_and_new_services/add-custom-nix/started
|
||||
|
||||
if [[ $? != 0 ]]; then
|
||||
|
||||
/run/current-system/sw/bin/echo "Could Not Create Initial Tag"
|
||||
|
||||
exit 1
|
||||
|
||||
fi
|
||||
|
||||
|
||||
#### MAIN SCRIPT ####
|
||||
|
||||
/run/current-system/sw/bin/cat > /etc/nixos/custom.nix <<- "EOF"
|
||||
|
||||
{config, pkgs, lib, ...}:
|
||||
|
||||
/*
|
||||
Add custom NixOS modules here.
|
||||
/*
|
||||
let
|
||||
personalization = import ./personalization.nix;
|
||||
|
||||
in
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
*\
|
||||
|
||||
EOF
|
||||
|
||||
|
||||
if [[ $? != 0 ]]; then
|
||||
|
||||
/run/current-system/sw/bin/echo "Could Not Run add-custom-nix"
|
||||
|
||||
exit 1
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
#### CREATE COMPELETE TAG ####
|
||||
|
||||
/run/current-system/sw/bin/touch /var/lib/beacons/file_fixes_and_new_services/add-custom-nix/completed
|
||||
|
||||
if [[ $? != 0 ]]; then
|
||||
|
||||
/run/current-system/sw/bin/echo "Could Not Create Completed Tag"
|
||||
|
||||
exit 1
|
||||
|
||||
fi
|
||||
|
||||
|
||||
exit 0
|
@ -17,6 +17,8 @@
|
||||
|
||||
./hardware-configuration.nix
|
||||
|
||||
./custom.nix
|
||||
|
||||
Sovran_Systems.nixosModules.Sovran_SystemsOS
|
||||
|
||||
];
|
||||
|
@ -72,5 +72,7 @@
|
||||
enable = true;
|
||||
name = "free";
|
||||
};
|
||||
|
||||
nix-bitcoin.useVersionLockedPkgs = true;
|
||||
|
||||
}
|
||||
|
@ -8,7 +8,6 @@
|
||||
./coturn.nix
|
||||
./bitcoinecosystem.nix
|
||||
./vaultwarden.nix
|
||||
./onlyoffice.nix
|
||||
./Sovran_SystemsOS_File_Fixes_And_New_Services.nix
|
||||
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user