mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-12 11:14:02 -06:00
add zram to configuration
This commit is contained in:
parent
2905652078
commit
9a6d6b3e66
1 changed files with 20 additions and 13 deletions
|
@ -1,13 +1,14 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, inputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
# ./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
./work.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Latest kernel
|
# Latest kernel
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
# boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
systemd-boot.enable = true;
|
systemd-boot.enable = true;
|
||||||
|
@ -28,6 +29,8 @@
|
||||||
options = "--delete-older-than 1w";
|
options = "--delete-older-than 1w";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
zramSwap.enable = true;
|
||||||
|
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
|
@ -45,35 +48,35 @@
|
||||||
hashedPassword = "$6$aAcbLtqiqzySifls$jdKMOQjoWITHD/dWNNZVUH/qNc6aoJ7v4zYofi0U7IJSVTbmOfChS3mzaJbp57AodjdPNKPrnrip8Nlh2Qanx.";
|
hashedPassword = "$6$aAcbLtqiqzySifls$jdKMOQjoWITHD/dWNNZVUH/qNc6aoJ7v4zYofi0U7IJSVTbmOfChS3mzaJbp57AodjdPNKPrnrip8Nlh2Qanx.";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Allow Unfree
|
# Allow Unfree
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
# Install some packages
|
# Install some packages
|
||||||
environment.systemPackages =
|
environment.systemPackages =
|
||||||
with pkgs;
|
with pkgs;
|
||||||
[
|
[
|
||||||
# Packages from nixpkgs
|
|
||||||
avahi
|
avahi
|
||||||
cargo
|
|
||||||
dmidecode
|
dmidecode
|
||||||
fira
|
fira
|
||||||
|
firefox
|
||||||
git
|
git
|
||||||
git-lfs
|
git-lfs
|
||||||
|
helix
|
||||||
libcamera
|
libcamera
|
||||||
lshw
|
lshw
|
||||||
restic
|
restic
|
||||||
roboto-slab
|
roboto-slab
|
||||||
|
syncthing
|
||||||
nvd
|
nvd
|
||||||
unzip
|
unzip
|
||||||
wget
|
wget
|
||||||
xz
|
xz
|
||||||
zlib
|
zlib
|
||||||
|
|
||||||
# Packages from Flake Inputs
|
# Packages from Flake Inputs
|
||||||
inputs.nix-software-center.packages.${system}.nix-software-center
|
inputs.nix-software-center.packages.${system}.nix-software-center
|
||||||
|
];
|
||||||
];
|
|
||||||
|
|
||||||
programs.nix-ld.enable = true;
|
programs.nix-ld.enable = true;
|
||||||
programs.nix-ld.libraries = with pkgs; [
|
programs.nix-ld.libraries = with pkgs; [
|
||||||
|
@ -81,6 +84,10 @@
|
||||||
# here, NOT in environment.systemPackages
|
# here, NOT in environment.systemPackages
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Enable COSMIC
|
||||||
|
services.desktopManager.cosmic.enable = true;
|
||||||
|
services.displayManager.cosmic-greeter.enable = true;
|
||||||
|
|
||||||
# Enable/Disable hardware
|
# Enable/Disable hardware
|
||||||
## Turn off PulseAudio
|
## Turn off PulseAudio
|
||||||
hardware.pulseaudio.enable = false;
|
hardware.pulseaudio.enable = false;
|
||||||
|
@ -128,7 +135,7 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# System
|
# System
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
system.autoUpgrade.enable = true;
|
system.autoUpgrade.enable = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue