74 lines
1.7 KiB
Nix
74 lines
1.7 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
imports = [
|
|
# Hardware configuration
|
|
./hosts/laptop/configuration.nix
|
|
|
|
# NixOS base modules
|
|
./modules/common/base.nix
|
|
./modules/common/yubikey.nix
|
|
./modules/common/desktop-i3.nix
|
|
./modules/common/net.nix
|
|
./modules/common/parsec.nix
|
|
./modules/common/users.nix
|
|
./modules/common/obs.nix
|
|
|
|
# Laptop-specific modules
|
|
./modules/laptop/default.nix
|
|
./modules/laptop/fingerprint.nix
|
|
./modules/laptop/home-manager.nix
|
|
./modules/laptop/bluetooth.nix
|
|
./modules/laptop/zwift.nix
|
|
|
|
# Optional feature modules (with options)
|
|
./modules/laptop/gaming.nix
|
|
./modules/laptop/virtualization.nix
|
|
./modules/laptop/printing.nix
|
|
./modules/laptop/power.nix
|
|
];
|
|
|
|
# Enable bootloader
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
# Enable optional features via custom options
|
|
custom.gaming.enable = true;
|
|
custom.gaming.enableXpadneo = true;
|
|
|
|
custom.virtualization.docker.enable = true;
|
|
custom.virtualization.virtualbox.enable = true;
|
|
|
|
custom.printing.enable = true;
|
|
custom.printing.printers = [
|
|
{
|
|
name = "TOSHIBA_5eme_Luminy";
|
|
location = "Work";
|
|
deviceUri = "http://139.124.5.114";
|
|
model = "drv:///sample.drv/generic.ppd";
|
|
ppdOptions = {
|
|
PageSize = "A4";
|
|
};
|
|
}
|
|
];
|
|
custom.printing.defaultPrinter = "TOSHIBA_5eme_Luminy";
|
|
|
|
custom.power.enable = true;
|
|
custom.power.cpuGovernor = "powersave";
|
|
|
|
custom.bluetooth.enable = true;
|
|
custom.bluetooth.powerOnBoot = true;
|
|
|
|
custom.zwift.enable = true;
|
|
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
};
|
|
services.pulseaudio.enable = false;
|
|
}
|