Add earlyoom and actually load modules for jimbo

This commit is contained in:
fleaz 2022-01-28 15:43:37 +01:00
parent f1f8f68ffc
commit 7a8af01854
4 changed files with 11 additions and 8 deletions

View file

@ -14,6 +14,7 @@
../../modules/opengl.nix ../../modules/opengl.nix
../../modules/ssh.nix ../../modules/ssh.nix
../../modules/remote-builder.nix ../../modules/remote-builder.nix
../../modules/earlyoom.nix
../../users/fleaz.nix ../../users/fleaz.nix
../../home-manager/default.nix ../../home-manager/default.nix
]; ];

View file

@ -12,6 +12,12 @@ in {
# Include the results of the hardware scan. # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
../../home-manager/default.nix ../../home-manager/default.nix
../../modules/earlyoom.nix
../../modules/opengl.nix
../../modules/remote-builder.nix
../../modules/sound.nix
../../modules/ssh.nix
../../users/fleaz.nix
]; ];
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
@ -86,13 +92,6 @@ in {
# Enable touchpad support (enabled default in most desktopManager). # Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true; # services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.fleaz = {
isNormalUser = true;
shell = pkgs.zsh;
extraGroups = [ "wheel" "docker" ]; # Enable sudo for the user.
};
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
environment.systemPackages = with pkgs; [ vim wget curl git environment.systemPackages = with pkgs; [ vim wget curl git
]; ];

3
modules/earlyoom.nix Normal file
View file

@ -0,0 +1,3 @@
{
services.earlyoom.enable = true;
}

View file

@ -1,4 +1,4 @@
{ ... }: { { pkgs, ... }: {
users.users.fleaz = { users.users.fleaz = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user. extraGroups = [ "wheel" ]; # Enable sudo for the user.