Did you know that it is rather easy to setup a VM to test your NixOs configuration?
# flake.nix
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
{ | |
outputs = { | |
self, | |
nixpkgs, | |
}: { | |
nixosModules.base = {pkgs, ...}: { | |
system.stateVersion = "22.05"; | |
# Configure networking | |
networking.useDHCP = false; |
{ | |
inputs = { | |
nixpkgs = { | |
url = "github:nixos/nixpkgs/nixos-unstable"; | |
}; | |
flake-utils = { | |
url = "github:numtide/flake-utils"; | |
}; | |
}; | |
outputs = { nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system: |
# I found some good resources but they seem to do a bit too much (maybe from a time when there were more bugs). | |
# So here's a minimal Gist which worked for me as an install on a new M1 Pro. | |
# Inspired by https://github.com/malob/nixpkgs I highly recommend looking at malob's repo for a more thorough configuration | |
# | |
# Let's get started | |
# | |
# Let's install nix (at the time of writing this is version 2.5.1 | |
curl -L https://nixos.org/nix/install | sh | |
# I might not have needed to, but I rebooted |
iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/debloat')) | |
first_number=input('enter the first number '); | |
second_number=input('enter the second number '); | |
print(float(first_number) + float(second_number)); |
<Row className="timeline-canvas-row"> | |
<Col> | |
<canvas | |
id="timeline-canvas" | |
ref={this.chartRef} | |
> | |
</canvas> | |
<div className="results"> | |
Results | |
</div> |
git remote prune origin |
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "java", | |
"name": "Debug (Launch) - Current File", | |
"request": "launch", |
grep interface index.d.ts | cut -d' ' -f6 | gsed -E 's/^(.*)$/export type \1 = fhir.\1;/g' | copy |