feat: add rebuild script

This commit is contained in:
Mohammad Rafiq 2025-03-11 21:35:41 +08:00
parent fcd62641b1
commit 5332c0d278
5 changed files with 17 additions and 16 deletions

View file

@ -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

View file

@ -2,7 +2,6 @@
programs.bash = {
enable = true;
shellAliases = {
rebuild = "sudo nixos-rebuild switch --flake";
gs = "git status";
ai = "aichat -r %shell% -e";
};

View file

@ -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))
];
}

View file

@ -1,12 +0,0 @@
{ pkgs, ... }: {
home.packages = [
(pkgs.writers.writePython3Bin "git-extract" {
libraries = with pkgs.python3Packages; [
magic
chardet
];
} (builtins.readFile ./git-extract.py))
];
}

View file

@ -0,0 +1,2 @@
git add .
sudo nixos-rebuild switch --flake .