shellOptions: add `nix-attr-search` aliases

See https://github.com/h7x4/nix-attr-search for
more information
This commit is contained in:
Oystein Kristoffer Tveit 2022-11-26 17:14:38 +01:00
parent f2a89d7c82
commit 9c6a4e0da5
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
3 changed files with 49 additions and 14 deletions

View File

@ -59,11 +59,11 @@
"utils": "utils" "utils": "utils"
}, },
"locked": { "locked": {
"lastModified": 1668830718, "lastModified": 1669143911,
"narHash": "sha256-p5BRIr3yRqCOMNFUXArkz0/WtbhLAgtJLN5lzN5Tq2o=", "narHash": "sha256-15rTqvGmBmRcmX6sVCsjrqBEcID0KkRuYu/feLJx9Ew=",
"ref": "refs/heads/zellij-kdl-configuration-generator", "ref": "refs/heads/init-miniplayer",
"rev": "0987fc94313af85fd42a900d3525e9be7f2a89bb", "rev": "9ced47f180d4a98cf782587c221a29d18354956f",
"revCount": 2377, "revCount": 2378,
"type": "git", "type": "git",
"url": "file:///home/h7x4/git/home-manager" "url": "file:///home/h7x4/git/home-manager"
}, },
@ -72,13 +72,36 @@
"url": "file:///home/h7x4/git/home-manager" "url": "file:///home/h7x4/git/home-manager"
} }
}, },
"nix-attr-search": {
"inputs": {
"home-manager": [
"home-manager"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1669440958,
"narHash": "sha256-kMBkFFwXwTJEQQSoiP64ojnIEn+wz/G3+xNevkV6dis=",
"owner": "h7x4",
"repo": "nix-attr-search",
"rev": "ca3e27ec770bf3d3f980a7ff41718c528fd43ef1",
"type": "github"
},
"original": {
"owner": "h7x4",
"repo": "nix-attr-search",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1668908668, "lastModified": 1669378442,
"narHash": "sha256-oimCE4rY7Btuo/VYmA8khIyTHSMV7qUWTpz9w8yc9LQ=", "narHash": "sha256-nm+4PN0A4SnV0SzEchxrMyKPvI3Ld/aoom4PnHeHucs=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b68a6a27adb452879ab66c0eaac0c133e32823b2", "rev": "0faaf0a9bb6dedb69bfd43ac06fb27fadc476c51",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -89,11 +112,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1668765800, "lastModified": 1669320964,
"narHash": "sha256-rC40+/W6Hio7b/RsY8SvQPKNx4WqNcTgfYv8cUMAvJk=", "narHash": "sha256-EBFw+ge12Pcr3qCk8If3/eMBAoQLR7ytndXZoRevUtM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "52b2ac8ae18bbad4374ff0dd5aeee0fdf1aea739", "rev": "27ccd29078f974ddbdd7edc8e38c8c8ae003c877",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -108,6 +131,7 @@
"fonts": "fonts", "fonts": "fonts",
"home-manager": "home-manager", "home-manager": "home-manager",
"home-manager-local": "home-manager-local", "home-manager-local": "home-manager-local",
"nix-attr-search": "nix-attr-search",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-unstable": "nixpkgs-unstable",
"secrets": "secrets", "secrets": "secrets",

View File

@ -18,6 +18,12 @@
flake = false; flake = false;
}; };
nix-attr-search ={
url = "github:h7x4/nix-attr-search";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
fonts = { fonts = {
url = "path:/home/h7x4/git/fonts"; url = "path:/home/h7x4/git/fonts";
flake = false; flake = false;
@ -51,6 +57,7 @@
nixpkgs-unstable, nixpkgs-unstable,
home-manager, home-manager,
home-manager-local, home-manager-local,
nix-attr-search,
vscode-server, vscode-server,
secrets, secrets,
fonts, fonts,

View File

@ -1,4 +1,4 @@
{ pkgs, lib, extendedLib, config, ... }: let { pkgs, lib, extendedLib, inputs, config, ... }: let
sedColor = sedColor =
color: color:
@ -133,16 +133,20 @@ in rec {
"Nix Stuff" = { "Nix Stuff" = {
# FIXME: This for some reason uses an outdated version of home-manager and nixos-rebuild # FIXME: This for some reason uses an outdated version of home-manager and nixos-rebuild
# hs = "${pkgs.home-manager}/bin/home-manager switch";
# nxr = "sudo ${nixos-rebuild}/bin/nixos-rebuild switch"; # nxr = "sudo ${nixos-rebuild}/bin/nixos-rebuild switch";
hms = "home-manager switch";
nxr = "sudo nixos-rebuild switch"; nxr = "sudo nixos-rebuild switch";
nxp = "nix-shell -p "; nxp = "nix-shell -p ";
nxc = "sudoedit /etc/nixos/configuration.nix"; nxc = "sudoedit /etc/nixos/configuration.nix";
nxh = "vim ~/.config/nixpkgs/home.nix"; nxh = "vim ~/.config/nixpkgs/home.nix";
ns = "nix-shell"; ns = "nix-shell";
nxr-hm = "sudo nixos-rebuild switch --flake ~/nix#home-manager-tester";
nxr-ks = "sudo nixos-rebuild switch --flake ~/nix#kasei";
hms = toString inputs.nix-attr-search.packages.${pkgs.system}.home-manager-search;
nxo = toString inputs.nix-attr-search.packages.${pkgs.system}.nix-option-search;
}; };
# ░█▀▀░█▀█░█▀▀░▀█▀░█░█░█▀█░█▀▄░█▀▀ # ░█▀▀░█▀█░█▀▀░▀█▀░█░█░█▀█░█▀▄░█▀▀