diff options
| author | Fuwn <[email protected]> | 2024-10-03 01:16:26 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-03 01:16:26 -0700 |
| commit | 9989fe08f302f3197ffde8263d23d581e6ee7e74 (patch) | |
| tree | 6dc7bf3727ffaa55fb081ca412f0470e08e7205b /home/ebisu/default.nix | |
| parent | modules: reformat (diff) | |
| download | nixos-config-9989fe08f302f3197ffde8263d23d581e6ee7e74.tar.xz nixos-config-9989fe08f302f3197ffde8263d23d581e6ee7e74.zip | |
home: configure multi-host home setup
Diffstat (limited to 'home/ebisu/default.nix')
| -rw-r--r-- | home/ebisu/default.nix | 83 |
1 files changed, 27 insertions, 56 deletions
diff --git a/home/ebisu/default.nix b/home/ebisu/default.nix index 1eaad0d..94e0ad9 100644 --- a/home/ebisu/default.nix +++ b/home/ebisu/default.nix @@ -1,64 +1,35 @@ { - pkgs, - config, + kansaiPkgs, inputs, - lib, + outputs, + self, + secrets, + system ? builtins.currentSystem, + flakeDirectory ? builtins.getEnv "FLAKE_ROOT", ... }: -{ - imports = [ - ./fortune - inputs.tailray.homeManagerModules.default - ]; - - programs.home-manager.enable = true; - nix.package = pkgs.nix; - pywal-nix.wallpaper = ./wallpaper.png; - - home = { - username = "ebisu"; - homeDirectory = "/home/${config.home.username}"; - stateVersion = "24.05"; +host: +let + pkgs = (kansaiPkgs { }).${system}; +in +inputs.home-manager.lib.homeManagerConfiguration { + inherit pkgs; - sessionPath = [ - "${config.home.homeDirectory}/.local/bin" - "${config.home.homeDirectory}/.local/share/cargo/bin" - "${config.xdg.configHome}/.emacs.d/bin" - ]; - }; - - nixpkgs = { - overlays = [ inputs.nur.overlay ]; + modules = with inputs; [ + ./${host} + chaotic.homeManagerModules.default + pywal-nix.homeManagerModules.${pkgs.system}.default + rui.homeManagerModules.${pkgs.system}.default + sops-nix.homeManagerModules.sops + ]; - config = { - allowUnfreePredicate = - pkg: - builtins.elem (lib.getName pkg) [ - "cuda-merged" - "cuda_cccl" - "cuda_cudart" - "cuda_cuobjdump" - "cuda_cupti" - "cuda_cuxxfilt" - "cuda_gdb" - "cuda_nvcc" - "cuda_nvdisasm" - "cuda_nvml_dev" - "cuda_nvprune" - "cuda_nvrtc" - "cuda_nvtx" - "cuda_profiler_api" - "cuda_sanitizer_api" - "httpie-desktop" - "libcublas" - "libcufft" - "libcurand" - "libcusolver" - "libcusparse" - "libnvjitlink" - "libnpp" - "spotify" - ]; - }; + extraSpecialArgs = { + inherit + inputs + outputs + self + secrets + flakeDirectory + ; }; } |