1
0
Fork 0
This commit is contained in:
Lukas Wurzinger 2025-07-01 19:02:19 +02:00
parent a026867c03
commit d1d7dd9c01
No known key found for this signature in database
22 changed files with 427 additions and 103 deletions

View file

@ -0,0 +1,13 @@
{
config,
lib,
...
}:
let
cfg = config.profiles.dynamic;
in
{
config = lib.mkIf cfg.enable {
hardware.bluetooth.enable = true;
};
}

View file

@ -0,0 +1,18 @@
{ config, lib, ... }:
let
cfg = config.profiles.dynamic;
in
{
options.profiles.dynamic = {
enable = lib.mkEnableOption "dynamic";
};
config = lib.mkIf cfg.enable {
assertions = [
{
assertion = !config.profiles.server.enable;
message = "The dynamic profile is not compatible with the server profile.";
}
];
};
}

View file

@ -0,0 +1,13 @@
{
config,
lib,
...
}:
let
cfg = config.profiles.dynamic;
in
{
config = lib.mkIf cfg.enable {
location.provider = "geoclue2";
};
}

View file

@ -0,0 +1,15 @@
{
config,
lib,
...
}:
let
cfg = config.profiles.dynamic;
in
{
config = lib.mkIf cfg.enable {
networking.networkmanager.enable = true;
users.groups.networkmanager.members = config.users.normalUsers;
};
}