Add nixpad configuration

The initial step of grouping lemp11 and t490 configuration, inspired by
https://github.com/mkellyxp/nixbook.
This commit is contained in:
Oliver Davies 2025-05-12 19:10:37 +01:00
parent fd5dbd1fd2
commit c2eead8fdf
6 changed files with 42 additions and 13 deletions

View file

@ -4,5 +4,6 @@
./core
./desktop
./homelab
./nixpad
];
}

View file

@ -0,0 +1,37 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.nixpad;
in
{
options.nixpad = {
enable = lib.mkEnableOption "Enable nixpad configuration";
};
config = lib.mkIf cfg.enable {
services.xserver = {
enable = true;
desktopManager.cinnamon.enable = true;
displayManager.lightdm.enable = true;
};
programs.firefox.enable = true;
environment.systemPackages = with pkgs; [
git
libreoffice
];
nix.gc = {
automatic = true;
dates = "Mon 4:00";
options = "--delete-older-than 30d";
};
};
}