2023-06-05 18:10:55 +02:00
|
|
|
{ pkgs, lib, hypr-contrib, nix-gaming, ... }:
|
2023-05-25 15:09:53 +02:00
|
|
|
|
2023-05-18 21:54:15 +02:00
|
|
|
{
|
2023-06-05 18:00:13 +02:00
|
|
|
imports = [
|
|
|
|
./modules
|
|
|
|
./user.nix
|
|
|
|
./desktop
|
|
|
|
./dev
|
|
|
|
./host
|
|
|
|
./containers/rar.nix
|
|
|
|
./containers/wine.nix
|
|
|
|
];
|
|
|
|
|
2023-05-25 15:09:53 +02:00
|
|
|
# locale
|
2023-05-26 16:41:07 +02:00
|
|
|
i18n.defaultLocale = "ja_JP.UTF-8";
|
2023-05-25 15:09:53 +02:00
|
|
|
i18n.supportedLocales =
|
2023-05-26 16:41:07 +02:00
|
|
|
[ "ja_JP.UTF-8/UTF-8" "en_US.UTF-8/UTF-8" "fr_FR.UTF-8/UTF-8" ];
|
2023-05-25 15:09:53 +02:00
|
|
|
|
|
|
|
# nix
|
|
|
|
nix = {
|
|
|
|
package = pkgs.nixFlakes;
|
|
|
|
settings = {
|
|
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-06-05 18:00:13 +02:00
|
|
|
hardware.opengl.driSupport32Bit = true;
|
|
|
|
|
|
|
|
boot.loader = {
|
|
|
|
systemd-boot = {
|
|
|
|
enable = true;
|
|
|
|
editor = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
timeout = 0;
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
boot.tmp.useTmpfs = true;
|
|
|
|
|
2023-06-05 18:10:55 +02:00
|
|
|
programs.gamemode.enable = true;
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
2023-06-05 18:00:13 +02:00
|
|
|
hypr-contrib.packages."x86_64-linux".grimblast
|
|
|
|
nix-gaming.packages."x86_64-linux".osu-stable
|
2023-06-05 18:10:55 +02:00
|
|
|
(pkgs.callPackage ./packages/waycorner { })
|
|
|
|
(pkgs.callPackage ./packages/srb2 { })
|
|
|
|
slade
|
|
|
|
typespeed
|
|
|
|
osu-lazer-bin
|
|
|
|
];
|
|
|
|
|
|
|
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
|
|
|
"osu-lazer-bin"
|
|
|
|
"vmware-workstation"
|
2023-06-05 18:00:13 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
environment.sessionVariables = {
|
|
|
|
EDITOR = "nvim";
|
|
|
|
VISUAL = "nvim";
|
|
|
|
GIT_DISCOVERY_ACROSS_FILESYSTEM = "1";
|
|
|
|
FZF_DEFAULT_OPTS = "--height 40% --reverse --border --color=16";
|
|
|
|
NODE_OPTIONS = "--max_old_space_size=16384";
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.defaultPackages = [ ];
|
|
|
|
system.stateVersion = "22.11";
|
|
|
|
|
2023-05-25 15:09:53 +02:00
|
|
|
# home-manager
|
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
|
|
|
|
|
|
|
sharedModules = [{
|
|
|
|
home.stateVersion = "22.11";
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
|
|
|
|
# systemd
|
|
|
|
systemd.extraConfig = ''
|
|
|
|
DefaultTimeoutStopSec=10s
|
|
|
|
'';
|
|
|
|
|
2023-05-26 16:53:50 +02:00
|
|
|
# logind
|
|
|
|
services.logind.lidSwitch = "ignore";
|
|
|
|
|
2023-05-25 15:09:53 +02:00
|
|
|
# timezone
|
|
|
|
time.timeZone = "America/New_York";
|
2023-05-18 21:54:15 +02:00
|
|
|
}
|