mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 23:11:34 +01:00
20 lines
499 B
Nix
20 lines
499 B
Nix
{ config, lib, ... }:
|
|
{
|
|
options.myConfig.nix-helper.enable = lib.mkEnableOption "";
|
|
|
|
config = lib.mkIf config.myConfig.nix-helper.enable {
|
|
environment.sessionVariables.FLAKE = "/home/seb/Projects/nixos/my-config";
|
|
programs.nh.enable = true;
|
|
|
|
environment.shellAliases =
|
|
let
|
|
rebuild = "sudo -v && nh os";
|
|
in
|
|
{
|
|
nrs = "${rebuild} switch";
|
|
nrt = "${rebuild} test";
|
|
nrb = "${rebuild} boot";
|
|
nrrb = "nrb && reboot";
|
|
};
|
|
};
|
|
}
|