fix stormd

This commit is contained in:
RingOfStorms (Joshua Bell) 2024-12-28 15:21:19 -06:00
parent 985d584213
commit 1b1bd60f4b
9 changed files with 1296 additions and 28 deletions

20
modules/common/docker.nix Normal file
View file

@ -0,0 +1,20 @@
{
config,
lib,
...
}:
with lib;
let
cfg = config.mods.common;
in
{
config = mkIf cfg.docker {
virtualisation.docker.enable = true;
users.extraGroups.docker.members = [ config.mods.common.primaryUser ];
environment.shellAliases = {
dockerv = "docker volume";
dockeri = "docker image";
dockerc = "docker container";
};
};
}

View file

@ -46,7 +46,7 @@
default = true;
description = "Open the ssh port.";
};
# users = mkOption {
docker = mkEnableOption (lib.mdDoc "Enable docker");
};
imports = [
@ -56,6 +56,9 @@
./ssh.nix
./ragenix.nix
./shell/common.nix
./tty_caps_esc.nix
./docker.nix
./fonts.nix
];
config = {
_module.args = {

11
modules/common/fonts.nix Normal file
View file

@ -0,0 +1,11 @@
{
pkgs,
...
}:
{
config = {
fonts.packages = with pkgs; [
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
];
};
}

View file

@ -0,0 +1,16 @@
{
lib,
pkgs,
...
}:
with lib;
{
config = {
services.xserver.xkb.options = "caps:escape";
console = {
earlySetup = true;
packages = with pkgs; [ terminus_font ];
useXkbConfig = true; # use xkb.options in tty. (caps -> escape)
};
};
}