1
0
Fork 0
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:
Ryan Cao 2024-02-10 11:56:31 +08:00
parent bb39b10e1f
commit de8503d9a6
Signed by: ryanccn
SSH key fingerprint: SHA256:NtP/BlVhoQq4xU6BEcZeT8nIPvHntkJ3lIc2yB+F09E
34 changed files with 181 additions and 194 deletions

View 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"
'';
};
}

View file

@ -3,9 +3,7 @@
inputs,
config,
...
}: let
flakeOverlays = import ../overlays;
in {
}: {
services.nix-daemon.enable = true;
nix.package = pkgs.nix;
@ -26,17 +24,6 @@ in {
trusted-users = ["ryanccn"];
sandbox = true;
extra-substituters = [
"https://nix-community.cachix.org"
"https://crane.cachix.org"
"https://cache.garnix.io"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"crane.cachix.org-1:8Scfpmn9w+hGdXH/Q9tTLiYAE/2dnJYRJP7kl80GuRk="
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
];
nix-path = config.nix.nixPath;
};
@ -49,8 +36,6 @@ in {
inputs.choirpack.overlays.default
inputs.nyoom.overlays.default
inputs.fh.overlays.default
flakeOverlays.ryan-mono-bin
flakeOverlays.ibm-plex
];
config.allowUnfree = true;

View file

@ -15,19 +15,6 @@
nix-melt
# fh
(fenix.combine (
with fenix;
with stable; [
cargo
rustc
rustfmt
clippy
rust-src
rust-docs
targets.wasm32-unknown-unknown.stable.rust-std
]
))
fnm
deno
bun