mob next [ci-skip] [ci skip] [skip ci]
lastFile:modules/clan/personal-computer/wireless.nix
This commit is contained in:
@@ -1,19 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
{
|
|
||||||
_class = "clan.service";
|
|
||||||
manifest.name = "automatic-timezone";
|
|
||||||
manifest.description = "Automatic Timezone, using geoclue2 to actually set the timezone";
|
|
||||||
manifest.categories = [ "System" ];
|
|
||||||
|
|
||||||
roles.default = {
|
|
||||||
perInstance.nixosModule =
|
|
||||||
{ lib, ... }:
|
|
||||||
{
|
|
||||||
services.automatic-timezoned.enable = true;
|
|
||||||
services.geoclue2 = {
|
|
||||||
enableDemoAgent = lib.mkForce true;
|
|
||||||
geoProviderUrl = "https://beacondb.net/v1/geolocate";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
{ lib, inputs, ... }:
|
|
||||||
let
|
|
||||||
module = lib.modules.importApply ./default.nix { };
|
|
||||||
in
|
|
||||||
{
|
|
||||||
clan.modules = {
|
|
||||||
automatic-timezone = module;
|
|
||||||
};
|
|
||||||
|
|
||||||
perSystem =
|
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
clan.nixosTests.automatic-timezone = {
|
|
||||||
imports = [ ./tests/vm/default.nix ];
|
|
||||||
clan.modules."@clan/automatic-timezone" = module;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
{
|
|
||||||
name = "service-automatic-timezone";
|
|
||||||
|
|
||||||
clan = {
|
|
||||||
directory = ./.;
|
|
||||||
inventory = {
|
|
||||||
machines.server = { };
|
|
||||||
|
|
||||||
instances = {
|
|
||||||
tz-test = {
|
|
||||||
module.name = "@clan/automatic-timezone";
|
|
||||||
module.input = "self";
|
|
||||||
roles.default.machines.server = { };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
nodes = {
|
|
||||||
server = { };
|
|
||||||
};
|
|
||||||
|
|
||||||
testScript = ''
|
|
||||||
start_all()
|
|
||||||
|
|
||||||
server.wait_for_unit("automatic-timezoned")
|
|
||||||
|
|
||||||
server.succeed("systemctl status automatic-timezoned")
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@@ -13,6 +13,7 @@
|
|||||||
./printing.nix
|
./printing.nix
|
||||||
./mutable-user.nix
|
./mutable-user.nix
|
||||||
./automatic-timezone.nix
|
./automatic-timezone.nix
|
||||||
|
./wireless.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
4
modules/clan/personal-computer/wireless.nix
Normal file
4
modules/clan/personal-computer/wireless.nix
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
networking.wireless.enable = true;
|
||||||
|
hardware.bluetooth.enable = true;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user