dev.fron.io nixrc / f0484f0
bao: unglobalify command-not-found Tony Olagbaiye 1 year, 1 day ago
4 changed file(s) with 13 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
8585 naersk = naersk.lib.${system};
8686 snack = pkgs.callPackage (import "${inputs.snack}/snack-lib");
8787 napalm = pkgs.callPackage inputs.napalm;
88 nixexprs = inputs.nixexprs;
8889 inherit (master.legacyPackages.${system}) pulseeffects;
8990 inherit (staged.legacyPackages.${system}) libgccjit sof-firmware;
9091 inherit (import bhipple { inherit pkgs; }) gccemacs;
105106 usr = import ./lib/utils.nix { inherit (nixpkgs) lib; };
106107 nurModules = inputs.nur.nixosModules;
107108 nurOverlays = inputs.nur.overlays;
108 nixexprs = inputs.nixexprs;
109109
110110 domains = import ./secrets/domains.nix;
111111 hosts = import ./secrets/hosts.nix;
0 { pkgs, nixexprs, ... }: {
0 { pkgs, ... }: {
11 imports = [ ./fish ./tmux ];
22
33 environment.shellAliases = { v = "$EDITOR"; };
4242 programs.thefuck.enable = true;
4343 programs.firejail.enable = true;
4444 programs.mtr.enable = true;
45 programs.command-not-found = {
46 enable = true;
47 dbPath = pkgs.runCommandNoCC "programs.sqlite" { inherit nixexprs; } ''
48 cat $nixexprs/nixos*/programs.sqlite > $out
49 '';
50 };
5145 }
5050 ./utilities/htop
5151 ./services/gnupg
5252 ./services/mpd
53 ./misc/command-not-found.nix
5354 ];
5455
5556 programs.home-manager.enable = true;
57 programs.command-not-found.enable = true;
5658 programs.qutebrowser.enable = true;
5759 programs.firefox.enable = true;
5860 programs.fish.enable = true;
0 { config ? {}, lib, pkgs, ... }:
1
2 with lib; let
3 cfg = config.programs.command-not-found;
4 in {
5 programs.command-not-found.dbPath = pkgs.runCommandNoCC "programs.sqlite" {} ''
6 cat ${pkgs.nixexprs}/nixos*/programs.sqlite > $out
7 '';
8 }