mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 08:10:43 +01:00
feat: add nix-darwin-custom-icons
This commit is contained in:
parent
a387054cfe
commit
e4672c464a
4 changed files with 37 additions and 7 deletions
28
flake.lock
generated
28
flake.lock
generated
|
|
@ -84,6 +84,21 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"darwin-custom-icons": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1693056564,
|
||||||
|
"narHash": "sha256-hFZVorJ0jdTDqM0DKArtOyMIxVX14oNpqG+58j3WLKg=",
|
||||||
|
"owner": "ryanccn",
|
||||||
|
"repo": "nix-darwin-custom-icons",
|
||||||
|
"rev": "7001db539da6247a18e9021c2d387f72db005466",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "ryanccn",
|
||||||
|
"repo": "nix-darwin-custom-icons",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"discord-applemusic-rich-presence": {
|
"discord-applemusic-rich-presence": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|
@ -180,11 +195,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1692808169,
|
"lastModified": 1692934111,
|
||||||
"narHash": "sha256-x9Opq06rIiwdwGeK2Ykj69dNc2IvUH1fY55Wm7atwrE=",
|
"narHash": "sha256-9EEE59v/esKNMR5zKbLRV9NoRPYvERw5jHQOnfr47bk=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "9201b5ff357e781bf014d0330d18555695df7ba8",
|
"rev": "1e44a037bbf4fcaba041436e65e87be88f3f495b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -226,6 +241,7 @@
|
||||||
"attic": "attic",
|
"attic": "attic",
|
||||||
"catppuccin": "catppuccin",
|
"catppuccin": "catppuccin",
|
||||||
"crane": "crane",
|
"crane": "crane",
|
||||||
|
"darwin-custom-icons": "darwin-custom-icons",
|
||||||
"discord-applemusic-rich-presence": "discord-applemusic-rich-presence",
|
"discord-applemusic-rich-presence": "discord-applemusic-rich-presence",
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
|
|
@ -246,11 +262,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1692929460,
|
"lastModified": 1693015707,
|
||||||
"narHash": "sha256-zdN6UVtEml7t0WQHVy0avsE+TWJLklXnqJyiPaOa8u0=",
|
"narHash": "sha256-SFr93DYn502sVT9nB5U8/cKg1INyEk/jCeq8tHioz7Y=",
|
||||||
"owner": "oxalica",
|
"owner": "oxalica",
|
||||||
"repo": "rust-overlay",
|
"repo": "rust-overlay",
|
||||||
"rev": "673e2d3d2a3951adc6f5e3351c9fce6ad130baed",
|
"rev": "e90223633068a44f0fb62374e0fa360ccc987292",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,8 @@
|
||||||
inputs.flake-compat.follows = "flake-compat";
|
inputs.flake-compat.follows = "flake-compat";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
darwin-custom-icons.url = "github:ryanccn/nix-darwin-custom-icons";
|
||||||
|
|
||||||
flake-utils = {
|
flake-utils = {
|
||||||
url = "github:numtide/flake-utils";
|
url = "github:numtide/flake-utils";
|
||||||
};
|
};
|
||||||
|
|
@ -73,13 +75,15 @@
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
nix-darwin,
|
nix-darwin,
|
||||||
home-manager,
|
home-manager,
|
||||||
|
darwin-custom-icons,
|
||||||
...
|
...
|
||||||
} @ inputs: {
|
} @ inputs: {
|
||||||
darwinConfigurations.Ryans-MacBook-Pro = nix-darwin.lib.darwinSystem {
|
darwinConfigurations.Ryans-MacBook-Pro = nix-darwin.lib.darwinSystem {
|
||||||
modules = [
|
modules = [
|
||||||
|
home-manager.darwinModules.home-manager
|
||||||
|
darwin-custom-icons.darwinModules.default
|
||||||
./system.nix
|
./system.nix
|
||||||
./users.nix
|
./users.nix
|
||||||
home-manager.darwinModules.home-manager
|
|
||||||
];
|
];
|
||||||
|
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
|
|
|
||||||
BIN
icons/notion.icns
Normal file
BIN
icons/notion.icns
Normal file
Binary file not shown.
10
system.nix
10
system.nix
|
|
@ -115,6 +115,16 @@
|
||||||
|
|
||||||
security.pam.enableSudoTouchIdAuth = true;
|
security.pam.enableSudoTouchIdAuth = true;
|
||||||
|
|
||||||
|
environment.customIcons = {
|
||||||
|
enable = true;
|
||||||
|
icons = [
|
||||||
|
{
|
||||||
|
path = "/Applications/Notion.app";
|
||||||
|
icon = ./icons/notion.icns;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue