Skip to content

Commit

Permalink
aliases, nh
Browse files Browse the repository at this point in the history
  • Loading branch information
CORAAL committed Jan 5, 2025
1 parent ae8587c commit fe13dad
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
22 changes: 22 additions & 0 deletions modules/default/aliases.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{ lib, config, pkgs, ... }:

{

options.glf.aliases.enable = lib.mkOption {
description = "Enable GLF Aliases configurations";
type = lib.types.bool;
default = true;
};

config = lib.mkIf config.glf.aliases.enable {

environment.shellAliases = {
glf-update = "sudo nix flake update --flake /etc/nixos";
glf-rebuild = "nh os switch /etc/nixos -H GLF-OS";
glf-build = "nh os build -H GLF-OS -H GLF-OS";
glf-boot = "nh os boot -H GLF-OS -H GLF-OS";
};

};

}
1 change: 1 addition & 0 deletions modules/default/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
./system.nix
# ./updateConf.nix
./version.nix
./aliases.nix
];

}
1 change: 1 addition & 0 deletions modules/default/nh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

programs.nh = {
enable = true;
flake = "/etc/nixos";
clean = {
enable = true;
dates = "weekly";
Expand Down

0 comments on commit fe13dad

Please sign in to comment.