nix fmt rfc
This commit is contained in:
parent
c42abbc902
commit
c549839b19
42 changed files with 438 additions and 352 deletions
|
@ -6,9 +6,11 @@
|
|||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.wyrdgard; let
|
||||
with lib.wyrdgard;
|
||||
let
|
||||
cfg = config.wyrdgard.system.boot;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.wyrdgard.system.boot = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable booting.";
|
||||
};
|
||||
|
|
|
@ -6,12 +6,14 @@
|
|||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.wyrdgard; let
|
||||
with lib.wyrdgard;
|
||||
let
|
||||
cfg = config.wyrdgard.system.fonts;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.wyrdgard.system.fonts = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to manage fonts.";
|
||||
fonts = mkOpt (listOf package) [] "Custom font packages to install.";
|
||||
fonts = mkOpt (listOf package) [ ] "Custom font packages to install.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
@ -20,13 +22,17 @@ in {
|
|||
LOG_ICONS = "true";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
font-manager
|
||||
];
|
||||
environment.systemPackages = with pkgs; [ font-manager ];
|
||||
|
||||
fonts.packages = with pkgs;
|
||||
fonts.packages =
|
||||
with pkgs;
|
||||
[
|
||||
(nerdfonts.override {fonts = ["CodeNewRoman" "NerdFontsSymbolsOnly"];})
|
||||
(nerdfonts.override {
|
||||
fonts = [
|
||||
"CodeNewRoman"
|
||||
"NerdFontsSymbolsOnly"
|
||||
];
|
||||
})
|
||||
font-awesome
|
||||
powerline-fonts
|
||||
powerline-symbols
|
||||
|
|
|
@ -6,17 +6,17 @@
|
|||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.wyrdgard; let
|
||||
with lib.wyrdgard;
|
||||
let
|
||||
cfg = config.wyrdgard.system.hardware.audio;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.wyrdgard.system.hardware.audio = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable audio";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
noisetorch
|
||||
];
|
||||
environment.systemPackages = with pkgs; [ noisetorch ];
|
||||
|
||||
programs.noisetorch.enable = true;
|
||||
|
||||
|
|
|
@ -6,17 +6,17 @@
|
|||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.wyrdgard; let
|
||||
with lib.wyrdgard;
|
||||
let
|
||||
cfg = config.wyrdgard.system.hardware.bluetooth;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.wyrdgard.system.hardware.bluetooth = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable bluetooth";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
libsForQt5.bluez-qt
|
||||
];
|
||||
environment.systemPackages = with pkgs; [ libsForQt5.bluez-qt ];
|
||||
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
|
@ -31,7 +31,11 @@ in {
|
|||
|
||||
fileSystems."/var/lib/bluetooth" = {
|
||||
device = "/persist/var/lib/bluetooth";
|
||||
options = ["bind" "noauto" "x-systemd.automount"];
|
||||
options = [
|
||||
"bind"
|
||||
"noauto"
|
||||
"x-systemd.automount"
|
||||
];
|
||||
noCheck = true;
|
||||
};
|
||||
|
||||
|
|
|
@ -6,9 +6,11 @@
|
|||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.wyrdgard; let
|
||||
with lib.wyrdgard;
|
||||
let
|
||||
cfg = config.wyrdgard.system.hardware.gpu.nvidia;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.wyrdgard.system.hardware.gpu.nvidia = with types; {
|
||||
enable = mkEnableOption "Enable Nvidia GPU";
|
||||
};
|
||||
|
@ -29,7 +31,7 @@ in {
|
|||
package = config.boot.kernelPackages.nvidiaPackages.beta; # stable, beta
|
||||
};
|
||||
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
services.xserver.displayManager.sddm.wayland.enable = lib.mkForce false;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -6,14 +6,14 @@
|
|||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.wyrdgard; let
|
||||
with lib.wyrdgard;
|
||||
let
|
||||
cfg = config.wyrdgard.system.hardware.networking;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.wyrdgard.system.hardware.networking = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable networking";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
networking.networkmanager.enable = true;
|
||||
};
|
||||
config = mkIf cfg.enable { networking.networkmanager.enable = true; };
|
||||
}
|
||||
|
|
|
@ -6,9 +6,11 @@
|
|||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.wyrdgard; let
|
||||
with lib.wyrdgard;
|
||||
let
|
||||
cfg = config.wyrdgard.system.locale;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.wyrdgard.system.locale = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to manage locale settings.";
|
||||
};
|
||||
|
|
|
@ -6,15 +6,14 @@
|
|||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.wyrdgard; let
|
||||
with lib.wyrdgard;
|
||||
let
|
||||
cfg = config.wyrdgard.system.time;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.wyrdgard.system.time = with types; {
|
||||
enable =
|
||||
mkBoolOpt false "Whether or not to configure timezone information.";
|
||||
enable = mkBoolOpt false "Whether or not to configure timezone information.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
time.timeZone = "Europe/Berlin";
|
||||
};
|
||||
config = mkIf cfg.enable { time.timeZone = "Europe/Berlin"; };
|
||||
}
|
||||
|
|
|
@ -5,9 +5,11 @@
|
|||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.wyrdgard; let
|
||||
with lib.wyrdgard;
|
||||
let
|
||||
cfg = config.wyrdgard.system.xkb;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.wyrdgard.system.xkb = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to configure xkb.";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue