mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-16 17:50:52 +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,13 +1,40 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
environment.sessionVariables = {
|
environment = {
|
||||||
WAYLAND_DISPLAY = "wayland-1";
|
defaultPackages = [ ];
|
||||||
QT_QPA_PLATFORM = "wayland";
|
variables.TERM = "xterm-kitty";
|
||||||
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
|
||||||
SDL_VIDEODRIVER = "wayland";
|
sessionVariables = {
|
||||||
CLUTTER_BACKEND = "wayland";
|
WAYLAND_DISPLAY = "wayland-1";
|
||||||
MOZ_ENABLE_WAYLAND = "1";
|
QT_QPA_PLATFORM = "wayland";
|
||||||
XDG_RUNTIME_DIR = "/run/user/1000";
|
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
||||||
DISPLAY = ":0";
|
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;
|
services.xserver.enable = true;
|
||||||
@ -16,4 +43,6 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
driSupport32Bit = true;
|
driSupport32Bit = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
system.stateVersion = "22.11";
|
||||||
}
|
}
|
||||||
|
@ -38,30 +38,8 @@
|
|||||||
anki # Spaced repetition
|
anki # Spaced repetition
|
||||||
sqlitebrowser # SQL
|
sqlitebrowser # SQL
|
||||||
kanjidraw # Kanji draw
|
kanjidraw # Kanji draw
|
||||||
kitty # TODO: import common module
|
|
||||||
libreoffice
|
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