retronix/configuration.nix

46 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2023-12-30 18:38:14 +01:00
({ modulesPath, config, lib, pkgs, ... }: {
imports = [
2024-01-15 15:14:30 +01:00
./modules
2024-01-18 18:55:22 +01:00
./virtualisation.nix
./common-config
2023-12-30 18:38:14 +01:00
./games.nix
2024-01-15 15:14:30 +01:00
./retroarch
2023-12-30 18:38:14 +01:00
];
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;
2024-01-18 18:55:22 +01:00
users.mutableUsers = false;
2023-12-30 18:38:14 +01:00
users.users.arcade = {
isNormalUser = true;
home = "/home/arcade";
2024-01-18 18:55:22 +01:00
extraGroups = [ "wheel" ];
inherit (import ./opsec.nix) hashedPassword;
2023-12-30 18:38:14 +01:00
};
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";
})