another one
This commit is contained in:
1
system/usr/bin/android/default.nix
Normal file
1
system/usr/bin/android/default.nix
Normal file
@@ -0,0 +1 @@
|
||||
{ programs.adb.enable = true; }
|
||||
3
system/usr/bin/bottles/default.nix
Normal file
3
system/usr/bin/bottles/default.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{pkgs, ...}: {
|
||||
environment.systemPackages = [pkgs.bottles-unwrapped];
|
||||
}
|
||||
9
system/usr/bin/corectrl/default.nix
Normal file
9
system/usr/bin/corectrl/default.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
programs.corectrl = {
|
||||
enable = true;
|
||||
gpuOverclock = {
|
||||
enable = true;
|
||||
ppfeaturemask = "0xffffffff";
|
||||
};
|
||||
};
|
||||
}
|
||||
29
system/usr/bin/gamemode/default.nix
Normal file
29
system/usr/bin/gamemode/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
programs.gamemode = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
softrealtime = "auto";
|
||||
renice = 15;
|
||||
};
|
||||
# gpu = {
|
||||
# apply_gpu_optimisations = "accept-responsibility";
|
||||
# gpu_device = 1;
|
||||
# amd_performance_level = "high";
|
||||
# };
|
||||
custom = {
|
||||
start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
|
||||
end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
|
||||
};
|
||||
};
|
||||
};
|
||||
# see https://github.com/fufexan/nix-gaming/#pipewire-low-latency
|
||||
services.pipewire.lowLatency.enable = true;
|
||||
imports = [
|
||||
inputs.nix-gaming.nixosModules.pipewireLowLatency
|
||||
];
|
||||
}
|
||||
10
system/usr/bin/gamescope/default.nix
Normal file
10
system/usr/bin/gamescope/default.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
programs.gamescope = {
|
||||
enable = true;
|
||||
capSysNice = true;
|
||||
args = [
|
||||
"--rt"
|
||||
"--expose-wayland"
|
||||
];
|
||||
};
|
||||
}
|
||||
20
system/usr/bin/gaming.nix
Normal file
20
system/usr/bin/gaming.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./steam
|
||||
./lutris
|
||||
# ./bottles
|
||||
./gamemode
|
||||
./gamescope
|
||||
./corectrl
|
||||
];
|
||||
environment = {
|
||||
systemPackages = with pkgs; [
|
||||
# Misc
|
||||
protonup
|
||||
winetricks
|
||||
];
|
||||
sessionVariables = {
|
||||
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/cnst/.steam/root/compatibilitytools.d";
|
||||
};
|
||||
};
|
||||
}
|
||||
5
system/usr/bin/gimp/default.nix
Normal file
5
system/usr/bin/gimp/default.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
gimp-with-plugins
|
||||
];
|
||||
}
|
||||
5
system/usr/bin/inkscape/default.nix
Normal file
5
system/usr/bin/inkscape/default.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
inkscape-with-extensions
|
||||
];
|
||||
}
|
||||
5
system/usr/bin/lutris/default.nix
Normal file
5
system/usr/bin/lutris/default.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
lutris
|
||||
];
|
||||
}
|
||||
8
system/usr/bin/steam/default.nix
Normal file
8
system/usr/bin/steam/default.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
programs = {
|
||||
steam = {
|
||||
enable = true;
|
||||
gamescopeSession.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
7
system/usr/share/default.nix
Normal file
7
system/usr/share/default.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
imports = [
|
||||
# shared imports
|
||||
./fonts
|
||||
./locale
|
||||
];
|
||||
}
|
||||
29
system/usr/share/fonts/default.nix
Normal file
29
system/usr/share/fonts/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{pkgs, ...}: {
|
||||
fonts.packages = with pkgs; [
|
||||
noto-fonts
|
||||
noto-fonts-cjk
|
||||
noto-fonts-emoji
|
||||
liberation_ttf
|
||||
fira-code-symbols
|
||||
font-awesome
|
||||
recursive
|
||||
input-fonts
|
||||
(nerdfonts.override {
|
||||
fonts = [
|
||||
"JetBrainsMono"
|
||||
"FiraCode"
|
||||
"FiraMono"
|
||||
"Iosevka"
|
||||
"3270"
|
||||
"DroidSansMono"
|
||||
"SourceCodePro"
|
||||
"UbuntuMono"
|
||||
"Overpass"
|
||||
"Monoid"
|
||||
"Mononoki"
|
||||
"Hack"
|
||||
"IBMPlexMono"
|
||||
];
|
||||
})
|
||||
];
|
||||
}
|
||||
19
system/usr/share/locale/default.nix
Normal file
19
system/usr/share/locale/default.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
time.timeZone = "Europe/Stockholm";
|
||||
|
||||
i18n = {
|
||||
defaultLocale = "en_US.UTF-8";
|
||||
|
||||
extraLocaleSettings = {
|
||||
LC_ADDRESS = "sv_SE.UTF-8";
|
||||
LC_IDENTIFICATION = "sv_SE.UTF-8";
|
||||
LC_MEASUREMENT = "sv_SE.UTF-8";
|
||||
LC_MONETARY = "sv_SE.UTF-8";
|
||||
LC_NAME = "sv_SE.UTF-8";
|
||||
LC_NUMERIC = "sv_SE.UTF-8";
|
||||
LC_PAPER = "sv_SE.UTF-8";
|
||||
LC_TELEPHONE = "sv_SE.UTF-8";
|
||||
LC_TIME = "sv_SE.UTF-8";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user