Add nixpad configuration
The initial step of grouping lemp11 and t490 configuration, inspired by https://github.com/mkellyxp/nixbook.
This commit is contained in:
parent
fd5dbd1fd2
commit
c2eead8fdf
6 changed files with 42 additions and 13 deletions
|
@ -4,5 +4,6 @@
|
|||
./core
|
||||
./desktop
|
||||
./homelab
|
||||
./nixpad
|
||||
];
|
||||
}
|
||||
|
|
37
modules/nixos/nixpad/default.nix
Normal file
37
modules/nixos/nixpad/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue