mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 08:14:00 +01:00
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:
parent
c6e3513a5d
commit
505e35edcd
@ -1,5 +1,11 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.sessionVariables = {
|
||||
environment = {
|
||||
defaultPackages = [ ];
|
||||
variables.TERM = "xterm-kitty";
|
||||
|
||||
sessionVariables = {
|
||||
WAYLAND_DISPLAY = "wayland-1";
|
||||
QT_QPA_PLATFORM = "wayland";
|
||||
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
||||
@ -9,6 +15,27 @@
|
||||
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";
|
||||
}
|
||||
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user