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

refactor: split system into modules

This commit is contained in:
Ryan Cao 2023-08-30 23:45:37 +08:00
parent 3a7c130767
commit 8c087c0eb3
Signed by: ryanccn
SSH key fingerprint: SHA256:NtP/BlVhoQq4xU6BEcZeT8nIPvHntkJ3lIc2yB+F09E
8 changed files with 182 additions and 164 deletions

35
modules/nix.nix Normal file
View file

@ -0,0 +1,35 @@
{
pkgs,
inputs,
...
}: {
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 = [
inputs.attic.overlays.default
inputs.discord-applemusic-rich-presence.overlays.default
inputs.nyoom.overlays.default
(import ../overlays/ryan-mono-bin.nix)
];
config.allowUnfree = true;
hostPlatform = "aarch64-darwin";
};
}