feat: add rebuild script
This commit is contained in:
parent
fcd62641b1
commit
5332c0d278
5 changed files with 17 additions and 16 deletions
|
@ -3,6 +3,9 @@
|
|||
isNormalUser = true;
|
||||
description = "rafiq";
|
||||
extraGroups = ["networkmanager" "wheel"];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILv8HqazE294YdyGaXK6q2EniDlTpGaUL071kk9+W0GJ rafiq@nemesis"
|
||||
];
|
||||
};
|
||||
|
||||
# Enable basic fonts for reasonable Unicode coverage
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
programs.bash = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
rebuild = "sudo nixos-rebuild switch --flake";
|
||||
gs = "git status";
|
||||
ai = "aichat -r %shell% -e";
|
||||
};
|
||||
|
|
|
@ -1,5 +1,14 @@
|
|||
{
|
||||
imports = [
|
||||
./git-extract.nix
|
||||
{ pkgs, ... }: {
|
||||
home.packages = [
|
||||
(pkgs.writers.writePython3Bin "git-extract" {
|
||||
|
||||
libraries = with pkgs.python3Packages; [
|
||||
magic
|
||||
chardet
|
||||
];
|
||||
|
||||
} (builtins.readFile ./git-extract.py))
|
||||
|
||||
(pkgs.writeShellScriptBin "rebuild" (builtins.readFile ./rebuild.sh))
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
{ pkgs, ... }: {
|
||||
home.packages = [
|
||||
(pkgs.writers.writePython3Bin "git-extract" {
|
||||
|
||||
libraries = with pkgs.python3Packages; [
|
||||
magic
|
||||
chardet
|
||||
];
|
||||
|
||||
} (builtins.readFile ./git-extract.py))
|
||||
];
|
||||
}
|
2
users/modules/scripts/rebuild.sh
Executable file
2
users/modules/scripts/rebuild.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
git add .
|
||||
sudo nixos-rebuild switch --flake .
|
Loading…
Add table
Add a link
Reference in a new issue