Enable audio and add a basic home configuration
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
# Kernel configuration
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
# TODO Add resume_offset
|
||||
kernelParams = [ "zfs.zfs_arc_max=536870912" ];
|
||||
kernelModules = [ "i915" "acpi_call" ];
|
||||
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
|
||||
@@ -64,13 +63,17 @@
|
||||
# Enable the TLP daemon
|
||||
services.tlp.enable = true;
|
||||
|
||||
# Add a swap file and resume from it
|
||||
swapDevices = [ { device = "/swap"; size = 8192; } ];
|
||||
boot.resumeDevice = "/swap";
|
||||
|
||||
# NixOS version
|
||||
system.stateVersion = "20.09";
|
||||
|
||||
# Create coolneng user
|
||||
users.users.coolneng = {
|
||||
isNormalUser = true;
|
||||
home = "/home/coolneng";
|
||||
extraGroups = [ "wheel" "video" "audio" ];
|
||||
shell = "/run/current-system/sw/bin/fish";
|
||||
};
|
||||
|
||||
# Import other configuration modules
|
||||
imports = [
|
||||
./modules/software.nix
|
||||
@@ -78,6 +81,8 @@
|
||||
./modules/gui.nix
|
||||
./modules/datasync.nix
|
||||
./modules/audio.nix
|
||||
./modules/home.nix
|
||||
./modules/hardware-configuration.nix
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user