modularise the stuff
This commit is contained in:
parent
011009d22f
commit
d1bcbc0fde
16 changed files with 159 additions and 61 deletions
33
lib/modules/personal.nix
Normal file
33
lib/modules/personal.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ user }: { lib, pkgs, config, ... }:
|
||||
with lib;
|
||||
{
|
||||
options.roles.personal = {
|
||||
enable = mkEnableOption "personal packages";
|
||||
};
|
||||
|
||||
config = mkIf config.roles.personal.enable {
|
||||
|
||||
roles.email = {
|
||||
enable = true;
|
||||
email = "tristan@tristans.cloud";
|
||||
terminal = true;
|
||||
};
|
||||
|
||||
roles.dev.enable = true;
|
||||
roles.gamer.enable = true;
|
||||
|
||||
home-manager.users.${user}.imports = [{
|
||||
services.nextcloud-client.enable = true;
|
||||
home.packages = with pkgs; [
|
||||
nextcloud-client
|
||||
godot_4
|
||||
ardour
|
||||
blender
|
||||
musescore
|
||||
handbrake
|
||||
monero-gui
|
||||
xmrig
|
||||
];
|
||||
}];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue