This commit is contained in:
Hadi 2024-06-23 13:46:07 +02:00
parent f29e68ef63
commit 54eb13bc40
6 changed files with 37 additions and 16 deletions

View File

@ -2,6 +2,8 @@
## 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.
- `nixy-rebuild` - `nixy-rebuild`
- `nixy-update` - `nixy-update`
- `nixy-gc` # garbage collection - `nixy-gc` # garbage collection

View File

@ -2,28 +2,37 @@
feel free to contribute <3 ([CONTRIBUTING.md](CONTRIBUTING.md)) feel free to contribute <3 ([CONTRIBUTING.md](CONTRIBUTING.md))
- [ ] Nixy script v2 (with nixosConfiguration's name variable) - [ ] Nixy
- [ ] Installation script - [ ] Nixy script v2 (with nixosConfiguration's name variable)
- [ ] Themes - [ ] Installation script
- [ ] Upload new wallpapers - [ ] Themes
- [ ] MacOS theme - [ ] Upload new wallpapers
- [ ] Make hyprcursor work - [ ] MacOS theme
- [ ] Hyprland
- [ ] Make hyprcursor work
- [ ] Animations based on app name
- [ ] Homepage (web) v2 - [ ] Homepage (web) v2
- [ ] Different link on web/mobile (so it can open ios/android apps)
- [ ] Manifest & favicon - [ ] Manifest & favicon
- [ ] Nixvim - [ ] Nixvim
- [ ] Nerdfont pluggins to search and paste in the code - [ ] Nerdfont pluggins to search and paste in the code
- [ ] Telescope shortcut for file content - [ ] Telescope shortcut for file content
- [ ] Markdown snippets - [ ] Markdown snippets
- [ ] Make whichkey better - [ ] Make whichkey better
- [ ] Backup system for some folders ($home/dev, $home/pictures, ...) - [ ] Backup system for some folders ($home/dev, $home/pictures, ...)
- [ ] Exclude file pattern (nodes modules, ...) - [ ] Exclude file pattern (nodes modules, ...)
- [ ] 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 - [ ] Server
- [ ] Remote push - [ ] Bitcoin-git
- [ ] Ntfy auth file - [ ] server fetch
- [ ] Fix adguard - [ ] Remote push
- [ ] Variable hostConfiguration name - [ ] Ntfy auth file
- [ ] Fix adguard

View File

@ -12,5 +12,6 @@
./compress ./compress
./misc ./misc
./tofi ./tofi
./remote-rebuild
]; ];
} }

View File

@ -51,11 +51,11 @@ let
''; '';
nixy-rebuild = pkgs.writeShellScriptBin "nixy-rebuild" '' nixy-rebuild = pkgs.writeShellScriptBin "nixy-rebuild" ''
sudo nixos-rebuild switch --flake ${config.var.configDirectory}#nixy sudo nixos-rebuild switch --flake ${config.var.configDirectory}#${config.var.hostname}
''; '';
nixy-upgrade = pkgs.writeShellScriptBin "nixy-upgrade" '' nixy-upgrade = pkgs.writeShellScriptBin "nixy-upgrade" ''
sudo nixos-rebuild switch --upgrade --flake ${config.var.configDirectory}#nixy sudo nixos-rebuild switch --upgrade --flake ${config.var.configDirectory}#${config.var.hostname}
''; '';
nixy-update = pkgs.writeShellScriptBin "nixy-update" '' nixy-update = pkgs.writeShellScriptBin "nixy-update" ''

View File

@ -0,0 +1,9 @@
{ pkgs, config, ... }:
let
remote-rebuild = pkgs.writeShellScriptBin "remote-rebuild" ''
ssh jack -C "cd /home/hadi/.config/nixos && git pull && nixy-rebuild"
'';
in { home.packages = with pkgs; [ remote-rebuild ]; }

View File

@ -28,6 +28,6 @@
obsidian = true; obsidian = true;
tailscale = true; tailscale = true;
theme = import ../themes/nixy.nix; # select your theme here theme = import ../themes/catppuccin.nix; # select your theme here
}; };
} }