1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2025-12-06 08:10:43 +01:00
flake/system.nix
Ryan Cao 4919ce7e91
feat: add discord-applemusic-rich-presence
with overlay to use package from PR
2023-07-27 14:19:23 +08:00

150 lines
2.8 KiB
Nix

{
pkgs,
attic,
agenix,
fenix,
catppuccin,
caarlos0,
...
}: {
environment.systemPackages = with pkgs; [
nil
alejandra
nixpkgs-fmt
attic-client
cachix
direnv
fenix.packages.${system}.stable.defaultToolchain
ccache
deno
fnm
bun
(python311.withPackages (ps:
with ps; [
yt-dlp
xkcdpass
# catppuccin-catwalk
]))
libffi
openssl
rust-analyzer
nodePackages.typescript-language-server
pkgs."_1password"
age
pkgs.agenix
asciinema
bat
btop
cloudflared
doggo
doppler
du-dust
exiftool
fd
ffmpeg
flyctl
fzf
gh
gen-license
gum
hyperfine
jq
just
spicetify-cli
mkcert
nerdfix
pscale
pyenv
railway
redis
silicon
tealdeer
tokei
vhs
vivid
xh
zoxide
caarlos0.packages.${system}.fork-cleaner
];
services.nix-daemon.enable = true;
nix.package = pkgs.nix;
nix.settings = {
experimental-features = "nix-command flakes";
build-users-group = "nixbld";
trusted-users = ["ryanccn"];
auto-optimise-store = true;
extra-platforms = ["x86_64-darwin" "aarch64-darwin"];
# extra-sandbox-paths = ["/nix/var/cache/ccache"];
extra-substituters = [
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
nixpkgs = {
overlays = [
attic.overlays.default
agenix.overlays.default
fenix.overlays.default
(import ./overlays/discord-applemusic-rich-presence.nix)
(import ./overlays/ryan-mono-bin.nix)
];
config.allowUnfree = true;
hostPlatform = "aarch64-darwin";
};
programs.zsh.enable = true;
programs.fish.enable = true;
programs.fish.shellInit = ''
for p in /run/current-system/sw/bin
if not contains $p $fish_user_paths
set -g fish_user_paths $p $fish_user_paths
end
end
'';
homebrew = {
enable = true;
caskArgs.require_sha = true;
onActivation = {
autoUpdate = true;
cleanup = "uninstall";
upgrade = true;
};
casks = let
noQuarantine = name: {
inherit name;
args = {no_quarantine = true;};
};
in [
"blackhole-16ch"
(noQuarantine "eloston-chromium")
"sf-symbols"
];
};
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {
agenixModule = agenix.homeManagerModules.age;
ctpModule = catppuccin.homeManagerModules.catppuccin;
caarlosModule = caarlos0.homeManagerModules.default;
};
users.users.ryanccn.home = "/Users/ryanccn";
home-manager.users.ryanccn = import ./home.nix;
system.stateVersion = 4;
}