update
This commit is contained in:
parent
282c04af67
commit
5d47643320
14
docs/APPS.md
14
docs/APPS.md
@ -1,9 +1,13 @@
|
|||||||
# Apps and services
|
# Apps and services
|
||||||
|
|
||||||
*non-exhaustive list*
|
*non-exhaustive lists*
|
||||||
|
|
||||||
## Laptop
|
## Laptop
|
||||||
|
|
||||||
|
The laptop configuration is used by a Omen 16 laptop w/ nvidia and an amd gpu running NixOS.
|
||||||
|
The configurations files can be found in the `hosts/laptop` directory.
|
||||||
|
|
||||||
|
|
||||||
| Category | Name |
|
| Category | Name |
|
||||||
|----------------|---------------|
|
|----------------|---------------|
|
||||||
| WM | Hyprland |
|
| WM | Hyprland |
|
||||||
@ -32,14 +36,14 @@
|
|||||||
| Misc | lazygit |
|
| Misc | lazygit |
|
||||||
| | neofetch |
|
| | neofetch |
|
||||||
| | cava |
|
| | cava |
|
||||||
| | ... |
|
| See [hosts/laptop](../hosts/laptop/)... | |
|
||||||
|
|
||||||
## Server
|
## Server
|
||||||
|
|
||||||
The server configuration is used by a home server running NixOS.
|
The server configuration is used by a home server running NixOS.
|
||||||
The configurations files can be found in the `hosts/server` directory.
|
The configurations files can be found in the `hosts/server` directory.
|
||||||
I mainly use it for self hosting services like Nextcloud, Vaultwarden, etc and for hosting websites.
|
I mainly use it for self hosting websites and services such as Nextcloud, Vaultwarden, ...
|
||||||
I exposed some services to the internet using a reverse proxy (Nginx) and cloudflare dns. (Also configured cloudflare-dyndns)
|
I exposed some services to the internet using a reverse proxy (Nginx) and cloudflare-dyndns, others are accessed through a tailscale network
|
||||||
|
|
||||||
### Apps
|
### Apps
|
||||||
|
|
||||||
@ -50,4 +54,4 @@ I exposed some services to the internet using a reverse proxy (Nginx) and cloudf
|
|||||||
- Uptime Kuma
|
- Uptime Kuma
|
||||||
- "Jackflix"
|
- "Jackflix"
|
||||||
- Jellyfin, Transmission, *arr
|
- Jellyfin, Transmission, *arr
|
||||||
- ...
|
- See [hosts/server](../hosts/server/)...
|
||||||
|
@ -1,13 +1,18 @@
|
|||||||
# Scripts
|
# Scripts
|
||||||
|
|
||||||
|
Scripts are located in the `home/scripts` folder. Home-manager add those in the path.
|
||||||
|
|
||||||
## Nix/NixOs shortcuts
|
## Nix/NixOs shortcuts
|
||||||
|
|
||||||
The `hostname` variable in `hosts/yourhost/variables.nix` should be also the name of the `nixosConfiguration` in `flake.nix` file.
|
> [!TIP]
|
||||||
|
> The `hostname` variable in `hosts/yourhost/variables.nix` should be also the name of the `nixosConfiguration` in `flake.nix` file.
|
||||||
|
|
||||||
- `nixy-rebuild`
|
- `nixy` # UI
|
||||||
- `nixy-update`
|
- `nixy rebuild`
|
||||||
- `nixy-gc` # garbage collection
|
- `nixy update`
|
||||||
- `nixy-cb` # clean boot menu
|
- `nixy upgrade`
|
||||||
|
- `nixy gc` # garbage collection
|
||||||
|
- `nixy cb` # clean boot menu
|
||||||
|
|
||||||
## Brightness control
|
## Brightness control
|
||||||
|
|
||||||
@ -21,7 +26,7 @@ The `hostname` variable in `hosts/yourhost/variables.nix` should be also the nam
|
|||||||
- `sound-down`
|
- `sound-down`
|
||||||
- `sound-toggle`
|
- `sound-toggle`
|
||||||
- `sound-output`
|
- `sound-output`
|
||||||
- `sound-change <up/down/mute> <increment>`
|
- `sound-change [up/down/mute] <increment>`
|
||||||
|
|
||||||
## Caffeine
|
## Caffeine
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Themes
|
# Themes
|
||||||
|
|
||||||
Themes are defined in `hosts/themes`. Those themes define the colors, fonts, icons, etc, used by Hyprland and the apps/programs installed.
|
Themes are defined in `hosts/themes`. Those themes define the colors, fonts, icons, etc, used by Hyprland and the apps/programs installed.
|
||||||
You can change the selected theme by changing the import statement of your host's variables file.
|
You can change the selected theme by changing the import statement of your host's variables.nix file.
|
||||||
|
|
||||||
> [!TIP]
|
> [!TIP]
|
||||||
> To apply the theme to Duckduckgo, follow the instructions in `$HOME/.duckduckgo-colorscheme.js`
|
> To apply the theme to Duckduckgo, follow the instructions in `$HOME/.duckduckgo-colorscheme.js`
|
||||||
|
@ -9,6 +9,10 @@ feel free to contribute <3 ([CONTRIBUTING.md](CONTRIBUTING.md))
|
|||||||
- [ ] Upload new wallpapers
|
- [ ] Upload new wallpapers
|
||||||
- [ ] MacOS theme
|
- [ ] MacOS theme
|
||||||
- [ ] GithubFetch: Neofetch like, github calendar in the terminal
|
- [ ] GithubFetch: Neofetch like, github calendar in the terminal
|
||||||
|
- [ ] Night shift Toggle
|
||||||
|
- [ ] Write a hyprland shortcuts markdown file
|
||||||
|
- [ ] Lock script
|
||||||
|
- [ ] Tofi (Wofi but terminal based)
|
||||||
|
|
||||||
- [ ] Hyprland
|
- [ ] Hyprland
|
||||||
- [ ] Make hyprcursor work
|
- [ ] Make hyprcursor work
|
||||||
|
@ -10,6 +10,7 @@ let
|
|||||||
${pkgs.libnotify}/bin/notify-send "$message" \
|
${pkgs.libnotify}/bin/notify-send "$message" \
|
||||||
--replace-id="$(cat "/tmp/nixy-notification" 2>/dev/null || echo 0)" --print-id > "/tmp/nixy-notification"
|
--replace-id="$(cat "/tmp/nixy-notification" 2>/dev/null || echo 0)" --print-id > "/tmp/nixy-notification"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
night-shift-off = pkgs.writeShellScriptBin "night-shift-off" ''
|
night-shift-off = pkgs.writeShellScriptBin "night-shift-off" ''
|
||||||
pkill wlsunset
|
pkill wlsunset
|
||||||
message=" Night-Shift Deactivated"
|
message=" Night-Shift Deactivated"
|
||||||
|
@ -5,7 +5,6 @@ let
|
|||||||
nixy = pkgs.writeShellScriptBin "nixy" ''
|
nixy = pkgs.writeShellScriptBin "nixy" ''
|
||||||
function exec() {
|
function exec() {
|
||||||
$@
|
$@
|
||||||
# hyprctl dispatch exec $@
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function ui(){
|
function ui(){
|
||||||
@ -38,39 +37,24 @@ let
|
|||||||
[[ $1 == "" ]] && ui
|
[[ $1 == "" ]] && ui
|
||||||
|
|
||||||
if [[ $1 == "rebuild" ]];then
|
if [[ $1 == "rebuild" ]];then
|
||||||
nixy-rebuild
|
|
||||||
elif [[ $1 == "upgrade" ]];then
|
|
||||||
nixy-upgrade
|
|
||||||
elif [[ $1 == "update" ]];then
|
|
||||||
nixy-update
|
|
||||||
elif [[ $1 == "gc" ]];then
|
|
||||||
nixy-gc
|
|
||||||
elif [[ $1 == "cb" ]];then
|
|
||||||
nixy-cb
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
|
|
||||||
nixy-rebuild = pkgs.writeShellScriptBin "nixy-rebuild" ''
|
|
||||||
sudo nixos-rebuild switch --flake ${config.var.configDirectory}#${config.var.hostname}
|
sudo nixos-rebuild switch --flake ${config.var.configDirectory}#${config.var.hostname}
|
||||||
'';
|
elif [[ $1 == "upgrade" ]];then
|
||||||
|
|
||||||
nixy-upgrade = pkgs.writeShellScriptBin "nixy-upgrade" ''
|
|
||||||
sudo nixos-rebuild switch --upgrade --flake ${config.var.configDirectory}#${config.var.hostname}
|
sudo nixos-rebuild switch --upgrade --flake ${config.var.configDirectory}#${config.var.hostname}
|
||||||
'';
|
elif [[ $1 == "update" ]];then
|
||||||
|
|
||||||
nixy-update = pkgs.writeShellScriptBin "nixy-update" ''
|
|
||||||
cd ${config.var.configDirectory} && sudo nix flake update
|
cd ${config.var.configDirectory} && sudo nix flake update
|
||||||
'';
|
elif [[ $1 == "gc" ]];then
|
||||||
|
|
||||||
nixy-gc = pkgs.writeShellScriptBin "nixy-gc" ''
|
|
||||||
cd ${config.var.configDirectory} && sudo nix-collect-garbage -d
|
cd ${config.var.configDirectory} && sudo nix-collect-garbage -d
|
||||||
'';
|
elif [[ $1 == "cb" ]];then
|
||||||
|
|
||||||
nixy-cb = pkgs.writeShellScriptBin "nixy-cb" ''
|
|
||||||
sudo /run/current-system/bin/switch-to-configuration boot
|
sudo /run/current-system/bin/switch-to-configuration boot
|
||||||
|
elif [[ $1 == "remote" ]];then
|
||||||
|
cd ~/.config/nixos && git add . && git commit -m "update" && git push
|
||||||
|
ssh jack -S -C "cd /home/hadi/.config/nixos && git pull && sudo -S nixos-rebuild switch --flake ~/.config/nixos#jack"
|
||||||
|
else
|
||||||
|
echo "Unknown argument"
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
in {
|
in {
|
||||||
home.packages =
|
home.packages =
|
||||||
[ nixy nixy-rebuild nixy-upgrade nixy-update nixy-gc nixy-cb ];
|
[ nixy ];
|
||||||
}
|
}
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
{ pkgs, config, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
|
|
||||||
remote-rebuild = pkgs.writeShellScriptBin "remote-rebuild" ''
|
|
||||||
ssh jack -S -C "cd /home/hadi/.config/nixos && git pull && sudo -S nixos-rebuild switch --flake ~/.config/nixos#jack"
|
|
||||||
'';
|
|
||||||
|
|
||||||
remote-push = pkgs.writeShellScriptBin "remote-push" ''
|
|
||||||
cd ~/.config/nixos && git add . && git commit -m "update" && git push
|
|
||||||
remote-rebuild
|
|
||||||
'';
|
|
||||||
|
|
||||||
in { home.packages = [ remote-rebuild remote-push ]; }
|
|
@ -2,6 +2,7 @@
|
|||||||
{ pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
let
|
let
|
||||||
startup = pkgs.writeShellScriptBin "startup" ''
|
startup = pkgs.writeShellScriptBin "startup" ''
|
||||||
|
# Startup is a script called by Hyprland on startup
|
||||||
# Because HM enabling services suck.
|
# Because HM enabling services suck.
|
||||||
|
|
||||||
[[ ${toString config.var.sops} == "1" ]] && systemctl --user start sops-nix
|
[[ ${toString config.var.sops} == "1" ]] && systemctl --user start sops-nix
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
let
|
let
|
||||||
|
|
||||||
tofi = pkgs.writeShellScriptBin "tofi" ''
|
tofi = pkgs.writeShellScriptBin "tofi" ''
|
||||||
|
hyprexec="hyprctl dispatch exec"
|
||||||
function exec() {
|
function exec() {
|
||||||
$@
|
$@
|
||||||
# hyprctl dispatch exec $@
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function ui(){
|
function ui(){
|
||||||
@ -14,7 +14,31 @@ let
|
|||||||
# "icon;name;command"[]
|
# "icon;name;command"[]
|
||||||
apps=(
|
apps=(
|
||||||
";Nixy;nixy"
|
";Nixy;nixy"
|
||||||
";Nerdfont;nerdfont-fzf"
|
";Nerdfont FZF;nerdfont-fzf"
|
||||||
|
";Brightness Up;brightness-up"
|
||||||
|
";Brightness Down;brightness-down"
|
||||||
|
";Sound Up;sound-up"
|
||||||
|
";Sound Down;sound-down"
|
||||||
|
";Sound Toggle Mute;sound-toggle"
|
||||||
|
";Sound Change Output;sound-output"
|
||||||
|
";Caffeine;caffeine"
|
||||||
|
";Night Shift Toggle;night-shift-toggle"
|
||||||
|
";Firefox;$hyprexec firefox"
|
||||||
|
";Qutebrowser;$hyprexec qutebrowser"
|
||||||
|
";Kitty;$hyprexec kitty"
|
||||||
|
";Thunar;$hyprexec thunar"
|
||||||
|
";Powermenu;powermenu"
|
||||||
|
";Wofi;menu"
|
||||||
|
";Lock;lock"
|
||||||
|
";Bitwarden;$hyprexec bitwarden"
|
||||||
|
";Clock; peaclock"
|
||||||
|
";Nextcloud;$hyprexec nextcloud"
|
||||||
|
";Spotify;$hyprexec spotify"
|
||||||
|
";Btop;btop"
|
||||||
|
";Cava;cava"
|
||||||
|
";Discord;$hyprexec discord"
|
||||||
|
";Vlc;$hyprexec vlc"
|
||||||
|
";Obsidian;$hyprexec obsidian"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Apply default icons if empty:
|
# Apply default icons if empty:
|
||||||
|
Loading…
Reference in New Issue
Block a user