add zram to configuration

This commit is contained in:
Aaron Honeycutt 2024-09-19 19:20:50 -06:00
parent 2905652078
commit 9a6d6b3e66

View file

@ -1,13 +1,14 @@
{ config, pkgs, ... }:
{ config, pkgs, inputs, ... }:
{
imports =
[
# ./hardware-configuration.nix
./hardware-configuration.nix
./work.nix
];
# Latest kernel
boot.kernelPackages = pkgs.linuxPackages_latest;
# boot.kernelPackages = pkgs.linuxPackages_latest;
boot.loader = {
systemd-boot.enable = true;
@ -28,6 +29,8 @@
options = "--delete-older-than 1w";
};
zramSwap.enable = true;
networking.networkmanager.enable = true;
# Set your time zone.
@ -53,17 +56,18 @@
environment.systemPackages =
with pkgs;
[
# Packages from nixpkgs
avahi
cargo
dmidecode
fira
firefox
git
git-lfs
helix
libcamera
lshw
restic
roboto-slab
syncthing
nvd
unzip
wget
@ -72,7 +76,6 @@
# Packages from Flake Inputs
inputs.nix-software-center.packages.${system}.nix-software-center
];
programs.nix-ld.enable = true;
@ -81,6 +84,10 @@
# here, NOT in environment.systemPackages
];
# Enable COSMIC
services.desktopManager.cosmic.enable = true;
services.displayManager.cosmic-greeter.enable = true;
# Enable/Disable hardware
## Turn off PulseAudio
hardware.pulseaudio.enable = false;