hosts/ni/setups/desktop: init module

This commit is contained in:
Gabriel Arazas 2023-12-13 10:45:29 +08:00
parent c6cd57d5bc
commit bbb198d95b
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
3 changed files with 44 additions and 25 deletions

View File

@ -30,6 +30,7 @@
networking.enable = true;
networking.setup = "networkmanager";
networking.wireguard.enable = true;
setups.desktop.enable = true;
setups.music.enable = true;
};
@ -63,17 +64,8 @@
# My custom configuration with my custom modules starts here.
profiles = {
i18n.enable = true;
archiving.enable = true;
browsers.chromium.enable = true;
desktop = {
enable = true;
audio.enable = true;
fonts.enable = true;
hardware.enable = true;
cleanup.enable = true;
wine.enable = true;
};
dev = {
enable = true;
shell.enable = true;
@ -94,22 +86,6 @@
# This is somewhat used for streaming games from it.
programs.steam.remotePlay.openFirewall = true;
programs.blender = {
enable = true;
package = pkgs.blender-foodogsquared;
addons = with pkgs; [
blender-blendergis
blender-machin3tools
];
};
# Backup for the almighty archive, pls.
tasks.backup-archive.enable = true;
# The most extensible desktop environment with the greatest toolset of all
# time (arguably but it is great).
workflows.workflows.a-happy-gnome.enable = true;
programs.wezterm.enable = true;
programs.adb.enable = true;

View File

@ -4,6 +4,7 @@
./hardware/qol.nix
./networking/setup.nix
./networking/wireguard.nix
./setups/desktop.nix
./setups/music.nix
];
}

View File

@ -0,0 +1,42 @@
{ config, lib, pkgs, ... }:
let
hostCfg = config.hosts.ni;
cfg = hostCfg.setups.desktop;
in
{
options.hosts.ni.setups.desktop.enable =
lib.mkEnableOption "desktop environment setup";
config = lib.mkIf cfg.enable {
# Bring all of the desktop goodies.
profiles.desktop = {
enable = true;
audio.enable = true;
fonts.enable = true;
hardware.enable = true;
cleanup.enable = true;
wine.enable = true;
};
# Apparently the Emacs of 3D artists.
programs.blender = {
enable = true;
package = pkgs.blender-foodogsquared;
addons = with pkgs; [
blender-blendergis
blender-machin3tools
];
};
# Make it in multiple languages. Take note this is meant to be set up by
# the workflow module of choice...
profiles.i18n.enable = true;
# ...which is by the way is this one.
workflows.workflows.a-happy-gnome.enable = true;
# Backup for the almighty archive, pls.
tasks.backup-archive.enable = true;
};
}