Skip to content

Commit

Permalink
Replacing home.file with writeTextFile did not resolve the problem
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Sep 17, 2024
1 parent cb4802a commit 2501ffe
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions home-manager/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,20 @@
"${config.xdg.dataHome}/tmpbin"
];

packages = import ./packages.nix {
inherit pkgs;
inherit edge-pkgs;
inherit homemade-pkgs;
};
packages =
import ./packages.nix {
inherit pkgs;
inherit edge-pkgs;
inherit homemade-pkgs;
}
++ [
(pkgs.writeTextFile {
name = "starship.toml";
# Not under "starship/starship.toml"
destination = "${config.xdg.configHome}/starship.toml";
text = builtins.readFile ../config/starship/starship.toml;
})
];
};

# This also changes xdg? Official manual sed this config is better for non NixOS Linux
Expand Down Expand Up @@ -135,9 +144,6 @@
recursive = true;
};

# Not under "starship/starship.toml"
xdg.configFile."starship.toml".source = ../config/starship/starship.toml;

# No home-manager module exists https://github.com/nix-community/home-manager/issues/2890
# TODO: Automate that needs to call `Install-Module -Name PSFzfHistory` first
xdg.configFile."powershell/Microsoft.PowerShell_profile.ps1".source = ../config/powershell/Profile.ps1;
Expand Down

0 comments on commit 2501ffe

Please sign in to comment.