mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-09-10 12:50:05 +00:00
🚧 Finish user configuration loading and implement working workstation setup
This commit is contained in:
parent
54edba0070
commit
09c06d34e5
8 changed files with 137 additions and 16 deletions
32
modules/nixos/archetypes/workstation/default.nix
Normal file
32
modules/nixos/archetypes/workstation/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
lib,
|
||||
self,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf mkDefault;
|
||||
inherit (self) namespace;
|
||||
|
||||
cfg = config.${namespace}.archetypes.workstation;
|
||||
in {
|
||||
options.${namespace}.archetypes.workstation = {
|
||||
enable = mkEnableOption "the workstation archetype.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
${namespace} = {
|
||||
# Basic system functionality
|
||||
system.grub.enable = true;
|
||||
system.networking.enable = true;
|
||||
system.kernel.enable = true;
|
||||
|
||||
# Services
|
||||
services.docker.enable = true;
|
||||
|
||||
# Desktop environment
|
||||
desktop.gnome.enable = true;
|
||||
};
|
||||
|
||||
time.timeZone = mkDefault "Europe/Berlin";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue