Update
This commit is contained in:
parent
f29e68ef63
commit
54eb13bc40
@ -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
|
||||||
|
31
docs/TODO.md
31
docs/TODO.md
@ -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
|
||||||
|
- [ ] Themes
|
||||||
- [ ] Upload new wallpapers
|
- [ ] Upload new wallpapers
|
||||||
- [ ] MacOS theme
|
- [ ] MacOS theme
|
||||||
- [ ] Make hyprcursor work
|
|
||||||
|
- [ ] 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
|
||||||
|
@ -12,5 +12,6 @@
|
|||||||
./compress
|
./compress
|
||||||
./misc
|
./misc
|
||||||
./tofi
|
./tofi
|
||||||
|
./remote-rebuild
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -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" ''
|
||||||
|
9
home/scripts/remote-rebuild/default.nix
Normal file
9
home/scripts/remote-rebuild/default.nix
Normal 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 ]; }
|
@ -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
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user