dotfiles/modules/base/default.nix

49 lines
1018 B
Nix
Raw Normal View History

2024-07-18 21:56:00 +00:00
{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.modules.base;
in {
options.modules.base = {
enable = mkEnableOption "base";
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
# Add base linux utilities
git
wget
curl
dig
nix-tree
2024-07-19 01:34:42 +00:00
procps
2024-07-18 21:56:00 +00:00
];
modules = {
# Enable base modules
clean-tmp.enable = true;
fontconfig.enable = true;
neovim.enable = true;
systemd-boot.enable = true;
tuigreet.enable = true;
tailscale.enable = true;
};
# TODO: Remove everything below, it is here out of convenience and should be elsewhere
programs.dconf.enable = true;
xdg.portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
xdg-desktop-portal-wlr
];
};
services.libinput.enable = true;
modules.unfree.enable = true;
modules.unfree.allowedPackages = [
"nvidia-x11"
"nvidia-settings"
];
};
}