Compare commits
2
Commits
eff28a6aa9
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7503307bb9 | ||
|
|
0e202d4c57 |
No files matched your search
+2
-1
@@ -17,13 +17,14 @@
|
|||||||
|
|
||||||
# meine module
|
# meine module
|
||||||
modules/tmux.nix
|
modules/tmux.nix
|
||||||
modules/cron.nix
|
# in das backup von cloud.boogiedev.net umwandeln: modules/cron.nix
|
||||||
modules/users.nix
|
modules/users.nix
|
||||||
modules/storage.nix
|
modules/storage.nix
|
||||||
modules/root-programs.nix
|
modules/root-programs.nix
|
||||||
modules/smb.nix
|
modules/smb.nix
|
||||||
modules/tailscale.nix
|
modules/tailscale.nix
|
||||||
modules/veracrypt.nix
|
modules/veracrypt.nix
|
||||||
|
modules/cockpit.nix
|
||||||
|
|
||||||
#Server
|
#Server
|
||||||
modules/nextcloud.nix
|
modules/nextcloud.nix
|
||||||
|
|||||||
+5
-3
@@ -1,22 +1,24 @@
|
|||||||
## bash prompt styling
|
## bash prompt styling
|
||||||
PS1="\[\e[32m\][\u@\h\]]:\[\e[34m\]\w\[\e[0m\]\$ "
|
PS1="\[\e[32m\][\u@\h\]]:\[\e[34m\]\w\[\e[0m\]# "
|
||||||
|
|
||||||
echo "## Mache ssh key verfügbar##"
|
echo "## Mache ssh key verfügbar##"
|
||||||
eval "$(ssh-agent -s)"
|
eval "$(ssh-agent -s)"
|
||||||
ssh-add ~/.ssh/id_bfds_gitea
|
ssh-add ~/.ssh/id_bfds_gitea
|
||||||
|
|
||||||
|
echo
|
||||||
echo "=============="
|
echo "=============="
|
||||||
echo "## Wechsel zu aktueller NixOS config Verzeichnis ##"
|
echo "## Wechsel zu aktueller NixOS config Verzeichnis ##"
|
||||||
echo "## run: git status"
|
echo "## run: git status"
|
||||||
cd /etc/nixos/
|
cd /etc/nixos/
|
||||||
git status
|
git status
|
||||||
|
|
||||||
|
echo
|
||||||
echo "=============="
|
echo "=============="
|
||||||
### !! if not running inside tmux, ask user to start tmux or create session !!
|
|
||||||
if [ -z "$TMUX" ]; then
|
|
||||||
alias tmuxxx='tmux -f /etc/nixos/dot-files/.tmux.conf new -d -s mainsession'
|
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'
|
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
|
if ! tmux ls &> /dev/null; then
|
||||||
tmuxxx
|
tmuxxx
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
cockpit # cockpit
|
||||||
|
];
|
||||||
|
|
||||||
|
services.cockpit = {
|
||||||
|
enable = true;
|
||||||
|
port = 9090;
|
||||||
|
settings = {
|
||||||
|
WebService = {
|
||||||
|
AllowUnencrypted = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in new issue
Block a user