Skip to content

Commit

Permalink
home-manager/cli: move non-nix/nixpkgs, unify them
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Sep 28, 2023
1 parent 2968327 commit efbd129
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 24 deletions.
1 change: 1 addition & 0 deletions home-manager/cli/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
./git.nix
./htop.nix
./irssi.nix
./nixpkgs.nix
./nnn.nix
./ssh.nix
./tmux.nix
Expand Down
34 changes: 34 additions & 0 deletions home-manager/cli/nixpkgs.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ flake, config, pkgs, lib, ... }:


let
nixpkgs-review =
if (pkgs.stdenv.isLinux) then
pkgs.nixpkgs-review.override { withSandboxSupport = true; withNom = true; }
else
pkgs.nixpkgs-review.override { withNon = true; };
in
{
imports = [ flake.inputs.nix-index-database.hmModules.nix-index ];

options.home-manager.cli.nixpkgs.enable = lib.mkDefaultOption "nixpkgs tools config" // {
default = config.home-manager.cli.enable;
};

config = lib.mkIf config.home-manager.cli.nixpkgs.enable {
programs = {
nix-index = {
enable = true;
symlinkToCacheHome = true;
};
nix-index-database.comma.enable = true;
};

home.packages = with pkgs; [
nix-output-monitor
nixpkgs-review
] ++ lib.optionals stdenv.isLinux [
flake.inputs.nix-alien.packages.${pkgs.system}.nix-alien
];
};
}
2 changes: 0 additions & 2 deletions home-manager/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
./desktop
./i3
./minimal.nix
./nixpkgs.nix
./non-nix.nix
./sway
./theme
];
Expand Down
16 changes: 0 additions & 16 deletions home-manager/nixpkgs.nix

This file was deleted.

6 changes: 0 additions & 6 deletions home-manager/non-nix.nix

This file was deleted.

0 comments on commit efbd129

Please sign in to comment.