Skip to content

Commit

Permalink
fix darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
harukafractus committed Oct 29, 2024
1 parent b0b2009 commit 75fb468
Show file tree
Hide file tree
Showing 6 changed files with 128 additions and 13 deletions.
2 changes: 2 additions & 0 deletions configs/darwin-configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
whisky
lunarfyi
sol
python3Full
libreoffice-bin
#standardnotes
];

Expand Down
4 changes: 3 additions & 1 deletion configs/home-manager.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{ pkgs, config, lib, ... }: {

home = {
username = "haruka";
homeDirectory = "/Users/haruka";
Expand Down Expand Up @@ -43,6 +42,8 @@
source-han-serif
source-han-code-jp
meslo-lgs-nf
fortune-kind
cowsay
eza
bat
];
Expand All @@ -60,6 +61,7 @@
source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme
source ~/.p10k.zsh
fi
fortune-kind | cowsay -f koala
'';

shellAliases = {
Expand Down
122 changes: 112 additions & 10 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@

nix-darwin.url = "github:LnL7/nix-darwin";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
mac-app-util.url = "github:hraban/mac-app-util";
};

outputs = { self, nixpkgs, home-manager, ... }@attrs: {
outputs = { self, nixpkgs, home-manager, mac-app-util, ... }@attrs: {
darwinConfigurations."ka-macbook" = attrs.nix-darwin.lib.darwinSystem {
modules = [
home-manager.darwinModules.home-manager
mac-app-util.darwinModules.default
./configs/darwin-configuration.nix
{ networking.hostName = "ka-macbook"; }
];
Expand Down
6 changes: 6 additions & 0 deletions nur-everything/overlays/mac-apps/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,10 @@ final: prev: {
pname = "sol";
sourceRoot = "Sol.app";
};

telegram-desktop = final.extraApplications rec {
pname = "telegram-desktop";
sourceRoot = "Telegram.app";
nativeBuildInputs = [ prev.pkgs.undmg ];
};
}
3 changes: 2 additions & 1 deletion nur-everything/overlays/mac-apps/update.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ pkgs.writeShellApplication {
\"librewolf-arm64\": $(get_gitlab "librewolf-community%2Fbrowser%2Fbsys6" "arm64-package.dmg"),
\"floorp\": $(get_github "Floorp-Projects" "Floorp" "floorp-macOS-universal.dmg"),
\"lunarfyi\": $(get_github "alin23" "Lunar" ".dmg"),
\"sol\": $(get_github "ospfranco" "sol" ".zip")
\"sol\": $(get_github "ospfranco" "sol" ".zip"),
\"telegram-desktop\": $(get_github "telegramdesktop" "tdesktop" ".dmg")
}" > src.json
'';
Expand Down

0 comments on commit 75fb468

Please sign in to comment.