feat(homes/rafiq): add comma and nix-index
This commit is contained in:
parent
36d522f7f4
commit
1b8b7f35e9
4 changed files with 62 additions and 30 deletions
29
homes/x86_64-linux/rafiq/cli.nix
Normal file
29
homes/x86_64-linux/rafiq/cli.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ config, lib, pkgs, osConfig, ... }:
|
||||
{
|
||||
imports = [
|
||||
./programs/git.nix
|
||||
./programs/zsh.nix
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
neovim
|
||||
ripgrep
|
||||
(pkgs.writeShellScriptBin "rebuild" # sh
|
||||
''
|
||||
if [ ! -f "flake.nix" ]; then
|
||||
echo "flake.nix not found in current directory. exiting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git add . && \
|
||||
nixos-rebuild switch --flake . --use-remote-sudo && \
|
||||
git commit -a
|
||||
'')
|
||||
];
|
||||
|
||||
home.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
};
|
||||
|
||||
programs.nix-index.enable = true;
|
||||
programs.nix-index-database.comma.enable = true;
|
||||
}
|
|
@ -2,42 +2,21 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
./programs/git.nix
|
||||
./programs/hyprland.nix
|
||||
./programs/zsh.nix
|
||||
./cli.nix
|
||||
];
|
||||
|
||||
home.stateVersion = "24.11";
|
||||
|
||||
home.file = {
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
neovim
|
||||
ripgrep
|
||||
kitty
|
||||
(pkgs.writeShellScriptBin "rebuild" # sh
|
||||
''
|
||||
if [ ! -f "flake.nix" ]; then
|
||||
echo "flake.nix not found in current directory. exiting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git add . && \
|
||||
nixos-rebuild switch --flake . --use-remote-sudo && \
|
||||
git commit -a
|
||||
'')
|
||||
kitty
|
||||
];
|
||||
|
||||
home.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
home.persistence."/persist/home/rafiq" = {
|
||||
directories = [
|
||||
".ssh"
|
||||
"repos"
|
||||
];
|
||||
allowOther = true;
|
||||
};
|
||||
|
||||
home.persistence."/persist/home/rafiq" = {
|
||||
directories = [
|
||||
".ssh"
|
||||
"repos"
|
||||
];
|
||||
allowOther = true;
|
||||
};
|
||||
home.stateVersion = "24.11";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue