This repository has been archived by the owner on Aug 29, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
19689f5
commit 81bc443
Showing
7 changed files
with
80 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
description = "Silvy"; | ||
|
||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | ||
|
||
outputs = { nixpkgs, ... }: let | ||
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed; | ||
in { | ||
# Devshell for bootstrapping; acessible via 'nix develop' or 'nix-shell' (legacy) | ||
devShells = forAllSystems (systems: | ||
let pkgs = nixpkgs.legacyPackages.${systems}; | ||
in import ./shell.nix { inherit pkgs; } | ||
); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# A nixpkgs instance that is grabbed from the pinned nixpkgs commit in the lock file | ||
# Useful to avoid using channels when using legacy nix commands | ||
let lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.nixpkgs.locked; | ||
in | ||
import (fetchTarball { | ||
url = "https://github.com/nixos/nixpkgs/archive/${lock.rev}.tar.gz"; | ||
sha256 = lock.narHash; | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Shell for bootstrapping flake-enabled nix and home-manager | ||
# Enter it through 'nix develop' or (legacy) 'nix-shell' | ||
|
||
{ pkgs ? (import ./nixpkgs.nix) { } }: { | ||
default = pkgs.mkShell { | ||
# Enable experimental features without having to specify the argument | ||
NIX_CONFIG = "experimental-features = nix-command flakes"; | ||
buildInputs = with pkgs; [ | ||
gnumake | ||
nixpkgs-fmt | ||
nixd | ||
bun | ||
nodejs_20 | ||
]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters