Skip to content

jasonrm/nix-chips

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Templated Setup

git init

nix flake new -t github:jasonrm/nix-chips .

cat ./nix/devShells/user-hostname.nix \
    | python3 -c 'import os,sys;[sys.stdout.write(os.path.expandvars(l)) for l in sys.stdin]' \
    > ./nix/devShells/$(whoami)-$(hostname -s).nix

git add .

direnv allow
# setup secrets
arcanum edit secrets/project.env.age

Manual Setup

flake.nix

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
    nixpkgs-staging.url = "github:jasonrm/nixpkgs-staging";

    chips.url = "github:jasonrm/nix-chips";
    chips.inputs.nixpkgs.follows = "nixpkgs";
    chips.inputs.nixpkgs-staging.follows = "nixpkgs-staging";
  };

  outputs = {
    self,
    nixpkgs,
    chips,
    ...
  }:
    chips.lib.use {
      devShellsDir = ./nix/devShells;
      packagesDir = ./nix/packages;
      nixosModulesDir = ./nix/nixosModules;
      dockerImagesDir = ./nix/dockerImages;
    };
}

.envrc

nix_direnv_manual_reload
use flake .#${USER}-$(hostname -s)
dotenv_if_exists .env.devshell
dotenv_if_exists .env.secrets
layout php
layout node

Use

supervisord
# or, to see what will be started
supervisord-debug

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published