Update
This commit is contained in:
parent
b796117725
commit
a0c5bd962b
@ -7,7 +7,7 @@ feel free to contribute <3 ([CONTRIBUTING.md](CONTRIBUTING.md))
|
|||||||
- [ ] Themes
|
- [ ] Themes
|
||||||
- [ ] MacOS theme
|
- [ ] MacOS theme
|
||||||
- [ ] Make hyprcursor work
|
- [ ] Make hyprcursor work
|
||||||
- [ ] Homepage (web/qutebrowser) v2
|
- [ ] Homepage (web) v2
|
||||||
- [ ] Compile the sveltejs project
|
- [ ] Compile the sveltejs project
|
||||||
- [ ] Different link on web/mobile (so it can open ios/android apps)
|
- [ ] Different link on web/mobile (so it can open ios/android apps)
|
||||||
- [ ] Test services ? (ping)
|
- [ ] Test services ? (ping)
|
||||||
@ -21,3 +21,7 @@ feel free to contribute <3 ([CONTRIBUTING.md](CONTRIBUTING.md))
|
|||||||
- [ ] Nextcloud exclude file pattern (nodes modules, ...)
|
- [ ] Nextcloud exclude file pattern (nodes modules, ...)
|
||||||
- [ ] Automount USB Key (And notify-send when it's done)
|
- [ ] Automount USB Key (And notify-send when it's done)
|
||||||
- [ ] Usb security for laptop & server, variable in variables.nix, disable for guest
|
- [ ] Usb security for laptop & server, variable in variables.nix, disable for guest
|
||||||
|
- [ ] Bitcoin-git
|
||||||
|
- [ ] server fetch
|
||||||
|
- [ ] Remote push
|
||||||
|
- [ ] Ntfy auth file
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
xfce.thunar
|
xfce.thunar
|
||||||
bitwarden
|
bitwarden
|
||||||
vlc
|
vlc
|
||||||
|
nextcloud-client
|
||||||
|
|
||||||
# Dev
|
# Dev
|
||||||
go
|
go
|
||||||
@ -47,6 +48,7 @@
|
|||||||
python3
|
python3
|
||||||
jq
|
jq
|
||||||
git-ignore
|
git-ignore
|
||||||
|
node2nix
|
||||||
|
|
||||||
# Utils
|
# Utils
|
||||||
fd
|
fd
|
||||||
|
19
home/scripts/serverfetch/default.nix
Normal file
19
home/scripts/serverfetch/default.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# _
|
||||||
|
#| |_ ___ __ ___ _____ _ _
|
||||||
|
#| ' \/ -_) _` \ V / -_) ' \
|
||||||
|
#|_||_\___\__,_|\_/\___|_||_|
|
||||||
|
|
||||||
|
|
||||||
|
# Disk state
|
||||||
|
# Raid state
|
||||||
|
|
||||||
|
# Apps
|
||||||
|
# Apps state
|
||||||
|
|
||||||
|
# Is local network reachable (wireguard started)
|
||||||
|
|
||||||
|
# uptime
|
||||||
|
# Network speed
|
@ -101,7 +101,6 @@
|
|||||||
|
|
||||||
env = [
|
env = [
|
||||||
"LIBVA_DRIVER_NAME,nvidia"
|
"LIBVA_DRIVER_NAME,nvidia"
|
||||||
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
|
|
||||||
"XDG_SESSION_TYPE,wayland"
|
"XDG_SESSION_TYPE,wayland"
|
||||||
"XDG_CURRENT_DESKTOP,Hyprland"
|
"XDG_CURRENT_DESKTOP,Hyprland"
|
||||||
"XDG_SESSION_TYPE,wayland"
|
"XDG_SESSION_TYPE,wayland"
|
||||||
|
@ -27,6 +27,6 @@
|
|||||||
# change the nvim's obsidian configuration if you want to enable that:
|
# change the nvim's obsidian configuration if you want to enable that:
|
||||||
obsidian = true;
|
obsidian = true;
|
||||||
|
|
||||||
theme = import ../themes/catppuccin.nix; # select your theme here
|
theme = import ../themes/nixy.nix; # select your theme here
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
31
hosts/modules/server/bitcoin-git.nix
Normal file
31
hosts/modules/server/bitcoin-git.nix
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
systemd.timers."bitcoin-git" = {
|
||||||
|
wantedBy = [ "timers.target" ];
|
||||||
|
timerConfig = {
|
||||||
|
Unit = "bitcoin-git.service";
|
||||||
|
OnCalendar = "daily";
|
||||||
|
Persistent = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.services."bitcoin-git" = {
|
||||||
|
script = ''
|
||||||
|
[ ! -d "/home/heaven/btcprice" ] && git clone git@github.com:anotherhadi/btcprice /home/heaven/btcprice
|
||||||
|
cd "/home/heaven/btcprice"
|
||||||
|
price=$(curl eur.rate.sx/1BTC)
|
||||||
|
echo "# Bitcoin Price in EURO" >README.md
|
||||||
|
echo "" >>README.md
|
||||||
|
echo "1 Bitcoin = $price€" >>README.md
|
||||||
|
echo "" >>README.md
|
||||||
|
echo "Date: $(date)" >>README.md
|
||||||
|
git add .
|
||||||
|
git commit -m "Update price (heaven)"
|
||||||
|
git push -u origin main
|
||||||
|
exit 0
|
||||||
|
'';
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "oneshot";
|
||||||
|
User = "heaven";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -8,6 +8,8 @@
|
|||||||
"vault.anotherhadi.com"
|
"vault.anotherhadi.com"
|
||||||
"anotherhadi.com"
|
"anotherhadi.com"
|
||||||
"www.anotherhadi.com"
|
"www.anotherhadi.com"
|
||||||
|
"test.anotherhadi.com"
|
||||||
|
"jack.anotherhadi.com"
|
||||||
"ntfy.anotherhadi.com"
|
"ntfy.anotherhadi.com"
|
||||||
"home.anotherhadi.com"
|
"home.anotherhadi.com"
|
||||||
];
|
];
|
||||||
|
@ -4,11 +4,14 @@
|
|||||||
|
|
||||||
services.nginx.virtualHosts = {
|
services.nginx.virtualHosts = {
|
||||||
"anotherhadi.com" = {
|
"anotherhadi.com" = {
|
||||||
# serverAliases = [ "www.anotherhadi.com" ];
|
serverAliases = [ "www.anotherhadi.com" ];
|
||||||
root = "/etc/www/anotherhadi.com";
|
root = "/etc/www/anotherhadi.com";
|
||||||
};
|
};
|
||||||
"home.anotherhadi.com" = { root = "/etc/www/home.anotherhadi.com"; };
|
"home.anotherhadi.com" = {
|
||||||
"www.anotherhadi.com" = { root = "/var/www/test"; };
|
serverAliases = [ "jack.anotherhadi.com" ];
|
||||||
|
root = "/etc/www/home.anotherhadi.com";
|
||||||
|
};
|
||||||
|
"test.anotherhadi.com" = { root = "/var/www/test"; };
|
||||||
};
|
};
|
||||||
environment.etc."www/anotherhadi.com" = { source = ./anotherhadi.com; };
|
environment.etc."www/anotherhadi.com" = { source = ./anotherhadi.com; };
|
||||||
}
|
}
|
||||||
|
@ -2,14 +2,14 @@
|
|||||||
let
|
let
|
||||||
bookmarks = ''
|
bookmarks = ''
|
||||||
Home: [
|
Home: [
|
||||||
{text: "Nextcloud", url: "https://cloud.anotherhadi.com", icon: ""},
|
{text: "Nextcloud", url: "https://cloud.anotherhadi.com", icon: ""},
|
||||||
{text: "Vaultwarden", url: "https://vault.anotherhadi.com", icon: ""},
|
{text: "Vaultwarden", url: "https://vault.anotherhadi.com", icon: ""},
|
||||||
],
|
],
|
||||||
Admin: [
|
Admin: [
|
||||||
{text: "Adguard Home", url: "http://192.168.2.24:3001", icon: ""},
|
{text: "Adguard Home", url: "http://192.168.2.24:3001", icon: ""},
|
||||||
{text: "Proxmox", url: "https://192.168.2.17:8006", icon: ""},
|
{text: "Proxmox", url: "https://192.168.2.17:8006", icon: ""},
|
||||||
{text: "Cloudflare", url: "https://dash.cloudflare.com/", icon: ""},
|
{text: "Cloudflare", url: "https://dash.cloudflare.com/", icon: ""},
|
||||||
{text: "Tailscale", url: "https://login.tailscale.com/admin/machines", icon: ""},
|
{text: "Tailscale", url: "https://login.tailscale.com/admin/machines", icon: ""},
|
||||||
],
|
],
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
|
25
hosts/modules/server/www/homepage.nix
Normal file
25
hosts/modules/server/www/homepage.nix
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{ lib, buildNpmPackage, fetchFromGitHub }:
|
||||||
|
|
||||||
|
buildNpmPackage rec {
|
||||||
|
pname = "homepage";
|
||||||
|
version = "0.0.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "anotherhadi";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-BR+ZGkBBfd0dSQqAvujsbgsEPFYw/ThrylxUbOksYxM=";
|
||||||
|
};
|
||||||
|
|
||||||
|
npmDepsHash = "sha256-tuEfyePwlOy2/mOPdXbqJskO6IowvAP4DWg8xSZwbJw=";
|
||||||
|
|
||||||
|
# The prepack script runs the build script, which we'd rather do in the build phase.
|
||||||
|
npmPackFlags = [ "--ignore-scripts" ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "A simple homepage for your server.";
|
||||||
|
homepage = "https://github.com/anotherhadi/homepage";
|
||||||
|
# license = lib.licenses.gpl3Only;
|
||||||
|
# maintainers = with lib.maintainers; [ winter ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user