2024-07-03 23:58:26 +02:00
|
|
|
|
{ nixos-hardware }:
|
|
|
|
|
{
|
2024-01-15 12:57:59 +01:00
|
|
|
|
imports = [
|
|
|
|
|
# Include the results of the hardware scan.
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
nixos-hardware.nixosModules.common-pc-laptop
|
|
|
|
|
nixos-hardware.nixosModules.common-pc-laptop-hdd
|
|
|
|
|
nixos-hardware.nixosModules.common-pc-laptop-ssd
|
|
|
|
|
nixos-hardware.nixosModules.common-cpu-intel
|
|
|
|
|
];
|
2024-05-17 18:50:01 +02:00
|
|
|
|
fileSystems = {
|
|
|
|
|
# Setup extra filesystem options
|
2024-07-03 23:58:26 +02:00
|
|
|
|
"/".options = [ "compress=zstd" ];
|
|
|
|
|
"/home".options = [ "compress=zstd" ];
|
2024-05-17 18:50:01 +02:00
|
|
|
|
"/nix".options = [
|
|
|
|
|
"compress=zstd"
|
|
|
|
|
"noatime"
|
|
|
|
|
];
|
|
|
|
|
};
|
2024-01-15 12:57:59 +01:00
|
|
|
|
|
|
|
|
|
hardware.bluetooth.enable = true;
|
2024-05-17 18:50:01 +02:00
|
|
|
|
boot.loader = {
|
|
|
|
|
# Bootloader
|
|
|
|
|
systemd-boot = {
|
|
|
|
|
enable = true;
|
|
|
|
|
configurationLimit = 10;
|
|
|
|
|
};
|
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
|
};
|
2024-01-15 12:57:59 +01:00
|
|
|
|
# Network configuration
|
2024-05-17 18:50:01 +02:00
|
|
|
|
networking = {
|
|
|
|
|
hostName = "capricorn";
|
|
|
|
|
networkmanager = {
|
|
|
|
|
enable = true;
|
|
|
|
|
wifi.backend = "iwd";
|
|
|
|
|
appendNameservers = [
|
|
|
|
|
"1.1.1.1"
|
|
|
|
|
"1.0.0.1"
|
|
|
|
|
"8.8.8.8"
|
|
|
|
|
"8.4.4.8"
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
};
|
2024-01-15 12:57:59 +01:00
|
|
|
|
|
|
|
|
|
console.useXkbConfig = true;
|
|
|
|
|
|
|
|
|
|
# Enable CUPS to print documents.
|
|
|
|
|
services.printing.enable = true;
|
|
|
|
|
|
|
|
|
|
# This value determines the NixOS release from which the default
|
|
|
|
|
# settings for stateful data, like file locations and database versions
|
|
|
|
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
|
|
|
# this value at the release version of the first install of this system.
|
|
|
|
|
# Before changing this value read the documentation for this option
|
|
|
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
|
|
|
system.stateVersion = "22.11"; # Did you read the comment?
|
|
|
|
|
}
|