make shellcommon a regular module

This commit is contained in:
Sridhar Ratnakumar 2022-12-03 13:05:37 -05:00
parent be87dcc40f
commit 4f04e12ba4
2 changed files with 9 additions and 5 deletions

View file

@ -140,11 +140,10 @@
userName = "Sridhar Ratnakumar";
userEmail = "srid@srid.ca";
})
./home/shellcommon.nix
./home/vscode-server.nix
];
programs.bash = {
enable = true;
} // (import ./home/shellcommon.nix { inherit pkgs; });
programs.bash.enable = true;
};
}
];
@ -201,13 +200,14 @@
userName = "Sridhar Ratnakumar";
userEmail = "srid@srid.ca";
})
./home/shellcommon.nix
];
programs.zsh = {
enable = true;
initExtra = ''
export PATH=/etc/profiles/per-user/${userName}/bin:/run/current-system/sw/bin/:$PATH
'';
} // (import ./home/shellcommon.nix { inherit pkgs; });
};
home.stateVersion = "21.11";
};
}

View file

@ -1,5 +1,5 @@
{ pkgs, ... }:
{
let
shellAliases = {
e = "nvim";
ee = "nvim \"$(fzf)\"";
@ -15,4 +15,8 @@
# TODO: Gotta specify ~/.todo/config in Nix
t = "${pkgs.todo-txt-cli}/bin/todo.sh";
};
in
{
programs.bash = { inherit shellAliases; };
programs.zsh = { inherit shellAliases; };
}