Skip to content

Instantly share code, notes, and snippets.

View mikelane's full-sized avatar
💾
Engineering Software

Mike Lane mikelane

💾
Engineering Software
  • Portland, OR
View GitHub Profile
@mikelane
mikelane / configuration.nix
Created March 29, 2024 00:12
$HOME/hosts/desktop/configuration.nix
{ config, lib, pkgs, helix, ... }:
{
imports =
[
# Include the results of the hardware scan.
./hardware-configuration.nix
../../openrgb
];
@mikelane
mikelane / flake.nix
Created March 29, 2024 00:17
$HOME/my-company/infrastructure/flake.nix
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
devenv.url = "github:cachix/devenv";
};
nixConfig = {
extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=";
extra-substituters = "https://devenv.cachix.org";
};
@mikelane
mikelane / .envrc
Created March 29, 2024 00:20
$HOME/workplace/infrastructure/.envrc
export FLAKE_BASE=$HOME/nixos/my-company
export FLAKE_PATH=$FLAKE_BASE/${PWD##*/}
watch_file $FLAKE_PATH/flake.nix
watch_file .env
use flake $FLAKE_PATH --impure
export PYTHONPATH=$PWD