Compare commits
12 commits
Author | SHA1 | Date | |
---|---|---|---|
|
579fc14a49 | ||
|
e38e37dd3d | ||
|
16f9ecf093 | ||
|
2e0b4f41fc | ||
|
4d13ff9fd6 | ||
|
c5b5639513 | ||
|
62eb3ca58b | ||
|
571ac94c17 | ||
|
d2429fa721 | ||
|
c4551b3839 | ||
|
e072bf4c45 | ||
|
8be24b9a61 |
|
@ -17,6 +17,8 @@
|
||||||
./modules/prometheus.nix
|
./modules/prometheus.nix
|
||||||
./modules/kernel.nix
|
./modules/kernel.nix
|
||||||
./modules/fcitx5.nix
|
./modules/fcitx5.nix
|
||||||
|
./modules/programs.nix
|
||||||
|
./modules/bluetooth.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
let cfg = config.voidconf.audio;
|
let
|
||||||
in {
|
cfg = config.voidconf.audio;
|
||||||
|
in
|
||||||
|
{
|
||||||
options.voidconf.audio = {
|
options.voidconf.audio = {
|
||||||
enable = mkEnableOption "Enable all the audio daemons";
|
enable = mkEnableOption "Enable all the audio daemons";
|
||||||
};
|
};
|
||||||
|
|
28
modules/bluetooth.nix
Normal file
28
modules/bluetooth.nix
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.voidconf.bluetooth;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.voidconf.bluetooth = {
|
||||||
|
enable = mkEnableOption "Enables bluetooth tools";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
|
hardware.bluetooth = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.blueman = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
bluez
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
|
@ -6,16 +6,13 @@ in {
|
||||||
enable = mkEnableOption "Enables fcitx5 input method engine and mozc en anthy methods";
|
enable = mkEnableOption "Enables fcitx5 input method engine and mozc en anthy methods";
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
i18n = {
|
i18n.inputMethod = {
|
||||||
inputMethod = {
|
enable = true;
|
||||||
enabled = "fcitx5";
|
type = "fcitx5";
|
||||||
fcitx5 = {
|
fcitx5.addons = with pkgs; [
|
||||||
addons = with pkgs; [
|
fcitx5-mozc
|
||||||
fcitx5-mozc
|
fcitx5-anthy
|
||||||
fcitx5-anthy
|
];
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,7 @@ in {
|
||||||
ubuntu_font_family
|
ubuntu_font_family
|
||||||
uiua386
|
uiua386
|
||||||
vollkorn
|
vollkorn
|
||||||
|
work-sans
|
||||||
];
|
];
|
||||||
fontconfig = {
|
fontconfig = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -57,8 +58,8 @@ in {
|
||||||
];
|
];
|
||||||
monospace = [
|
monospace = [
|
||||||
"Fira Code"
|
"Fira Code"
|
||||||
"JetBrains Mono"
|
|
||||||
"Iosevka"
|
"Iosevka"
|
||||||
|
"JetBrains Mono"
|
||||||
"IPAGothic"
|
"IPAGothic"
|
||||||
"Baekmuk Dotum"
|
"Baekmuk Dotum"
|
||||||
"Noto Color Emoji"
|
"Noto Color Emoji"
|
||||||
|
|
|
@ -11,9 +11,9 @@ in {
|
||||||
};
|
};
|
||||||
config = {
|
config = {
|
||||||
hardware = {
|
hardware = {
|
||||||
opengl = {
|
graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
driSupport32Bit = true;
|
enable32Bit = true;
|
||||||
};
|
};
|
||||||
nvidia = mkIf cfg.nvidia.enable {
|
nvidia = mkIf cfg.nvidia.enable {
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
|
|
31
modules/programs.nix
Normal file
31
modules/programs.nix
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.voidconf.programs;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.voidconf.programs = {
|
||||||
|
gnupg = {
|
||||||
|
enable = mkEnableOption "Enables basic GnuPG configuration";
|
||||||
|
pinentryPackage = mkOption {
|
||||||
|
default = pkgs.pinentry-qt;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = {
|
||||||
|
programs = {
|
||||||
|
|
||||||
|
# gpg
|
||||||
|
gnupg.agent = mkIf cfg.gnupg.enable {
|
||||||
|
enable = true;
|
||||||
|
pinentryPackage = pkgs.pinentry-qt;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -73,7 +73,10 @@ in {
|
||||||
autoRepeatInterval = 16;
|
autoRepeatInterval = 16;
|
||||||
windowManager = {
|
windowManager = {
|
||||||
windowmaker.enable = true;
|
windowmaker.enable = true;
|
||||||
xmonad.enable = true;
|
xmonad = {
|
||||||
|
enable = true;
|
||||||
|
extraPackages = h: with h; [ xmonad-contrib ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
displayManager.lightdm = {
|
displayManager.lightdm = {
|
||||||
enable = cfg.lightdm.enable;
|
enable = cfg.lightdm.enable;
|
||||||
|
|
Loading…
Reference in a new issue