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
The `hostname` variable in `hosts/yourhost/variables.nix` should be also the name of the `nixosConfiguration` in `flake.nix` file.
- `nixy-rebuild`
- `nixy-update`
- `nixy-gc` # garbage collection

View File

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

View File

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

View File

@ -51,11 +51,11 @@ let
'';
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" ''
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" ''

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;
tailscale = true;
theme = import ../themes/nixy.nix; # select your theme here
theme = import ../themes/catppuccin.nix; # select your theme here
};
}