mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
Pass hostname and username to modules
This commit is contained in:
parent
65efd22cb3
commit
70c2dc4e2f
4 changed files with 17 additions and 18 deletions
|
|
@ -1,6 +1,4 @@
|
|||
{ pkgs, ... }: let
|
||||
username = "gene.liverman";
|
||||
in {
|
||||
{ pkgs, hostname, username, ... }: {
|
||||
environment = {
|
||||
shells = with pkgs; [ bash zsh ];
|
||||
loginShell = pkgs.zsh;
|
||||
|
|
@ -68,6 +66,8 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
networking.hostName = "${hostname}";
|
||||
|
||||
nix = {
|
||||
settings = {
|
||||
bash-prompt-prefix = "(nix:$name)\040";
|
||||
|
|
@ -93,4 +93,4 @@ in {
|
|||
home = "/Users/${username}";
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue