extract syncthing and bmenu module

This commit is contained in:
Leonardo Eugênio 2022-10-24 20:31:23 -03:00
parent a7b446eec0
commit 1508d388c7
3 changed files with 31 additions and 22 deletions

21
user/bmenu.nix Normal file
View file

@ -0,0 +1,21 @@
{ config, pkgs, lib, inputs, ... }:
let inherit (import ./variables.nix) key theme color accent font;
in {
# My bemenu wrapper
xdg.configFile = {
"bmenu.conf".text = ''
set fn "${font.mono} ${toString font.size.small}"
set tb "${color.bg}${theme.opacityHex}"
set tf "${accent.color}"
set fb "${color.bg}${theme.opacityHex}"
set ff "${color.txt}"
set nb "${color.bg}${theme.opacityHex}"
set nf "${color.txt}"
set hb "${accent.color}"
set hf "${accent.fg}"
'';
};
}

View file

@ -20,6 +20,8 @@ in {
./rnnoise.nix
./mimeapps.nix
./chat.nix
./syncthing.nix
./bmenu.nix
inputs.hyprland.homeManagerModules.default
];
# Home Manager needs a bit of information about you and the
@ -183,28 +185,6 @@ in {
# # style.name = "gtk2";
# };
services.syncthing = {
enable = true;
tray.enable = true;
};
# My bemenu wrapper
xdg.configFile = {
"bmenu.conf".text = ''
set fn "${font.mono} ${toString font.size.small}"
set tb "${color.bg}${theme.opacityHex}"
set tf "${accent.color}"
set fb "${color.bg}${theme.opacityHex}"
set ff "${color.txt}"
set nb "${color.bg}${theme.opacityHex}"
set nf "${color.txt}"
set hb "${accent.color}"
set hf "${accent.fg}"
'';
};
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards

8
user/syncthing.nix Normal file
View file

@ -0,0 +1,8 @@
{ config, pkgs, lib, inputs, ... }:
let inherit (import ./variables.nix) key theme color accent font;
in {
services.syncthing = {
enable = true;
tray.enable = true;
};
}