fix stormd
This commit is contained in:
parent
985d584213
commit
1b1bd60f4b
9 changed files with 1296 additions and 28 deletions
20
modules/common/docker.nix
Normal file
20
modules/common/docker.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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
11
modules/common/fonts.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
config = {
|
||||
fonts.packages = with pkgs; [
|
||||
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
|
||||
];
|
||||
};
|
||||
}
|
16
modules/common/tty_caps_esc.nix
Normal file
16
modules/common/tty_caps_esc.nix
Normal 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)
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue