mirror of
https://github.com/ryanccn/flake.git
synced 2026-01-27 04:06:28 +01:00
refactor: use snowfall
This commit is contained in:
parent
bb39b10e1f
commit
de8503d9a6
34 changed files with 181 additions and 194 deletions
8
modules/darwin/activation/default.nix
Normal file
8
modules/darwin/activation/default.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{pkgs}: {
|
||||
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"
|
||||
'';
|
||||
};
|
||||
}
|
||||
39
modules/darwin/homebrew/default.nix
Normal file
39
modules/darwin/homebrew/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
_: {
|
||||
environment.variables = {
|
||||
HOMEBREW_NO_ANALYTICS = "1";
|
||||
HOMEBREW_NO_INSECURE_REDIRECT = "1";
|
||||
HOMEBREW_NO_EMOJI = "1";
|
||||
};
|
||||
|
||||
homebrew = {
|
||||
enable = true;
|
||||
caskArgs.require_sha = true;
|
||||
onActivation = {
|
||||
autoUpdate = true;
|
||||
cleanup = "uninstall";
|
||||
upgrade = true;
|
||||
};
|
||||
|
||||
brews = [
|
||||
"pandoc"
|
||||
];
|
||||
|
||||
casks = let
|
||||
noQuarantine = name: {
|
||||
inherit name;
|
||||
args = {
|
||||
no_quarantine = true;
|
||||
};
|
||||
};
|
||||
in [
|
||||
"blackhole-16ch"
|
||||
(noQuarantine "eloston-chromium")
|
||||
"sf-symbols"
|
||||
"1password/tap/1password-cli"
|
||||
];
|
||||
|
||||
taps = [
|
||||
"1password/tap"
|
||||
];
|
||||
};
|
||||
}
|
||||
44
modules/darwin/nix/default.nix
Normal file
44
modules/darwin/nix/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
services.nix-daemon.enable = true;
|
||||
nix.package = pkgs.nix;
|
||||
|
||||
nix.registry = {
|
||||
n.flake = inputs.nixpkgs;
|
||||
};
|
||||
|
||||
nix.nixPath = [
|
||||
"nixpkgs=${inputs.nixpkgs.outPath}"
|
||||
];
|
||||
|
||||
nix.settings = {
|
||||
experimental-features = "nix-command flakes";
|
||||
auto-optimise-store = true;
|
||||
extra-platforms = ["x86_64-darwin" "aarch64-darwin"];
|
||||
|
||||
build-users-group = "nixbld";
|
||||
trusted-users = ["ryanccn"];
|
||||
sandbox = true;
|
||||
|
||||
nix-path = config.nix.nixPath;
|
||||
};
|
||||
|
||||
nixpkgs = {
|
||||
overlays = [
|
||||
inputs.fenix.overlays.default
|
||||
inputs.am.overlays.default
|
||||
inputs.nish.overlays.default
|
||||
inputs.nrr.overlays.default
|
||||
inputs.choirpack.overlays.default
|
||||
inputs.nyoom.overlays.default
|
||||
inputs.fh.overlays.default
|
||||
];
|
||||
|
||||
config.allowUnfree = true;
|
||||
hostPlatform = "aarch64-darwin";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue