mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-07 00:17:24 +08:00
cf. https://github.com/nix-community/home-manager/issues/3324 Re-opens https://github.com/srid/nixos-config/issues/22
37 lines
910 B
Nix
37 lines
910 B
Nix
{ self, inputs, config, ... }:
|
|
{
|
|
flake = {
|
|
homeModules = {
|
|
common = {
|
|
home.stateVersion = "22.11";
|
|
imports = [
|
|
./tmux.nix
|
|
./neovim.nix
|
|
./emacs.nix
|
|
./starship.nix
|
|
./terminal.nix
|
|
./direnv.nix
|
|
];
|
|
};
|
|
common-linux = {
|
|
imports = [
|
|
self.homeModules.common
|
|
./vscode-server.nix
|
|
];
|
|
programs.bash.enable = true;
|
|
};
|
|
common-darwin = {
|
|
imports = [
|
|
self.homeModules.common
|
|
];
|
|
|
|
programs.zsh.enable = true;
|
|
# To put nix and home-manager-installed packages in PATH.
|
|
# TODO: Use sessionPath after https://github.com/nix-community/home-manager/issues/3324
|
|
programs.zsh.initExtra = ''
|
|
export PATH=/etc/profiles/per-user/$USER/bin:/run/current-system/sw/bin/:$PATH
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|