diff --git a/nix-conf/home-manager/flake.nix b/nix-conf/home-manager/flake.nix index 0c21c50..23d43ec 100644 --- a/nix-conf/home-manager/flake.nix +++ b/nix-conf/home-manager/flake.nix @@ -35,6 +35,13 @@ # lib = (import ../lib { inherit pkgs; lib = pkgs.lib; }); base = import ./base; inherit (base) mkModuleArgs; + kde_module = {config, pkgs, ...}: { + fonts.fontconfig.enable = true; + home.packages = [(pkgs.nerdfonts.override {fonts = ["DroidSansMono"];})]; + # For some reasons, Windows es in the font name as DroidSansMono NF + # so we need to override this + base.alacritty.font.family = "DroidSansMono Nerd Font"; + }; in { homeConfigurations = @@ -61,6 +68,23 @@ }; }; }; + "hungtr@bao" = home-manager.lib.homeManagerConfiguration { + inherit pkgs; + modules = base.modules ++ [ + ./home.nix + kde_module + ]; + # optionally pass inarguments to module + # we migrate this from in-place modules to allow flexibility + # in this case, we can add "home" to input arglist of home.nix + extraSpecialArgs = mkModuleArgs { + inherit pkgs; + myHome = { + username = "hungtr"; + homeDirectory = "/home/hungtr"; + }; + }; + }; "nixos@Felia" = home-manager.lib.homeManagerConfiguration { inherit pkgs; modules = [ diff --git a/scripts/hm-switch.sh b/scripts/hm-switch.sh index fb0614d..c18fca9 100755 --- a/scripts/hm-switch.sh +++ b/scripts/hm-switch.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh # NOTE: Untested on case of no home-manager set -xv - # Where this script located SCRIPT_DIR=$(realpath $(dirname $0)) echo "SCRIPT_DIR: ${SCRIPT_DIR}"