init
This commit is contained in:
62
configuration.nix
Normal file
62
configuration.nix
Normal file
@@ -0,0 +1,62 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
# Hardware configuration
|
||||
./hosts/laptop/configuration.nix
|
||||
|
||||
# NixOS base modules
|
||||
./modules/nixos/base.nix
|
||||
./modules/nixos/yubikey.nix
|
||||
./modules/nixos/desktop-i3.nix
|
||||
./modules/nixos/net.nix
|
||||
./modules/nixos/wireless-networks.nix
|
||||
./modules/nixos/parsec.nix
|
||||
|
||||
# Laptop-specific modules
|
||||
./modules/laptop/default.nix
|
||||
./modules/laptop/fingerprint.nix
|
||||
./modules/laptop/users.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;
|
||||
}
|
||||
Reference in New Issue
Block a user