refactor: clean up move to common

This commit is contained in:
matt1432 2023-10-15 16:05:28 -04:00
parent 6a83bbf94a
commit 0aaf7d522b
5 changed files with 42 additions and 35 deletions

View file

@ -1,6 +1,7 @@
{ config, home-manager, lib, nixpkgs, nur, nix-melt, nurl, pkgs, ... }: {
imports = [
home-manager.nixosModules.default
./modules/programs.nix
./overlays/list.nix
];

View file

@ -1,19 +1,11 @@
# Home-manager module
{ lib, ... }: {
programs = {
imports = [
./programs.nix
];
fzf = {
enable = true;
enableBashIntegration = true;
};
ripgrep = {
enable = true;
arguments = [
"--no-config"
];
};
jq.enable = true;
programs = {
starship = let
textColor = "#e3e5e5";

View file

@ -0,0 +1,15 @@
{ ... }: {
programs = {
fzf = {
enable = true;
enableBashIntegration = true;
};
ripgrep = {
enable = true;
arguments = [
"--no-config"
];
};
jq.enable = true;
};
}

View file

@ -0,0 +1,22 @@
{ pkgs, ... }: {
services = {
locate = {
enable = true;
package = pkgs.mlocate;
localuser = null;
interval = "hourly";
prunePaths = [
"/tmp"
"/var/tmp"
"/var/cache"
"/var/lock"
"/var/run"
"/var/spool"
"/nix/var/log/nix"
"/proc"
"/run/user"
];
};
};
}

View file

@ -45,24 +45,6 @@
gvfs.enable = true;
flatpak.enable = true;
tlp.enable = true;
locate = {
enable = true;
package = pkgs.mlocate;
localuser = null;
interval = "hourly";
prunePaths = [
"/tmp"
"/var/tmp"
"/var/cache"
"/var/lock"
"/var/run"
"/var/spool"
"/nix/var/log/nix"
"/proc"
"/run/user"
];
};
};
xdg.portal = {
@ -153,11 +135,6 @@
htop = {
enable = true;
};
fzf = {
fuzzyCompletion = true;
keybindings = true;
};
};
# List packages in root user PATH