mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
21 lines
503 B
Nix
21 lines
503 B
Nix
{ config, pkgs, ... }: {
|
|
services.xserver = {
|
|
enable = true;
|
|
autorun = false;
|
|
exportConfiguration = true;
|
|
displayManager = let
|
|
compiledLayout = pkgs.runCommand "keyboard-layout" {} ''
|
|
${pkgs.xorg.xkbcomp}/bin/xkbcomp ${./layout.xkb} $out
|
|
'';
|
|
in {
|
|
sessionCommands = "${pkgs.xorg.xkbcomp}/bin/xkbcomp ${compiledLayout} $DISPLAY";
|
|
startx.enable = true;
|
|
};
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
xorg.xinit
|
|
xsel
|
|
scrot
|
|
];
|
|
}
|