Extract a bluetooth mixin
This commit is contained in:
parent
a5d93cc616
commit
a4cacfd4de
7 changed files with 12 additions and 24 deletions
|
@ -2,7 +2,6 @@
|
|||
|
||||
{
|
||||
homeManagerModules = {
|
||||
bluetuith.enable = true;
|
||||
direnv.enable = true;
|
||||
discord.enable = true;
|
||||
dwm.enable = true;
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
{
|
||||
homeManagerModules = {
|
||||
bluetuith.enable = true;
|
||||
direnv.enable = true;
|
||||
discord.enable = true;
|
||||
dwm.enable = true;
|
||||
|
|
|
@ -3,12 +3,13 @@
|
|||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./hardware.nix
|
||||
./programs.nix
|
||||
./secrets.nix
|
||||
./services
|
||||
./users.nix
|
||||
|
||||
../../modules/mixins/bluetooth.nix
|
||||
|
||||
./modules/docker.nix
|
||||
|
||||
../common
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
hardware = {
|
||||
bluetooth.enable = true;
|
||||
};
|
||||
}
|
|
@ -17,8 +17,6 @@
|
|||
openFirewall = true;
|
||||
};
|
||||
|
||||
blueman.enable = true;
|
||||
|
||||
gvfs.enable = true;
|
||||
openssh.enable = true;
|
||||
power-profiles-daemon.enable = false;
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
{
|
||||
imports = [
|
||||
./bin
|
||||
./bluetuith.nix
|
||||
./direnv.nix
|
||||
./fzf.nix
|
||||
./git.nix
|
||||
|
|
|
@ -1,20 +1,15 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
options.homeManagerModules.bluetuith.enable = mkEnableOption "Enable bluetuith";
|
||||
hardware.bluetooth.enable = true;
|
||||
|
||||
config = mkIf config.homeManagerModules.bluetuith.enable {
|
||||
home.packages = with pkgs; [
|
||||
bluetuith
|
||||
];
|
||||
services.blueman.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
bluetuith
|
||||
];
|
||||
|
||||
home-manager.users.opdavies = {
|
||||
xdg.configFile."bluetuith/bluetuith.conf" = {
|
||||
text = ''
|
||||
{
|
||||
|
@ -23,10 +18,12 @@ with lib;
|
|||
connect-bdaddr: ""
|
||||
gsm-apn: ""
|
||||
gsm-number: ""
|
||||
|
||||
keybindings: {
|
||||
NavigateDown: j
|
||||
NavigateUp: k
|
||||
}
|
||||
|
||||
receive-dir: ""
|
||||
theme: {}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue