quick update host
This commit is contained in:
parent
033677e764
commit
5dc6c8a77c
22 changed files with 109 additions and 56 deletions
8
hosts/nixos-home/config/basesystem/memory.nix
Normal file
8
hosts/nixos-home/config/basesystem/memory.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ ... }:
|
||||
{
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
algorithm = "zstd";
|
||||
memoryPercent = 50;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
# mullvad VPN
|
||||
services.mullvad-vpn.gui = {
|
||||
enable = true;
|
||||
package = pkgs.mullvad-vpn;
|
||||
};
|
||||
# steam
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = false;
|
||||
};
|
||||
programs.gamemode.enable = true;
|
||||
programs.gamescope = {
|
||||
enable = true;
|
||||
capSysNice = true;
|
||||
};
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
algorithm = "zstd";
|
||||
memoryPercent = 50;
|
||||
};
|
||||
# ajouts pour KDE/dolphin
|
||||
services.gvfs.enable = true;
|
||||
services.tumbler.enable = true;
|
||||
environment.sessionVariables = {
|
||||
NIXOS_OZONE_WL = "1";
|
||||
};
|
||||
}
|
||||
8
hosts/nixos-home/config/programs/gamescope.nix
Normal file
8
hosts/nixos-home/config/programs/gamescope.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.gamemode.enable = true;
|
||||
programs.gamescope = {
|
||||
enable = true;
|
||||
capSysNice = true;
|
||||
};
|
||||
}
|
||||
8
hosts/nixos-home/config/programs/steam.nix
Normal file
8
hosts/nixos-home/config/programs/steam.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = false;
|
||||
};
|
||||
}
|
||||
8
hosts/nixos-home/config/services/kde.nix
Normal file
8
hosts/nixos-home/config/services/kde.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
services.gvfs.enable = true;
|
||||
services.tumbler.enable = true;
|
||||
environment.sessionVariables = {
|
||||
NIXOS_OZONE_WL = "1";
|
||||
};
|
||||
}
|
||||
7
hosts/nixos-home/config/services/mullvad.nix
Normal file
7
hosts/nixos-home/config/services/mullvad.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
services.mullvad-vpn.gui = {
|
||||
enable = true;
|
||||
package = pkgs.mullvad-vpn;
|
||||
};
|
||||
}
|
||||
4
hosts/nixos-home/config/services/zramswap.nix
Normal file
4
hosts/nixos-home/config/services/zramswap.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
|
||||
}
|
||||
|
|
@ -5,21 +5,29 @@
|
|||
# à copier dans le dossier courant depuis /etc/nixos
|
||||
./hardware-configuration.nix
|
||||
# ensemble de packages et configurations système
|
||||
./config/bluetooth.nix
|
||||
./config/boot.nix
|
||||
./config/drivers_video.nix
|
||||
./config/extra-services.nix
|
||||
./config/fonts.nix
|
||||
./config/basesystem/bluetooth.nix
|
||||
./config/basesystem/boot.nix
|
||||
./config/basesystem/drivers_video.nix
|
||||
./config/basesystem/language.nix
|
||||
./config/basesystem/memory.nix
|
||||
./config/basesystem/system.nix
|
||||
./config/basesystem/system_saves.nix
|
||||
./config/basesystem/users.nix
|
||||
# style
|
||||
./config/style/fonts.nix
|
||||
./config/style/stylix.nix
|
||||
# additional services
|
||||
./config/services/kde.nix
|
||||
./config/services/mullvad.nix
|
||||
./config/services/power_management.nix
|
||||
./config/services/sound.nix
|
||||
# programs
|
||||
./config/programs/gamescope.nix
|
||||
./config/programs/steam.nix
|
||||
# packages & others
|
||||
./config/hyprland.nix
|
||||
./config/language.nix
|
||||
./config/power_management.nix
|
||||
./config/sound.nix
|
||||
./config/stylix.nix
|
||||
./config/system_packages.nix
|
||||
./config/system_saves.nix
|
||||
./config/system_services.nix
|
||||
./config/user.nix
|
||||
# profil nixos pour mon ordi portable
|
||||
# profil nixos pour mon ordi portable maison
|
||||
# nécessite l'input nixos-hardware dans flake.nix.
|
||||
inputs.nixos-hardware.nixosModules.common-cpu-intel # active le microcode intel, KMS pour GPU intégré, etc...
|
||||
inputs.nixos-hardware.nixosModules.common-pc-laptop # active tlp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue