1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2025-12-06 08:10:43 +01:00
flake/system.nix

146 lines
2.8 KiB
Nix

{
pkgs,
attic,
agenix,
fenix,
catppuccin,
discord-applemusic-rich-presence,
...
}: {
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
railway
redis
silicon
tealdeer
tokei
vhs
vivid
xh
zoxide
];
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-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
discord-applemusic-rich-presence.overlays.default
(import ./overlays/ryan-mono-bin.nix)
];
config.allowUnfree = true;
hostPlatform = "aarch64-darwin";
};
system.activationScripts.extraActivation = {
text = ''
set -eo pipefail
HOME="/var/root" ${pkgs.lib.getExe pkgs.nvd} --nix-bin-dir=${pkgs.nix}/bin diff /run/current-system "$systemConfig"
'';
};
programs.zsh.enable = true;
programs.fish.enable = true;
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;
discord-applemusic-rich-presence = discord-applemusic-rich-presence.homeManagerModules.default;
};
users.users.ryanccn.home = "/Users/ryanccn";
home-manager.users.ryanccn = import ./home.nix;
system.stateVersion = 4;
}