Flake for my NixOS devices

Clean up

Spoonbaker 3bbc21dc e7f0fb4f

+12 -9
+1 -1
flake.lock
··· 419 419 "type": "github" 420 420 }, 421 421 "original": { 422 - "owner": "Mic92", 422 + "owner": "nix-community", 423 423 "repo": "nix-index-database", 424 424 "type": "github" 425 425 }
+2 -2
flake.nix
··· 5 5 nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 6 6 flakelight.url = "github:nix-community/flakelight"; 7 7 flakelight.inputs.nixpkgs.follows = "nixpkgs"; 8 - nix-index-db.url = "github:Mic92/nix-index-database"; 8 + nix-index-db.url = "github:nix-community/nix-index-database"; 9 9 nix-index-db.inputs.nixpkgs.follows = "nixpkgs"; 10 10 hm.url = "github:nix-community/home-manager"; 11 11 hm.inputs.nixpkgs.follows = "nixpkgs"; ··· 54 54 }; 55 55 packages = 56 56 nixpkgs.lib.genAttrs ["gh-grader-preview" "wayland-mpris-idle-inhibit" "nu_plugin_dbus"] 57 - (i: {pkgs}: let input = builtins.getAttr i inputs; in input.packages.${pkgs.system}.default); 57 + (i: {pkgs}: inputs.${i}.packages.${pkgs.system}.default); 58 58 nixDir = ./.; 59 59 nixDirAliases = { 60 60 nixosConfigurations = ["systemConfigs"];
+9 -6
justfile
··· 3 3 4 4 [private] 5 5 alias u := update 6 - # u: update all inputs 6 + # u: update all inputs 7 7 update: 8 8 nix flake update 9 9 10 10 [private] 11 11 alias b := build 12 - # b: build the configuration 12 + # b: build the configuration 13 13 build: 14 14 nh os build . 15 15 16 + [private] 17 + alias bt := boot 18 + # bt: make the configuration the boot default without activating it 16 19 boot: 17 20 nh os boot . 18 21 19 22 [private] 20 23 alias s := switch 21 - # s: activate configuration & add to boot menu 24 + # s: activate configuration & add to boot menu 22 25 switch: 23 26 nh os switch --ask . 24 27 25 28 [private] 26 29 alias c := check 27 - # c: run flake checks, including making sure `.#repl` and the system config evaluate 30 + # c: run all flake checks, including making sure all system configs evaluate 28 31 check: 29 32 nix flake check .# --show-trace 30 33 31 34 [private] 32 35 alias f := format 33 - # f: run nix fmt on the flake 36 + # f: format this flake 34 37 format: 35 38 nix fmt 36 39 37 40 [private] 38 41 alias gc := garbage-collect 39 - # gc: Run nix collect-garbage -d 42 + # gc: run a garbage collection 40 43 garbage-collect: 41 44 nh clean all 42 45