More app fixing

work
mat ess 2022-11-07 21:39:25 -05:00
parent 4656d61be4
commit 5543e1e44c
4 changed files with 38 additions and 6 deletions

View File

@ -60,6 +60,7 @@
# "obsidian" # "obsidian"
"rectangle" "rectangle"
"secretive" "secretive"
"shortcat"
"signal" "signal"
# "slack" # "slack"
"stay" "stay"

View File

@ -269,6 +269,27 @@
"type": "github" "type": "github"
} }
}, },
"home-manager-atemu": {
"inputs": {
"nixpkgs": [
"nixpkgs-unstable"
]
},
"locked": {
"lastModified": 1613409234,
"narHash": "sha256-BW0xKvUfjy/0Wu1W/st1TTEHhpkyV0lPEW0otysvDSQ=",
"owner": "Atemu",
"repo": "home-manager",
"rev": "e6d905336181ed8f98d48a1f6c9965b77f18e304",
"type": "github"
},
"original": {
"owner": "Atemu",
"ref": "darwin-copy-apps-fully-wip",
"repo": "home-manager",
"type": "github"
}
},
"homebrew-enabled": { "homebrew-enabled": {
"locked": { "locked": {
"lastModified": 1657739253, "lastModified": 1657739253,
@ -384,6 +405,7 @@
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"helix": "helix", "helix": "helix",
"home-manager": "home-manager", "home-manager": "home-manager",
"home-manager-atemu": "home-manager-atemu",
"homebrew-enabled": "homebrew-enabled", "homebrew-enabled": "homebrew-enabled",
"kitty-icon": "kitty-icon", "kitty-icon": "kitty-icon",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",

View File

@ -25,7 +25,6 @@
# Module to workaround https://github.com/nix-community/home-manager/issues/1341 # Module to workaround https://github.com/nix-community/home-manager/issues/1341
home-manager-atemu.url = "github:Atemu/home-manager/darwin-copy-apps-fully-wip"; home-manager-atemu.url = "github:Atemu/home-manager/darwin-copy-apps-fully-wip";
home-manager-atemu.inputs.nixpkgs.follows = "nixpkgs-unstable"; home-manager-atemu.inputs.nixpkgs.follows = "nixpkgs-unstable";
home-manager-atemu.inputs.utils.follows = "flake-utils";
# Extra sources # Extra sources
helix.url = "github:helix-editor/helix"; helix.url = "github:helix-editor/helix";

View File

@ -114,11 +114,21 @@ in
term-background term-background
]; ];
home.activation = mkIf (pkgs.stdenv.isDarwin && cfg.fixIcon.enable) { home.activation =
fixKittyIcon = lib.hm.dag.entryAfter [ "darwinApps" "linkGeneration" ] '' let
$DRY_RUN_CMD sudo /opt/homebrew/bin/fileicon set ${cfg.fixIcon.appPath} ${cfg.fixIcon.iconPath} fileicon = "/opt/homebrew/bin/fileicon";
''; in
}; mkIf (pkgs.stdenv.isDarwin && cfg.fixIcon.enable) {
cleanupKittyIcon = lib.hm.dag.entryBetween [ "darwinApps" ] [ "writeBoundary" ] ''
if ${fileicon} test ${cfg.fixIcon.appPath};
then
$DRY_RUN_CMD sudo ${fileicon} rm ${cfg.fixIcon.appPath}
fi
'';
fixKittyIcon = lib.hm.dag.entryAfter [ "darwinApps" ] ''
$DRY_RUN_CMD sudo ${fileicon} set ${cfg.fixIcon.appPath} ${cfg.fixIcon.iconPath}
'';
};
programs.kitty.settings = optionalAttrs cfg.colors.enable programs.kitty.settings = optionalAttrs cfg.colors.enable
( (