hungtr@bao

top-level-nix
Pegasust 2022-12-21 11:18:01 +00:00
parent 49535655b6
commit b2412b25dd
2 changed files with 24 additions and 1 deletions

View File

@ -35,6 +35,13 @@
# lib = (import ../lib { inherit pkgs; lib = pkgs.lib; }); # lib = (import ../lib { inherit pkgs; lib = pkgs.lib; });
base = import ./base; base = import ./base;
inherit (base) mkModuleArgs; 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 in
{ {
homeConfigurations = 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 { "nixos@Felia" = home-manager.lib.homeManagerConfiguration {
inherit pkgs; inherit pkgs;
modules = [ modules = [

View File

@ -1,7 +1,6 @@
#!/usr/bin/env sh #!/usr/bin/env sh
# NOTE: Untested on case of no home-manager # NOTE: Untested on case of no home-manager
set -xv set -xv
# Where this script located # Where this script located
SCRIPT_DIR=$(realpath $(dirname $0)) SCRIPT_DIR=$(realpath $(dirname $0))
echo "SCRIPT_DIR: ${SCRIPT_DIR}" echo "SCRIPT_DIR: ${SCRIPT_DIR}"