mirror of
https://github.com/nmasur/dotfiles
synced 2025-04-24 13:52:25 +00:00
Compare commits
5 Commits
82a1954c26
...
8d8dd8ad62
Author | SHA1 | Date | |
---|---|---|---|
|
8d8dd8ad62 | ||
|
bad49cb2c3 | ||
|
c052813f6d | ||
|
ed19eaafd1 | ||
|
09de243bd3 |
@ -91,6 +91,7 @@ nixpkgs.lib.nixosSystem {
|
|||||||
legendary.enable = true;
|
legendary.enable = true;
|
||||||
lutris.enable = true;
|
lutris.enable = true;
|
||||||
leagueoflegends.enable = true;
|
leagueoflegends.enable = true;
|
||||||
|
ryujinx.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ vim.filetype.add({
|
|||||||
pattern = {
|
pattern = {
|
||||||
[".*%.tfvars"] = "hcl",
|
[".*%.tfvars"] = "hcl",
|
||||||
-- [".*%.tf"] = "hcl",
|
-- [".*%.tf"] = "hcl",
|
||||||
|
[".*%.rasi"] = "css",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
|
bash = "${pkgs.bashInteractive}/bin/bash";
|
||||||
ls = "exa";
|
ls = "exa";
|
||||||
trash = lib.mkIf pkgs.stdenv.isLinux "${pkgs.trash-cli}/bin/trash-put";
|
trash = lib.mkIf pkgs.stdenv.isLinux "${pkgs.trash-cli}/bin/trash-put";
|
||||||
};
|
};
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
./legendary.nix
|
./legendary.nix
|
||||||
./lutris.nix
|
./lutris.nix
|
||||||
./minecraft-server.nix
|
./minecraft-server.nix
|
||||||
|
./ryujinx.nix
|
||||||
./steam.nix
|
./steam.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
17
modules/nixos/gaming/ryujinx.nix
Normal file
17
modules/nixos/gaming/ryujinx.nix
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{ config, pkgs, lib, ... }: {
|
||||||
|
|
||||||
|
options.gaming.ryujinx.enable =
|
||||||
|
lib.mkEnableOption "Ryujinx Nintendo Switch application.";
|
||||||
|
|
||||||
|
config = lib.mkIf config.gaming.ryujinx.enable {
|
||||||
|
environment.systemPackages = with pkgs; [ ryujinx ];
|
||||||
|
|
||||||
|
home-manager.users.${config.user}.xdg.desktopEntries.ryujinx =
|
||||||
|
lib.mkIf pkgs.stdenv.isLinux {
|
||||||
|
name = "Ryujinx";
|
||||||
|
exec =
|
||||||
|
"env DOTNET_EnableAlternateStackCheck=1 Ryujinx -r /home/${config.user}/media/games/ryujinx/ %f";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{ config, lib, ... }: {
|
{ config, pkgs, lib, ... }: {
|
||||||
|
|
||||||
config = lib.mkIf config.physical {
|
config = lib.mkIf config.physical {
|
||||||
|
|
||||||
@ -6,12 +6,12 @@
|
|||||||
powerManagement.powerDownCommands = ''
|
powerManagement.powerDownCommands = ''
|
||||||
set +e
|
set +e
|
||||||
|
|
||||||
for power in /sys/bus/i2c/devices/i2c-*/device/power; do echo disabled > ''${power}/wakeup || true; done
|
|
||||||
for power in /sys/bus/usb/devices/1-*/power; do echo disabled > ''${power}/wakeup || true; done
|
|
||||||
|
|
||||||
# Fix for Gigabyte motherboard
|
# Fix for Gigabyte motherboard
|
||||||
# /r/archlinux/comments/y7b97e/my_computer_wakes_up_immediately_after_i_suspend/isu99sr/
|
# /r/archlinux/comments/y7b97e/my_computer_wakes_up_immediately_after_i_suspend/isu99sr/
|
||||||
echo GPP0 > /proc/acpi/wakeup
|
# Disable if enabled
|
||||||
|
if (grep "GPP0.*enabled" /proc/acpi/wakeup >/dev/null); then
|
||||||
|
echo GPP0 | ${pkgs.doas}/bin/doas tee /proc/acpi/wakeup
|
||||||
|
fi
|
||||||
|
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
|
@ -11,6 +11,10 @@
|
|||||||
# This setting only applies to NixOS, different on Darwin
|
# This setting only applies to NixOS, different on Darwin
|
||||||
nix.gc.dates = "weekly";
|
nix.gc.dates = "weekly";
|
||||||
|
|
||||||
|
systemd.timers.nix-gc.timerConfig = { WakeSystem = true; };
|
||||||
|
systemd.services.nix-gc.postStop =
|
||||||
|
lib.mkIf (!config.server) "systemctl suspend";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user