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/kernel.nix
|
||||
./modules/fcitx5.nix
|
||||
./modules/programs.nix
|
||||
./modules/bluetooth.nix
|
||||
];
|
||||
|
||||
};
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
{ lib, config, ... }:
|
||||
with lib;
|
||||
let cfg = config.voidconf.audio;
|
||||
in {
|
||||
let
|
||||
cfg = config.voidconf.audio;
|
||||
in
|
||||
{
|
||||
options.voidconf.audio = {
|
||||
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";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
i18n = {
|
||||
inputMethod = {
|
||||
enabled = "fcitx5";
|
||||
fcitx5 = {
|
||||
addons = with pkgs; [
|
||||
fcitx5-mozc
|
||||
fcitx5-anthy
|
||||
];
|
||||
};
|
||||
};
|
||||
i18n.inputMethod = {
|
||||
enable = true;
|
||||
type = "fcitx5";
|
||||
fcitx5.addons = with pkgs; [
|
||||
fcitx5-mozc
|
||||
fcitx5-anthy
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -33,6 +33,7 @@ in {
|
|||
ubuntu_font_family
|
||||
uiua386
|
||||
vollkorn
|
||||
work-sans
|
||||
];
|
||||
fontconfig = {
|
||||
enable = true;
|
||||
|
@ -57,8 +58,8 @@ in {
|
|||
];
|
||||
monospace = [
|
||||
"Fira Code"
|
||||
"JetBrains Mono"
|
||||
"Iosevka"
|
||||
"JetBrains Mono"
|
||||
"IPAGothic"
|
||||
"Baekmuk Dotum"
|
||||
"Noto Color Emoji"
|
||||
|
|
|
@ -11,9 +11,9 @@ in {
|
|||
};
|
||||
config = {
|
||||
hardware = {
|
||||
opengl = {
|
||||
graphics = {
|
||||
enable = true;
|
||||
driSupport32Bit = true;
|
||||
enable32Bit = true;
|
||||
};
|
||||
nvidia = mkIf cfg.nvidia.enable {
|
||||
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;
|
||||
windowManager = {
|
||||
windowmaker.enable = true;
|
||||
xmonad.enable = true;
|
||||
xmonad = {
|
||||
enable = true;
|
||||
extraPackages = h: with h; [ xmonad-contrib ];
|
||||
};
|
||||
};
|
||||
displayManager.lightdm = {
|
||||
enable = cfg.lightdm.enable;
|
||||
|
|
Loading…
Reference in a new issue