containers: Use more detailed common config

All containers can inherit a lot of the same settings since the main
feature is separating applications from the host and each other.
This commit is contained in:
Donovan Glover 2023-06-22 12:19:02 -04:00
parent c6e3513a5d
commit 505e35edcd
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 38 additions and 31 deletions

View File

@ -1,13 +1,40 @@
{ pkgs, ... }:
{
environment.sessionVariables = {
WAYLAND_DISPLAY = "wayland-1";
QT_QPA_PLATFORM = "wayland";
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
SDL_VIDEODRIVER = "wayland";
CLUTTER_BACKEND = "wayland";
MOZ_ENABLE_WAYLAND = "1";
XDG_RUNTIME_DIR = "/run/user/1000";
DISPLAY = ":0";
environment = {
defaultPackages = [ ];
variables.TERM = "xterm-kitty";
sessionVariables = {
WAYLAND_DISPLAY = "wayland-1";
QT_QPA_PLATFORM = "wayland";
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
SDL_VIDEODRIVER = "wayland";
CLUTTER_BACKEND = "wayland";
MOZ_ENABLE_WAYLAND = "1";
XDG_RUNTIME_DIR = "/run/user/1000";
DISPLAY = ":0";
};
};
environment.systemPackages = with pkgs; [
kitty
];
users = {
mutableUsers = false;
allowNoPasswordLogin = true;
users = {
user = {
isNormalUser = true;
home = "/home/user";
};
};
};
home-manager.users.user = {
home.stateVersion = "22.11";
};
services.xserver.enable = true;
@ -16,4 +43,6 @@
enable = true;
driSupport32Bit = true;
};
system.stateVersion = "22.11";
}

View File

@ -38,30 +38,8 @@
anki # Spaced repetition
sqlitebrowser # SQL
kanjidraw # Kanji draw
kitty # TODO: import common module
libreoffice
];
users = {
mutableUsers = false;
allowNoPasswordLogin = true;
users.user = {
isNormalUser = true;
home = "/home/user";
};
};
home-manager.users.user = { pkgs, ... }: {
home.stateVersion = "22.11";
};
environment = {
variables = { TERM = "xterm-kitty"; };
defaultPackages = [ ];
};
system.stateVersion = "22.11";
};
};
}