feat(machine, secrets): add qmk and vial, export gemini key
This commit is contained in:
parent
399e049775
commit
96321d4026
3 changed files with 51 additions and 31 deletions
|
@ -33,10 +33,10 @@
|
|||
};
|
||||
};
|
||||
extraCfg = {
|
||||
services.fwupd.enable = true; # FIXME: remove
|
||||
machine = {
|
||||
bluetooth.enable = true;
|
||||
usb.automount = true;
|
||||
usb.qmk.enable = true;
|
||||
virtualisation = {
|
||||
podman.enable = true;
|
||||
podman.distrobox.enable = true;
|
||||
|
|
|
@ -5,7 +5,12 @@ let
|
|||
in
|
||||
{
|
||||
flake.modules.nixos.default =
|
||||
{ config, modulesPath, ... }:
|
||||
{
|
||||
config,
|
||||
modulesPath,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.machine;
|
||||
in
|
||||
|
@ -14,6 +19,7 @@ in
|
|||
options.machine = {
|
||||
bluetooth.enable = mkEnableOption "";
|
||||
usb.automount = mkEnableOption "";
|
||||
usb.qmk.enable = mkEnableOption "";
|
||||
};
|
||||
config = mkMerge [
|
||||
(mkIf cfg.usb.automount {
|
||||
|
@ -28,6 +34,18 @@ in
|
|||
}
|
||||
];
|
||||
})
|
||||
(mkIf cfg.usb.qmk.enable {
|
||||
hardware.keyboard.qmk.enable = true;
|
||||
services.udev = {
|
||||
packages = with pkgs; [
|
||||
vial
|
||||
qmk
|
||||
qmk-udev-rules
|
||||
qmk_hid
|
||||
];
|
||||
};
|
||||
|
||||
})
|
||||
(mkIf cfg.bluetooth.enable {
|
||||
persistDirs = [ "/var/lib/bluetooth" ];
|
||||
hardware.bluetooth = {
|
||||
|
|
|
@ -13,7 +13,8 @@ let
|
|||
inherit (cfg.paths) secrets;
|
||||
in
|
||||
{
|
||||
flake.modules.nixos.default =
|
||||
flake.modules = {
|
||||
nixos.default =
|
||||
{ config, ... }:
|
||||
{
|
||||
imports = [ inputs.sops-nix.nixosModules.sops ];
|
||||
|
@ -30,7 +31,7 @@ in
|
|||
'';
|
||||
};
|
||||
};
|
||||
flake.modules.darwin.default =
|
||||
darwin.default =
|
||||
{ config, ... }:
|
||||
{
|
||||
imports = [ inputs.sops-nix.darwinModules.sops ];
|
||||
|
@ -45,7 +46,8 @@ in
|
|||
'';
|
||||
};
|
||||
};
|
||||
flake.modules.homeManager.default.persistDirs = [ ".config/sops/age" ];
|
||||
homeManager.default.persistDirs = [ ".config/sops/age" ];
|
||||
};
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue