mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-09 01:47:23 +08:00
make shellcommon a regular module
This commit is contained in:
parent
be87dcc40f
commit
4f04e12ba4
2 changed files with 9 additions and 5 deletions
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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; };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue