retronix/configuration.nix

41 lines
995 B
Nix
Raw Normal View History

2023-12-30 18:38:14 +01:00
({ modulesPath, config, lib, pkgs, ... }: {
imports = [
./modules/es-config.nix
"${modulesPath}/profiles/qemu-guest.nix"
./games.nix
];
system.stateVersion = "23.11";
boot.loader.systemd-boot.enable = true;
environment.systemPackages = [
pkgs.xorg.xorgserver
pkgs.xorg.xinit
pkgs.xorg.xf86inputevdev
pkgs.xorg.xf86inputsynaptics
pkgs.xorg.xf86inputlibinput
pkgs.xorg.xf86videointel
pkgs.xorg.xf86videoati
pkgs.xorg.xf86videonouveau
];
programs.bash.loginShellInit =
"startx ${config.retronix.emulationstation.cli}";
hardware.opengl.enable = true;
hardware.opengl.driSupport = true;
services.xserver.enable = true;
services.xserver.displayManager.startx.enable = true;
services.xserver.libinput.enable = true;
users.users.arcade = {
isNormalUser = true;
home = "/home/arcade";
};
services.getty.autologinUser = "arcade";
2024-01-06 19:34:47 +01:00
nixpkgs.overlays = [ (import ./pkgs/overlay.nix) ];
2023-12-30 18:38:14 +01:00
console.keyMap = "fr";
})