Skip to content

Commit

Permalink
modules: add nix-index
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 committed May 24, 2024
1 parent e9b1c2a commit f9bff18
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 9 deletions.
39 changes: 30 additions & 9 deletions flake.lock

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

4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
inputs.mgit-exporter.url = "github:mgit-at/prometheus-mgit-exporter/topic/nixos";
inputs.mgit-exporter.inputs.nixpkgs.follows = "nixpkgs";
inputs.mgit-exporter.inputs.patches4nixpkgs.follows = "patches4nixpkgs";
inputs.nix-index-database.url = "github:nix-community/nix-index-database";
inputs.nix-index-database.inputs.nixpkgs.follows = "nixpkgs";

outputs = { self, nix-unify, disko, patches4nixpkgs, mgit-exporter, ... }@inputs: with inputs.nixpkgs.lib; let
supportedSystems = [ "x86_64-linux" "aarch64-linux" ];
Expand Down Expand Up @@ -48,6 +50,7 @@
) (builtins.readDir ./modules);
in modules // (with modules; rec {
mgit-exporter = inputs.mgit-exporter.nixosModules.prometheus-mgit-exporter;
nix-index = inputs.nix-index-database.nixosModules.nix-index;

default = [
({
Expand All @@ -68,6 +71,7 @@
prometheus-exporter-gateway
mailcow
mgit-exporter
nix-index
];
ansible_default = default ++ [
nix-unify.nixosModules.ansible
Expand Down
2 changes: 2 additions & 0 deletions modules/defaults/misc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ with lib;
services.openssh.openFirewall = true;

services.fstrim.enable = true;

programs.command-not-found.enable = false;
}

0 comments on commit f9bff18

Please sign in to comment.