Skip to content

Commit

Permalink
49 papercuts
Browse files Browse the repository at this point in the history
  • Loading branch information
Enzime committed Oct 14, 2024
1 parent b8a66b1 commit 1f8cd61
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 13 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- Use `nix-index-database` for prebuilt `nix-index` databases on all platforms
- Fixed `darwin-rebuild switch` outputting `Dock` PID
- Fixed `vscode` build on macOS
- Removed `berkeleydb` and `swift-quit` overlays
Expand Down
21 changes: 21 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,12 @@

inputs.impermanence.url = "github:nix-community/impermanence";

inputs.nix-index-database.url = "github:nix-community/nix-index-database";
inputs.nix-index-database.inputs.nixpkgs.follows = "nixpkgs";

outputs = inputs@{ self, nixpkgs, nix-darwin, home-manager, flake-utils-plus
, agenix, disko, impermanence, flake-parts, git-hooks, terranix, ... }:
, agenix, disko, impermanence, nix-index-database, flake-parts, git-hooks
, terranix, ... }:

nixpkgs.lib.recursiveUpdate

Expand Down Expand Up @@ -133,6 +137,7 @@
darwinModules = map (getAttr "darwinModule")
(filter (hasAttr "darwinModule") modulesToImport);
home = [
nix-index-database.hmModules.nix-index
impermanence.nixosModules.home-manager.impermanence
./hosts/${host}/home.nix
] ++ homeModules;
Expand Down Expand Up @@ -160,6 +165,7 @@
agenix.nixosModules.age
disko.nixosModules.disko
impermanence.nixosModules.impermanence
nix-index-database.nixosModules.nix-index
./hosts/${host}/configuration.nix
] ++ nixosModules ++ [
home-manager.nixosModules.home-manager
Expand Down Expand Up @@ -190,6 +196,7 @@
modules = [
flake-utils-plus.darwinModules.autoGenFromInputs
agenix.darwinModules.age
nix-index-database.darwinModules.nix-index
./hosts/${host}/darwin-configuration.nix
] ++ darwinModules ++ [
home-manager.darwinModules.home-manager
Expand Down
5 changes: 4 additions & 1 deletion modules/base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ let
path = "${config.users.users.${user}.home}/.zshrc.secrets";
owner = user;
};

programs.nix-index-database.comma.enable = true;
};
in {
imports = [
Expand All @@ -75,7 +77,6 @@ in {
"cache"
"flakes"
"kitty"
"nix-index"
"syncthing"
"termite"
"vm"
Expand Down Expand Up @@ -361,6 +362,8 @@ in {
};
};

programs.nix-index-database.comma.enable = true;

programs.direnv.enable = true;
programs.direnv.nix-direnv.enable = true;

Expand Down
11 changes: 0 additions & 11 deletions modules/nix-index.nix

This file was deleted.

0 comments on commit 1f8cd61

Please sign in to comment.