mirror of
https://github.com/nmasur/dotfiles
synced 2025-04-24 18:32:24 +00:00
Compare commits
No commits in common. "8d8dd8ad62c4bb21169036f50b05f1085b22eae4" and "82a1954c26e2800f4dd94b605601e3fdd3968cfe" have entirely different histories.
8d8dd8ad62
...
82a1954c26
@ -91,7 +91,6 @@ 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,7 +6,6 @@ vim.filetype.add({
|
|||||||
pattern = {
|
pattern = {
|
||||||
[".*%.tfvars"] = "hcl",
|
[".*%.tfvars"] = "hcl",
|
||||||
-- [".*%.tf"] = "hcl",
|
-- [".*%.tf"] = "hcl",
|
||||||
[".*%.rasi"] = "css",
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
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,7 +7,6 @@
|
|||||||
./legendary.nix
|
./legendary.nix
|
||||||
./lutris.nix
|
./lutris.nix
|
||||||
./minecraft-server.nix
|
./minecraft-server.nix
|
||||||
./ryujinx.nix
|
|
||||||
./steam.nix
|
./steam.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
{ 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, pkgs, lib, ... }: {
|
{ config, 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/
|
||||||
# Disable if enabled
|
echo GPP0 > /proc/acpi/wakeup
|
||||||
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,10 +11,6 @@
|
|||||||
# 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