NixOS config for jollywhoppers servers
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

Made a basic flake skeleton

of-the-stars 60cfec30

+53
+1
.envrc
··· 1 + use flake
+52
flake.nix
··· 1 + { 2 + description = "A basic flake for dev environments and packaging"; 3 + 4 + inputs = { 5 + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; 6 + flake-utils.url = "github:numtide/flake-utils"; 7 + }; 8 + 9 + outputs = 10 + { 11 + self, 12 + nixpkgs, 13 + flake-utils, 14 + }: 15 + flake-utils.lib.eachDefaultSystem ( 16 + system: 17 + let 18 + pkgs = import nixpkgs { inherit system; }; 19 + # TODO: Change package name 20 + pname = "foo"; 21 + src = ./.; 22 + in 23 + { 24 + devShells.default = pkgs.mkShell { 25 + buildInputs = with pkgs; [ 26 + # TODO: Place development dependencies in here 27 + # package managers, build tools, debuggers, etc 28 + 29 + # for example 30 + gnumake # this is a build tool, you just add the package name 31 + ]; 32 + 33 + # Run whatever commands you'd like when entering the shell 34 + shellHook = '' 35 + echo "Entering nix shell!!"; 36 + ''; 37 + }; 38 + 39 + packages.default = derivation { 40 + inherit system pname src; 41 + # TODO: Add package build step 42 + builder = with pkgs; "${bash}/bin/bash"; 43 + args = [ 44 + "-c" 45 + "echo foo > $out" 46 + ]; 47 + }; 48 + 49 + formatter.${system} = nixpkgs.legacyPackages.${system}.nixfmt-tree; 50 + } 51 + ); 52 + }