From 34a7a042a36b63eb6b900932b1e420e4b6014a57 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 5 May 2024 11:35:18 -0400 Subject: simplify some things (#353) * flake: drop flake-parts * flake: add back flake-parts * flake: use flake module again for configurations --- users/seth/programs/default.nix | 66 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 users/seth/programs/default.nix (limited to 'users/seth/programs/default.nix') diff --git a/users/seth/programs/default.nix b/users/seth/programs/default.nix new file mode 100644 index 0000000..bc18b6e --- /dev/null +++ b/users/seth/programs/default.nix @@ -0,0 +1,66 @@ +{ + config, + lib, + pkgs, + inputs, + ... +}: let + cfg = config.seth.programs; +in { + options.seth.programs = { + basePrograms.enable = + lib.mkEnableOption "base programs and configurations" + // { + default = config.seth.enable; + }; + }; + + imports = with inputs; [ + catppuccin.homeManagerModules.catppuccin + nix-index-database.hmModules.nix-index + ./bat.nix + ./chromium.nix + ./eza.nix + ./firefox + ./git.nix + ./gpg.nix + ./mangohud.nix + ./neovim.nix + ./ssh.nix + ./starship + ./vim.nix + ./vscode.nix + ]; + + config = lib.mkIf cfg.basePrograms.enable { + home.packages = with pkgs; [ + fd + nix-output-monitor + nurl + rclone + restic + ]; + + catppuccin.flavour = "mocha"; + + programs = { + btop = { + enable = true; + catppuccin.enable = true; + }; + + direnv = { + enable = true; + nix-direnv.enable = true; + }; + + glamour.catppuccin.enable = true; + + ripgrep.enable = true; + + nix-index-database.comma.enable = true; + }; + + xdg.enable = true; + }; +} -- cgit v1.2.3