game console emulators

This commit is contained in:
Dmitriy Kholkin 2023-07-05 20:43:30 +03:00
parent a1f6e3d7f5
commit 1a7373af26
5 changed files with 25 additions and 5 deletions

6
flake.lock generated
View File

@ -1091,11 +1091,11 @@
},
"nur": {
"locked": {
"lastModified": 1686858300,
"narHash": "sha256-puBTBN6pJXAZ7oI2MHHyj+GCnipqZwTF9PvGtouBXKA=",
"lastModified": 1688546999,
"narHash": "sha256-fW0BKoMIsukWt0C/K47gHuVe2M+UyqfOS/pmZUqCmYs=",
"owner": "nix-community",
"repo": "NUR",
"rev": "b3d13e358b2ec4caf73562492128a483b84970da",
"rev": "3d4890e8ed7d295a88d0e8951916a45bc19d2f7f",
"type": "github"
},
"original": {

View File

@ -11,6 +11,7 @@
nixosProfiles.hoyo
nixosProfiles.sunshine
nixosProfiles.attic
nixosProfiles.emulators
];
virtualisation.libvirt.guests = {

View File

@ -0,0 +1,13 @@
{ config, pkgs, lib, ... }: {
home-manager.users.${config.mainuser} = {
home.packages = with pkgs; [
(retroarch.override { cores = with libretro; [ genesis-plus-gx dosbox ]; })
pcsx2 rpcs3
];
};
persist.state.homeDirectories = [
".config/retroarch"
".config/PCSX2"
".config/rpcs3"
];
}

View File

@ -77,7 +77,6 @@ with config.deviceSpecific; {
lutris
moonlight-qt
# reshade-shaders
# (retroarch.override { cores = [ libretro.genesis-plus-gx libretro.dosbox ]; })
# parsec
protonhax
protontricks

View File

@ -16,6 +16,7 @@
"input"
"kvm"
"libvirtd"
"limits"
"lp"
"lxd"
"networkmanager"
@ -42,9 +43,15 @@
config.users.users.${config.mainuser}.openssh.authorizedKeys.keys;
};
programs.zsh.enable = true;
# Safe, because we using doas
# Safe, because we are using doas
users.allowNoPasswordLogin = true;
systemd.services."user@" = { serviceConfig = { Restart = "always"; }; };
services.getty.autologinUser = config.mainuser;
users.groups.limits = {};
security.pam.loginLimits = [
{ domain = "@limits"; item = "memlock"; type = "soft"; value = "unlimited"; }
{ domain = "@limits"; item = "memlock"; type = "hard"; value = "unlimited"; }
];
}