{ config, lib, pkgs, symlinkRoot, inputs, username, ... }: let inherit (config.lib.file) mkOutOfStoreSymlink; inherit (lib) flatten flip map mergeAttrsList; pipe = flip lib.pipe; flatMerge = pipe [flatten mergeAttrsList]; toSrcFile = name: "${symlinkRoot}/${name}"; link = pipe [toSrcFile mkOutOfStoreSymlink]; linkFile = name: {${name}.source = link name;}; linkDir = name: { ${name} = { source = link name; recursive = true; }; }; linkConfFiles = map linkFile; linkConfDirs = map linkDir; confFiles = linkConfFiles [ "starship.toml" ]; confDirs = linkConfDirs [ "foot" "fortune" "hypr" "nvim" "quickshell" "tmux" "yazi" ]; links = flatMerge [confFiles confDirs]; in { imports = [ inputs.greyline.homeManagerModules.default ]; xdg.configFile = links; home.username = username; home.homeDirectory = "/home/${username}"; home.stateVersion = "25.05"; home.packages = with pkgs; [ devenv ]; home.file = { ".bashrc".text = '' bash_starship_init_code=$(starship init bash) STARSHIP_DEV_MODE=1 eval "$bash_starship_init_code" ''; }; home.sessionVariables = { EDITOR = "nvim"; }; programs.home-manager.enable = true; services.greyline = { enable = true; backend = "swww"; fontFamily = "JetBrains Mono Nerd Font"; settings = { theme = "dark"; logo = false; format = "24h"; twilight = { bands = true; darkness = "subtle"; }; home = { tz = "Asia/Kolkata"; column_highlight = true; }; city = [ { name = "Kuala Lumpur"; lat = 3.14; lon = 101.69; tz = "Asia/Kuala_Lumpur"; } { name = "Kolkata"; lat = 22.56; lon = 88.36; tz = "Asia/Kolkata"; } { name = "London"; lat = 51.51; lon = -0.13; tz = "Europe/London"; } { name = "New York"; lat = 40.71; lon = -74.01; tz = "America/New_York"; } { name = "Tokyo"; lat = 35.68; lon = 139.69; tz = "Asia/Tokyo"; } ]; }; }; }