migration guide
This commit is contained in:
parent
424c9b91f4
commit
0416ecf1eb
8 changed files with 226 additions and 266 deletions
|
|
@ -14,7 +14,7 @@ in {
|
|||
|
||||
home.activation.cloneNixConfig = lib.hm.dag.entryAfter [ "createDirectories" ] ''
|
||||
if [ ! -d "${repoDir}" ]; then
|
||||
$DRY_RUN_CMD ${pkgs.git}/bin/git clone git@github.com:barrettruth/nix-config.git "${repoDir}" || true
|
||||
$DRY_RUN_CMD ${pkgs.git}/bin/git clone https://github.com/barrettruth/nix-config.git "${repoDir}"
|
||||
fi
|
||||
'';
|
||||
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@
|
|||
programs.gh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
git_protocol = "ssh";
|
||||
git_protocol = "https";
|
||||
prompt = "enabled";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, config, pkgs, fonts, ... }:
|
||||
{ lib, config, pkgs, ... }:
|
||||
|
||||
let
|
||||
palettes = {
|
||||
|
|
@ -57,6 +57,15 @@ in {
|
|||
x11.enable = true;
|
||||
};
|
||||
|
||||
home.file.".local/share/fonts".source = fonts;
|
||||
home.file.".local/share/fonts".source =
|
||||
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/nix-config/fonts";
|
||||
|
||||
home.activation.checkFonts = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
if [ ! -d "${config.home.homeDirectory}/nix-config/fonts" ] || \
|
||||
[ -z "$(ls -A "${config.home.homeDirectory}/nix-config/fonts" 2>/dev/null)" ]; then
|
||||
echo "WARNING: ~/nix-config/fonts is missing or empty — fonts will not be available"
|
||||
echo " copy your fonts into ~/nix-config/fonts/ and rebuild"
|
||||
fi
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue