Kieran's opinionated (and probably slightly dumb) nix config

feat: add arduino tools

+44
+17
flake.lock
··· 482 "type": "github" 483 } 484 }, 485 "nixpkgs_2": { 486 "locked": { 487 "lastModified": 1697723726, ··· 574 "nix-vscode-extensions": "nix-vscode-extensions", 575 "nixos-hardware": "nixos-hardware", 576 "nixpkgs": "nixpkgs_6", 577 "spicetify-nix": "spicetify-nix" 578 } 579 },
··· 482 "type": "github" 483 } 484 }, 485 + "nixpkgs-unstable": { 486 + "locked": { 487 + "lastModified": 1722185531, 488 + "narHash": "sha256-veKR07psFoJjINLC8RK4DiLniGGMgF3QMlS4tb74S6k=", 489 + "owner": "nixos", 490 + "repo": "nixpkgs", 491 + "rev": "52ec9ac3b12395ad677e8b62106f0b98c1f8569d", 492 + "type": "github" 493 + }, 494 + "original": { 495 + "owner": "nixos", 496 + "ref": "nixos-unstable", 497 + "repo": "nixpkgs", 498 + "type": "github" 499 + } 500 + }, 501 "nixpkgs_2": { 502 "locked": { 503 "lastModified": 1697723726, ··· 590 "nix-vscode-extensions": "nix-vscode-extensions", 591 "nixos-hardware": "nixos-hardware", 592 "nixpkgs": "nixpkgs_6", 593 + "nixpkgs-unstable": "nixpkgs-unstable", 594 "spicetify-nix": "spicetify-nix" 595 } 596 },
+16
flake.nix
··· 4 inputs = { 5 # Nixpkgs 6 nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; 7 8 # NixOS hardware configuration 9 hardware.url = "github:NixOS/nixos-hardware/master"; ··· 38 outputs = { 39 self, 40 nixpkgs, 41 agenix, 42 home-manager, 43 nixos-hardware, ··· 45 ... 46 } @ inputs: let 47 inherit (self) outputs; 48 in { 49 # NixOS configuration entrypoint 50 # Available through 'nixos-rebuild --flake .#your-hostname' 51 nixosConfigurations = { 52 moonlark = nixpkgs.lib.nixosSystem { 53 system = "x86_64-linux"; 54 specialArgs = {inherit inputs outputs;}; 55 # > Our main nixos configuration file < 56 modules = [ 57 inputs.disko.nixosModules.disko 58 { disko.devices.disk.disk1.device = "/dev/vda"; } 59 agenix.nixosModules.default 60 ./moonlark/configuration.nix 61 ]; 62 }; 63 };
··· 4 inputs = { 5 # Nixpkgs 6 nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; 7 + nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; 8 9 # NixOS hardware configuration 10 hardware.url = "github:NixOS/nixos-hardware/master"; ··· 39 outputs = { 40 self, 41 nixpkgs, 42 + nixpkgs-unstable, 43 agenix, 44 home-manager, 45 nixos-hardware, ··· 47 ... 48 } @ inputs: let 49 inherit (self) outputs; 50 + system = "x86_64-linux"; 51 + unstable-overlays = { 52 + nixpkgs.overlays = [ 53 + (final: prev: { 54 + unstable = import nixpkgs-unstable { 55 + inherit system; 56 + config.allowUnfree = true; 57 + }; 58 + }) 59 + ]; 60 + }; 61 in { 62 # NixOS configuration entrypoint 63 # Available through 'nixos-rebuild --flake .#your-hostname' 64 nixosConfigurations = { 65 moonlark = nixpkgs.lib.nixosSystem { 66 system = "x86_64-linux"; 67 + 68 specialArgs = {inherit inputs outputs;}; 69 + 70 # > Our main nixos configuration file < 71 modules = [ 72 inputs.disko.nixosModules.disko 73 { disko.devices.disk.disk1.device = "/dev/vda"; } 74 agenix.nixosModules.default 75 ./moonlark/configuration.nix 76 + unstable-overlays 77 ]; 78 }; 79 };
+7
home-manager/home.nix
··· 382 github.vscode-github-actions 383 yoavbls.pretty-ts-errors 384 esbenp.prettier-vscode 385 ]; 386 userSettings = { 387 "editor.semanticHighlighting.enabled" = true; ··· 398 "git.autofetch" = true; 399 "git.confirmSync" = false; 400 "github.copilot.editor.enableAutoCompletions" = false; 401 }; 402 }; 403
··· 382 github.vscode-github-actions 383 yoavbls.pretty-ts-errors 384 esbenp.prettier-vscode 385 + vsciot-vscode.vscode-arduino 386 + ms-vscode.cpptools 387 + ms-vscode.vscode-serial-monitor 388 ]; 389 userSettings = { 390 "editor.semanticHighlighting.enabled" = true; ··· 401 "git.autofetch" = true; 402 "git.confirmSync" = false; 403 "github.copilot.editor.enableAutoCompletions" = false; 404 + 405 + "[json]" = { 406 + "editor.defaultFormatter" = "esbenp.prettier-vscode"; 407 + }; 408 }; 409 }; 410
+4
moonlark/configuration.nix
··· 6 lib, 7 config, 8 pkgs, 9 ... 10 }: { 11 # You can import other NixOS modules here ··· 75 pkgs.alacritty 76 pkgs.zsh 77 pkgs.starship 78 pkgs.swww 79 pkgs.sunwait 80 pkgs.sunpaper ··· 105 pkgs.go 106 pkgs.bun 107 pkgs.pitivi 108 ]; 109 110 services.gnome.gnome-keyring.enable = true;
··· 6 lib, 7 config, 8 pkgs, 9 + pkgs-unstable, 10 ... 11 }: { 12 # You can import other NixOS modules here ··· 76 pkgs.alacritty 77 pkgs.zsh 78 pkgs.starship 79 + pkgs.gh 80 pkgs.swww 81 pkgs.sunwait 82 pkgs.sunpaper ··· 107 pkgs.go 108 pkgs.bun 109 pkgs.pitivi 110 + pkgs.unstable.arduino-ide 111 + pkgs.unstable.arduino-cli 112 ]; 113 114 services.gnome.gnome-keyring.enable = true;