Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacing home.file with writeTextFile did not resolve the problem #791

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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";
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://ryantm.github.io/nixpkgs/builders/trivial-builders/

Writes executable my-file to /nix/store//bin/my-file

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
Loading