Compare commits
No commits in common. "7f9079390993574a830a4b4eb2b4eeca002599be" and "160f3ab303eddb4c018360190e7c73d7335049d1" have entirely different histories.
7f90793909
...
160f3ab303
10
darwin.nix
10
darwin.nix
|
@ -1,7 +1,6 @@
|
|||
{ system, pkgs, pkgs-unsupported, nixpkgs-flake, ... }:
|
||||
|
||||
let prismlauncher = pkgs-unsupported.prismlauncher.override { jdks = [ pkgs.jdk8 pkgs.jdk21 ]; };
|
||||
fileicon = import ./fileicon.nix { inherit pkgs; };
|
||||
in
|
||||
{
|
||||
# TODO: nix options should be joint for darwin and nix-os
|
||||
|
@ -121,7 +120,6 @@ in
|
|||
|
||||
system.defaults.dock.persistent-apps = [
|
||||
# Finder? LaunchPad?
|
||||
"/System/Applications/Launchpad.app/"
|
||||
"${pkgs.keepassxc}/Applications/KeePassXC.app"
|
||||
"/System/Applications/Calendar.app/"
|
||||
"/System/Applications/Mail.app/"
|
||||
|
@ -135,18 +133,12 @@ in
|
|||
"/Applications/krita.app/"
|
||||
"${pkgs.inkscape}/Applications/Inkscape.app/"
|
||||
"/Users/xenia/Applications/Home Manager Apps/Alacritty.app"
|
||||
"/Applications/"
|
||||
"/Applications/Nix Apps/"
|
||||
];
|
||||
|
||||
# Set desktop background
|
||||
system.activationScripts.extraActivation.text = ''
|
||||
echo "Setting background image..."
|
||||
osascript -e "tell application \"System Events\" to tell every desktop to set picture to \"${./backgrounds/enby-mac.png}\" as POSIX file"
|
||||
'';
|
||||
system.activationScripts.postActivation.text = ''
|
||||
echo "Setting nix-apps folder icon..."
|
||||
${fileicon}/bin/fileicon set '/Applications/Nix Apps/' ${./nix-apps-folder.png}
|
||||
'';
|
||||
|
||||
system.defaults.menuExtraClock = {
|
||||
ShowSeconds = true;
|
||||
|
|
23
fileicon.nix
23
fileicon.nix
|
@ -1,23 +0,0 @@
|
|||
{ pkgs }:
|
||||
let
|
||||
name = "fileicon";
|
||||
version = "v0.3.4";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "mklement0";
|
||||
repo = name;
|
||||
rev = version;
|
||||
hash = "sha256-AqAnY/neBIkxgB5ioyExO4NSLw0Rk4wTo9hcCHTqOQ8=";
|
||||
};
|
||||
in pkgs.stdenv.mkDerivation {
|
||||
inherit src name version;
|
||||
|
||||
dontBuild = true;
|
||||
installPhase = ''
|
||||
cd "$src"
|
||||
mkdir -p "$out/bin" "$out/share/man"
|
||||
cp bin/fileicon "$out/bin/"
|
||||
cp man/fileicon.1 "$out/share/man"
|
||||
'';
|
||||
|
||||
# TODO: Run the test suite?
|
||||
}
|
|
@ -63,8 +63,6 @@
|
|||
mkNixOsGraphical = opts: import ./nixos/graphical.nix opts;
|
||||
mkNixOsNetworking = opts: import ./nixos/networking.nix opts;
|
||||
in {
|
||||
packages."aarch64-darwin".fileicon = import ./fileicon.nix { pkgs = mkPkgs "aarch64-darwin"; };
|
||||
|
||||
homeConfigurations."xenia@Joe-Bidens-MacBook-Pro" =
|
||||
let
|
||||
system = "aarch64-darwin";
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 560 KiB |
Loading…
Reference in New Issue
Block a user