Skip to content

Instantly share code, notes, and snippets.

View Noah765's full-sized avatar

Noah765 Noah765

View GitHub Profile
@Noah765
Noah765 / eval-modules.nix
Last active July 26, 2024 11:12
Debugging
{
prefix ? [],
specialArgs ? {},
modules ? [],
osModules ? [],
hmModules ? [],
}:
with specialArgs.inputs.nixpkgs.lib; let
inherit (specialArgs.inputs) nixpkgs home-manager;
inherit (nixpkgs) lib;
@Noah765
Noah765 / impermanence.nix
Last active July 10, 2024 15:15
Debugging 'home.stateVersion is used but not defined.'
{
lib,
inputs,
options,
osOptions,
hmOptions,
config,
osConfig,
...
}:
@Noah765
Noah765 / flake.nix
Last active July 9, 2024 19:54
Combined Manager debugging
{
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
outputs =
inputs:
let
lib = inputs.nixpkgs.lib;
combinedManagerToNixosConfig =
config:
config
@Noah765
Noah765 / linear-system-solver.dart
Last active June 21, 2024 10:27
Solver for linear systems of equations (using the Gaussian method)
import 'dart:math';
void main() {
final matrix = <List<double>>[
[1, -4, 5, 3],
[3, 3, 7, 13],
[0, -2, -3, -1],
];
print('Input:');