feat(nix): add desktop module and refactor machine options
This commit is contained in:
parent
4c82720251
commit
8166894b78
3 changed files with 12 additions and 16 deletions
|
@ -11,8 +11,10 @@ in
|
|||
in
|
||||
{
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
options.machine.bluetooth.enable = mkEnableOption "";
|
||||
options.machine.usb.automount = mkEnableOption "";
|
||||
options.machine = {
|
||||
bluetooth.enable = mkEnableOption "";
|
||||
usb.automount = mkEnableOption "";
|
||||
};
|
||||
config = mkMerge [
|
||||
(mkIf cfg.usb.automount {
|
||||
services.udisks2.enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue