diff --git a/flake.lock b/flake.lock index 60a1460..1f47836 100644 --- a/flake.lock +++ b/flake.lock @@ -84,6 +84,21 @@ "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": { "inputs": { "nixpkgs": [ @@ -180,11 +195,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1692808169, - "narHash": "sha256-x9Opq06rIiwdwGeK2Ykj69dNc2IvUH1fY55Wm7atwrE=", + "lastModified": 1692934111, + "narHash": "sha256-9EEE59v/esKNMR5zKbLRV9NoRPYvERw5jHQOnfr47bk=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "9201b5ff357e781bf014d0330d18555695df7ba8", + "rev": "1e44a037bbf4fcaba041436e65e87be88f3f495b", "type": "github" }, "original": { @@ -226,6 +241,7 @@ "attic": "attic", "catppuccin": "catppuccin", "crane": "crane", + "darwin-custom-icons": "darwin-custom-icons", "discord-applemusic-rich-presence": "discord-applemusic-rich-presence", "flake-compat": "flake-compat", "flake-utils": "flake-utils", @@ -246,11 +262,11 @@ ] }, "locked": { - "lastModified": 1692929460, - "narHash": "sha256-zdN6UVtEml7t0WQHVy0avsE+TWJLklXnqJyiPaOa8u0=", + "lastModified": 1693015707, + "narHash": "sha256-SFr93DYn502sVT9nB5U8/cKg1INyEk/jCeq8tHioz7Y=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "673e2d3d2a3951adc6f5e3351c9fce6ad130baed", + "rev": "e90223633068a44f0fb62374e0fa360ccc987292", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 4f4d8b9..a4c4cac 100644 --- a/flake.nix +++ b/flake.nix @@ -58,6 +58,8 @@ inputs.flake-compat.follows = "flake-compat"; }; + darwin-custom-icons.url = "github:ryanccn/nix-darwin-custom-icons"; + flake-utils = { url = "github:numtide/flake-utils"; }; @@ -73,13 +75,15 @@ nixpkgs, nix-darwin, home-manager, + darwin-custom-icons, ... } @ inputs: { darwinConfigurations.Ryans-MacBook-Pro = nix-darwin.lib.darwinSystem { modules = [ + home-manager.darwinModules.home-manager + darwin-custom-icons.darwinModules.default ./system.nix ./users.nix - home-manager.darwinModules.home-manager ]; specialArgs = { diff --git a/icons/notion.icns b/icons/notion.icns new file mode 100644 index 0000000..1b9ea98 Binary files /dev/null and b/icons/notion.icns differ diff --git a/system.nix b/system.nix index 4be86dc..4655394 100644 --- a/system.nix +++ b/system.nix @@ -115,6 +115,16 @@ security.pam.enableSudoTouchIdAuth = true; + environment.customIcons = { + enable = true; + icons = [ + { + path = "/Applications/Notion.app"; + icon = ./icons/notion.icns; + } + ]; + }; + programs.fish.enable = true; programs.zsh.enable = true;