mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-25 09:32:30 +08:00
65 lines
1.6 KiB
Nix
65 lines
1.6 KiB
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.
|
|
home.sessionPath = [
|
|
"/etc/profiles/per-user/$USER/bin"
|
|
"/run/current-system/sw/bin"
|
|
];
|
|
};
|
|
};
|
|
nixosModules.home-manager = {
|
|
imports = [
|
|
inputs.home-manager.nixosModules.home-manager
|
|
({
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.extraSpecialArgs = {
|
|
inherit inputs;
|
|
system = "x86_64-linux";
|
|
flake = { inherit config; };
|
|
};
|
|
})
|
|
];
|
|
};
|
|
darwinModules.home-manager = {
|
|
imports = [
|
|
inputs.home-manager.darwinModules.home-manager
|
|
({
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.extraSpecialArgs = {
|
|
inherit inputs;
|
|
system = "aarch64-darwin";
|
|
flake = { inherit config; };
|
|
};
|
|
})
|
|
];
|
|
};
|
|
};
|
|
}
|