dev.fron.io nixrc / 707679c
bao: make command-not-found global Tony Olagbaiye 1 year, 3 days ago
4 changed file(s) with 29 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
189189 "ref": "flakes",
190190 "repo": "nix",
191191 "type": "github"
192 }
193 },
194 "nixexprs": {
195 "flake": false,
196 "info": {
197 "lastModified": 1588198109,
198 "narHash": "sha256-lDjM7XeTCUl4FwXQdZGbY1KYi02l7UexXHxIoYYDbBY="
199 },
200 "locked": {
201 "narHash": "sha256-lDjM7XeTCUl4FwXQdZGbY1KYi02l7UexXHxIoYYDbBY=",
202 "type": "tarball",
203 "url": "https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz"
204 },
205 "original": {
206 "type": "tarball",
207 "url": "https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz"
192208 }
193209 },
194210 "nixpkgs": {
278294 "naersk": "naersk",
279295 "napalm": "napalm",
280296 "nix": "nix_2",
297 "nixexprs": "nixexprs",
281298 "nur": "nur",
282299 "small": "nixpkgs_3",
283300 "snack": "snack",
2222 inputs.naersk.url = "github:nmattia/naersk";
2323 inputs.naersk.inputs.nixpkgs.follows = "large";
2424
25 inputs.nixexprs = { url = "https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz"; flake = false; };
26
2527 inputs.emacs = { url = "github:nix-community/emacs-overlay"; flake = false; };
2628 inputs.mozilla = { url = "github:mozilla/nixpkgs-mozilla"; flake = false; };
2729 inputs.snack = { url = "github:nmattia/snack"; flake = false; };
2830 inputs.napalm = { url = "github:nmattia/napalm"; flake = false; };
31
2932 inputs.bhipple = { url = "github:bhipple/nur-packages"; flake = false; };
3033 inputs.epkgs = { url = "github:bqv/nixpkgs/emacs-native-pkgs"; };
3134
3235 outputs = inputs@{ self, master, staged, small, large,
33 nix, dwarffs, home, nur, naersk,
36 nix, dwarffs, home, nur, naersk, nixexprs,
3437 emacs, mozilla, snack, napalm, bhipple, epkgs
3538 }:
3639 let
101104 usr = import ./lib/utils.nix { inherit (nixpkgs) lib; };
102105 nurModules = inputs.nur.nixosModules;
103106 nurOverlays = inputs.nur.overlays;
107 nixexprs = inputs.nixexprs;
104108
105109 domains = import ./secrets/domains.nix;
106110 hosts = import ./secrets/hosts.nix;
0 { pkgs, ... }: {
0 { pkgs, nixexprs, ... }: {
11 imports = [ ./fish ./tmux ];
22
33 environment.shellAliases = { v = "$EDITOR"; };
4141 programs.thefuck.enable = true;
4242 programs.firejail.enable = true;
4343 programs.mtr.enable = true;
44 programs.command-not-found = {
45 enable = true;
46 dbPath = pkgs.runCommandNoCC "programs.sqlite" { inherit nixexprs; } ''
47 cat $nixexprs/nixos*/programs.sqlite > $out
48 '';
49 };
4450 }
5252 ];
5353
5454 programs.home-manager.enable = true;
55 programs.command-not-found.enable = true;
5655 programs.qutebrowser.enable = true;
5756 programs.firefox.enable = true;
5857 programs.fish.enable = true;