54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./modules/display.nix
|
|
./modules/sound.nix
|
|
./modules/hyprland.nix
|
|
./modules/global-packages.nix
|
|
./modules/gc.nix
|
|
./modules/users.nix
|
|
./modules/wireguard.nix
|
|
./modules/fonts.nix
|
|
./hardware-configuration.nix
|
|
];
|
|
|
|
# Bootloader
|
|
boot.loader = {
|
|
systemd-boot.enable = true;
|
|
efi.canTouchEfiVariables = true;
|
|
};
|
|
|
|
# Network Setup
|
|
networking.hostName = "yoga";
|
|
networking.networkmanager.enable = true;
|
|
|
|
time.timeZone = "Europe/Athens";
|
|
|
|
# Enable Virtualization Daemon
|
|
#virtualisation.libvirtd.enable = true;
|
|
#virtualisation.docker.enable = true;
|
|
|
|
# Enable Dev Documentation
|
|
documentation.dev.enable = true;
|
|
|
|
# Graphics
|
|
hardware.graphics = {
|
|
enable = true;
|
|
enable32Bit = true;
|
|
extraPackages = with pkgs; [
|
|
mesa
|
|
];
|
|
};
|
|
|
|
# Set sops-age key file path
|
|
sops.age.keyFile = "/var/lib/sops-nix/key.txt";
|
|
|
|
# Disable the systemd service for the lenovo yoga's keyboard lighting because it does not work
|
|
systemd.services."systemd-backlight@leds:platform::kbd_backlight".enable = false;
|
|
|
|
# Enable flakes and nix commands
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
system.stateVersion = "26.05";
|
|
} |