mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
Include env variable and aliases in nh configuration
This commit is contained in:
parent
10bb7b5c31
commit
7c105b7d33
4 changed files with 12 additions and 16 deletions
|
|
@ -7,8 +7,6 @@
|
|||
|
||||
networking.hostName = "inspiron";
|
||||
|
||||
environment.sessionVariables.FLAKE = "/home/seb/Projects/nixos/my-config";
|
||||
|
||||
myConfig = {
|
||||
boot-loader = {
|
||||
systemd-boot.enable = true;
|
||||
|
|
|
|||
|
|
@ -7,8 +7,6 @@
|
|||
|
||||
networking.hostName = "north";
|
||||
|
||||
environment.sessionVariables.FLAKE = "/home/seb/Projects/nixos/my-config";
|
||||
|
||||
myConfig = {
|
||||
boot-loader = {
|
||||
systemd-boot.enable = true;
|
||||
|
|
|
|||
|
|
@ -13,17 +13,6 @@
|
|||
|
||||
home.shellAliases =
|
||||
let
|
||||
nixAliases =
|
||||
let
|
||||
rebuild = "sudo -v && nh os";
|
||||
in
|
||||
{
|
||||
nrs = "${rebuild} switch";
|
||||
nrt = "${rebuild} test";
|
||||
nrb = "${rebuild} boot";
|
||||
nrrb = "nrb && reboot";
|
||||
};
|
||||
|
||||
lsAliases =
|
||||
let
|
||||
aliasList =
|
||||
|
|
@ -91,7 +80,6 @@
|
|||
};
|
||||
in
|
||||
lib.mkMerge [
|
||||
nixAliases
|
||||
lsAliases
|
||||
catAlias
|
||||
];
|
||||
|
|
|
|||
|
|
@ -9,8 +9,20 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.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";
|
||||
};
|
||||
|
||||
programs.nh.clean = lib.mkIf cfg.auto-gc.enable {
|
||||
enable = true;
|
||||
dates = "daily";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue