mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
treewide: fmt
This commit is contained in:
parent
330abe53d2
commit
ea37c7b836
95 changed files with 1162 additions and 779 deletions
|
@ -1,5 +1,10 @@
|
|||
# avahi related settings
|
||||
{ config, lib, options, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
options,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.my.system.avahi;
|
||||
in
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
# Docker related settings
|
||||
{ config, lib, options, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
options,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.my.system.docker;
|
||||
in
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.my.system.fonts;
|
||||
in
|
||||
|
@ -21,23 +26,26 @@ in
|
|||
monospace = [ "Ubuntu Mono" ];
|
||||
};
|
||||
|
||||
packages = with pkgs; [
|
||||
cantarell-fonts # gnome default
|
||||
fira
|
||||
fira-code # coding
|
||||
fira-code-symbols # ligatures
|
||||
fira-mono
|
||||
font-awesome # icons
|
||||
joypixels # emojis
|
||||
liberation_ttf # main microsoft fonts
|
||||
# mplus-outline-fonts.githubRelease # microsoft fonts
|
||||
noto-fonts
|
||||
noto-fonts-cjk-sans
|
||||
noto-fonts-color-emoji
|
||||
noto-fonts-extra
|
||||
ubuntu_font_family
|
||||
unifont # unicode fallback
|
||||
] ++ cfg.additionalFonts;
|
||||
packages =
|
||||
with pkgs;
|
||||
[
|
||||
cantarell-fonts # gnome default
|
||||
fira
|
||||
fira-code # coding
|
||||
fira-code-symbols # ligatures
|
||||
fira-mono
|
||||
font-awesome # icons
|
||||
joypixels # emojis
|
||||
liberation_ttf # main microsoft fonts
|
||||
# mplus-outline-fonts.githubRelease # microsoft fonts
|
||||
noto-fonts
|
||||
noto-fonts-cjk-sans
|
||||
noto-fonts-color-emoji
|
||||
noto-fonts-extra
|
||||
ubuntu_font_family
|
||||
unifont # unicode fallback
|
||||
]
|
||||
++ cfg.additionalFonts;
|
||||
};
|
||||
nixpkgs.config.joypixels.acceptLicense = true;
|
||||
};
|
||||
|
|
|
@ -7,32 +7,31 @@ in
|
|||
enable = mkEnableOption "kvm configuration";
|
||||
|
||||
cpuFlavor = mkOption {
|
||||
type = with types; nullOr (enum [ "intel" "amd" ]);
|
||||
type =
|
||||
with types;
|
||||
nullOr (enum [
|
||||
"intel"
|
||||
"amd"
|
||||
]);
|
||||
default = null;
|
||||
example = "intel";
|
||||
description = "Which kind of CPU to activate kernelModules";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||
{
|
||||
virtualisation.libvirtd.enable = true;
|
||||
config = lib.mkIf cfg.enable (
|
||||
lib.mkMerge [
|
||||
{
|
||||
virtualisation.libvirtd.enable = true;
|
||||
|
||||
programs.virt-manager.enable = true;
|
||||
}
|
||||
programs.virt-manager.enable = true;
|
||||
}
|
||||
|
||||
# Intel CPU
|
||||
(lib.mkIf (cfg.cpuFlavor == "intel") {
|
||||
boot.kernelModules = [
|
||||
"kvm-intel"
|
||||
];
|
||||
})
|
||||
# Intel CPU
|
||||
(lib.mkIf (cfg.cpuFlavor == "intel") { boot.kernelModules = [ "kvm-intel" ]; })
|
||||
|
||||
# AMD CPU
|
||||
(lib.mkIf (cfg.cpuFlavor == "amd") {
|
||||
boot.kernelModules = [
|
||||
"kvm-amd"
|
||||
];
|
||||
})
|
||||
]);
|
||||
# AMD CPU
|
||||
(lib.mkIf (cfg.cpuFlavor == "amd") { boot.kernelModules = [ "kvm-amd" ]; })
|
||||
]
|
||||
);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
# Podman related settings
|
||||
{ config, lib, options, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
options,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.my.system.podman;
|
||||
in
|
||||
|
@ -10,9 +16,7 @@ in
|
|||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
podman-compose
|
||||
];
|
||||
environment.systemPackages = with pkgs; [ podman-compose ];
|
||||
|
||||
virtualisation.podman = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
# spell-checking
|
||||
{ config, lib, options, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
options,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.my.system.spell-check;
|
||||
in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue