Add command-not-found and comma support
This commit is contained in:
parent
0d80ec8f58
commit
8fee70f405
2 changed files with 15 additions and 2 deletions
11
flake.nix
11
flake.nix
|
@ -5,6 +5,11 @@
|
||||||
# General NixOS config
|
# General NixOS config
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
nixpkgs-24-11.url = "github:NixOS/nixpkgs/nixos-24.11";
|
nixpkgs-24-11.url = "github:NixOS/nixpkgs/nixos-24.11";
|
||||||
|
# Nixpkgs index for command-not-found support
|
||||||
|
nix-index-database = {
|
||||||
|
url = "github:nix-community/nix-index-database";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
# NixOS Grub Themes (hyperfluent)
|
# NixOS Grub Themes (hyperfluent)
|
||||||
nixos-grub-themes = {
|
nixos-grub-themes = {
|
||||||
url = "github:jeslie0/nixos-grub-themes";
|
url = "github:jeslie0/nixos-grub-themes";
|
||||||
|
@ -45,7 +50,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ nixpkgs, home-manager, plasma-manager, ... }: let
|
outputs = inputs@{ nixpkgs, home-manager, plasma-manager, nix-index-database, ... }: let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
secrets = import ./secrets.nix;
|
secrets = import ./secrets.nix;
|
||||||
|
@ -56,6 +61,10 @@
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/laptop
|
./hosts/laptop
|
||||||
|
|
||||||
|
# Better command-not-found
|
||||||
|
nix-index-database.nixosModules.nix-index
|
||||||
|
{ programs.nix-index-database.comma.enable = true; }
|
||||||
|
|
||||||
# Home manager
|
# Home manager
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
./home-manager
|
./home-manager
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, inputs, ... }:
|
||||||
{
|
{
|
||||||
# Install system packages
|
# Install system packages
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
@ -22,6 +22,10 @@
|
||||||
# Install zsh
|
# Install zsh
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
|
# Disable default command-not-found (it doesn't work with flakes)
|
||||||
|
programs.command-not-found.enable = false;
|
||||||
|
programs.nix-index.enable = true;
|
||||||
|
|
||||||
# Manage default firefox web browser install
|
# Manage default firefox web browser install
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in a new issue