Compare commits

...
19 Commits
Author SHA1 Message Date
Rob 7503307bb9 disable spaceboyz backup. Add cockpit 2024-11-19 18:01:22 +00:00
Rob 0e202d4c57 fix bash aliases to start tmux 2024-11-19 10:40:18 +00:00
Rob eff28a6aa9 start tmux with .bashrc 2024-11-19 10:37:22 +00:00
Rob c49dc83d7b add .bashrc 2024-11-19 06:41:25 +00:00
Rob 5f0b583e51 ignore ACME domainhash file 2024-11-19 06:41:03 +00:00
Rob 9c729c3da2 add: tmux. Started via: ~/.bashrc 2024-11-18 12:44:10 +00:00
Rob f4505aa80e add veracrypt executable 2024-11-17 20:35:38 +00:00
Rob 4f526494c3 kläglich gescheiteter versuch SMB mit Windows11 hin zu bekommen. Lasse es dennoch drin 2024-11-17 20:01:33 +00:00
Rob 4f0bbb8d5e enable auto upgrade 2024-11-17 20:00:04 +00:00
Rob 029d11db9c nextcloud: switch to forceSSL 2024-08-01 07:35:56 +00:00
Rob 2f280c40e0 add lego for lets encrypt 2024-08-01 07:15:25 +00:00
Rob 86b085e342 remove gitea service (has not worked at all) 2024-08-01 07:14:31 +00:00
Rob b093d85739 notwendige changes nach upgrade auf nixos 24.05 2024-07-19 19:18:05 +00:00
Rob 2f7e6ebc4d add gitea 2024-06-17 06:41:06 +00:00
Rob b4e82ce3ce add gitea 2024-06-17 06:34:09 +00:00
Rob f5b631e5e2 activate nextcloud logfile 2024-06-17 06:32:01 +00:00
Rob 83a36410e3 add deck and money repo to nextcloud 2024-06-13 13:32:47 +00:00
Rob 4e4796e942 add some root programs 2024-06-05 07:16:25 +00:00
Rob 9b9a0c33c3 add nextcloud with htts via tailscale/acme-LetsEncrypt 2024-06-05 07:06:45 +00:00
10 changed files with 156 additions and 29 deletions

No files matched your search

+1
View File
@@ -1 +1,2 @@
result result
domainhash.txt
+20 -11
View File
@@ -5,6 +5,10 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
system.autoUpgrade.enable = true;
system.autoUpgrade.allowReboot = true;
console.keyMap = "de"; console.keyMap = "de";
imports = imports =
@@ -12,15 +16,22 @@
./hardware-configuration.nix ./hardware-configuration.nix
# meine module # meine module
./modules/cron.nix modules/tmux.nix
./modules/users.nix # in das backup von cloud.boogiedev.net umwandeln: modules/cron.nix
./modules/storage.nix modules/users.nix
./modules/root-programs.nix modules/storage.nix
./modules/smb.nix modules/root-programs.nix
./modules/tailscale.nix modules/smb.nix
./modules/tmux.nix modules/tailscale.nix
# ./modules/minetest-server.nix modules/veracrypt.nix
# ./modules/wifi.nix ## noch kein device gefunden das geht. das kleine dwa-171 geht nicht modules/cockpit.nix
#Server
modules/nextcloud.nix
# modules/minetest-server.nix
#Hardware
# modules/wifi.nix ## noch kein device gefunden das geht. das kleine dwa-171 geht nicht
]; ];
# Use the GRUB 2 boot loader. # Use the GRUB 2 boot loader.
@@ -32,8 +43,6 @@
# boot.loader.grub.device = "/dev/disk/by-label/nixos"; #"/dev/sda"; # or "nodev" for efi only # boot.loader.grub.device = "/dev/disk/by-label/nixos"; #"/dev/sda"; # or "nodev" for efi only
boot.loader.grub.device = "/dev/disk/by-id/ata-TOSHIBA_MK5061GSY_3273P0RAT"; boot.loader.grub.device = "/dev/disk/by-id/ata-TOSHIBA_MK5061GSY_3273P0RAT";
networking.hostName = "bfds"; # Define your hostname. networking.hostName = "bfds"; # Define your hostname.
# Pick only one of the below networking options. # Pick only one of the below networking options.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
+31
View File
@@ -0,0 +1,31 @@
## bash prompt styling
PS1="\[\e[32m\][\u@\h\]]:\[\e[34m\]\w\[\e[0m\]# "
echo "## Mache ssh key verfügbar##"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_bfds_gitea
echo
echo "=============="
echo "## Wechsel zu aktueller NixOS config Verzeichnis ##"
echo "## run: git status"
cd /etc/nixos/
git status
echo
echo "=============="
alias tmuxxx='tmux -f /etc/nixos/dot-files/.tmux.conf new -d -s mainsession'
alias tmuxx='tmux -f /etc/nixos/dot-files/.tmux.conf attach -t mainsession'
### !! if not running inside tmux, ask user to start tmux or create session !!
if [ -z "$TMUX" ]; then
if ! tmux ls &> /dev/null; then
tmuxxx
fi
read -p "tmux starten (tmuxx / tmuxxx)? (j/n): " answer
if [ "$answer" = "j" ] || [ "$answer" = "y" ]; then
tmuxx
fi
fi
### !! if not running inside tmux !!
+4 -4
View File
@@ -1,6 +1,6 @@
set -g default-shell /bin/bash set -g default-shell /run/current-system/sw/bin/bash
set -g default-command /bin/bash set -g default-command bash
set-option -g default-shell /bin/bash set-option -g default-shell /run/current-system/sw/bin/bash
set-window-option -g automatic-rename on set-window-option -g automatic-rename on
@@ -18,7 +18,7 @@ set -g history-limit 3000
set -g status-interval 60 set -g status-interval 60
##set -g status-left '#H#[default]' ##computername augeblendet, weil letzte Zeichen abgeschnitten ##set -g status-left '#H#[default]' ##computername augeblendet, weil letzte Zeichen abgeschnitten
set-option -g status-right-length 200 set-option -g status-right-length 200
set -g status-right 'ƒ #(~/code/lokale-scripte/show-disk-usage.sh) ƒ Akku: #(~/code/lokale-scripte/akku.sh) ƒ %d-%m-%Y ƒ %H:%M:%S' set -g status-right '%Y-%m-%d ƒ %H:%M:%S'
setw -g monitor-activity on setw -g monitor-activity on
set -g visual-activity on set -g visual-activity on
#setw -g mode-keys copy-mode-vi #setw -g mode-keys copy-mode-vi
+17
View File
@@ -0,0 +1,17 @@
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
cockpit # cockpit
];
services.cockpit = {
enable = true;
port = 9090;
settings = {
WebService = {
AllowUnencrypted = true;
};
};
};
}
+44
View File
@@ -0,0 +1,44 @@
{ pkgs, ... }:
{
services.nextcloud = {
package = pkgs.nextcloud29;
enable = true;
hostName = "bfds.taila388c.ts.net";
settings.trusted_domains = [ "bfds" "bfds.local" ];
settings.log_Type = "file";
database.createLocally = true;
config = {
dbtype = "pgsql";
adminpassFile = "/var/lib/nextcloud-pass-files/nc-admin-password";
};
extraApps = {
inherit (pkgs.nextcloud29Packages.apps)
cookbook notes deck;
money = pkgs.fetchNextcloudApp {
#get the hash via: $ nix-prefetch-url --unpack <app zip url>
sha256 = "13lwpq75ihz9lfq383bi86lqvzcir8aqqhf56zs7fsayqh32l2r4";
url = "https://github.com/powerpaul17/nc_money/releases/download/v0.26.6/money.tar.gz";
license = "gpl3";
};
};
extraAppsEnable = true;
https = true;
};
services.nginx.virtualHosts."bfds.taila388c.ts.net" = {
# addSSL = true;
forceSSL = true;
enableACME = true;
};
security.acme = {
acceptTerms = true;
defaults.email = "rw@boogiedev.net";
certs = {
"bfds.taila388c.ts.net".email = "rw@boogiedev.net";
};
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
}
+11 -2
View File
@@ -7,14 +7,23 @@
usbutils usbutils
wget wget
nano nano
git git
tig
mc mc
ncdu ncdu
parted parted
gpart gpart
tmux tmux
hdparm hdparm
unzip
python3 #coding
python3
#network
dig
#lets encrypt
lego
]; ];
} }
+13
View File
@@ -18,6 +18,19 @@
securityType = "user"; securityType = "user";
extraConfig = '' extraConfig = ''
# Server-seitige SMB-Signatur erzwingen
server signing = mandatory
client signing = mandatory
# Aktiviert die Unterstützung für SMB2 und SMB3
server min protocol = SMB2
server max protocol = SMB3
# Erlaubt sichere Negotation von Verbindungen
client min protocol = SMB2
client max protocol = SMB3
workgroup = WORKGROUP workgroup = WORKGROUP
server string = BFDS server string = BFDS
netbios name = BFDS netbios name = BFDS
+1 -12
View File
@@ -1,22 +1,11 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
programs.tmux = { programs.tmux = {
enable = true; enable = true;
# clock24 = true; # clock24 = true;
extraConfig = ''
## default config aus meinen dotfiles
`echo "$(cat /etc/nixos/dot-files/.tmux.conf)"`
## individuelle config für bfds
### colors ### extraConfig = ''
# Ändern der Farbe des Rahmens auf Gelb
set -g pane-border-fg yellow
# Ändern der Hintergrundfarbe des Rahmens auf Blau
set -g pane-active-border-bg blue
''; '';
}; };
+14
View File
@@ -0,0 +1,14 @@
{ config, lib, pkgs, ... }:
{
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg)
[
"veracrypt"
];
environment.systemPackages = [
pkgs.veracrypt
];
}