{ config, pkgs, inputs, ... }: { imports = [./hardware-configuration.nix ./service.nix]; powerManagement.enable = false; system.autoUpgrade.enable = true; networking.networkmanager.enable = true; boot.kernelParams = ["intel_pstate=active"]; nix = { gc.automatic = true; settings = { experimental-features = ["nix-command" "flakes"]; substituters = ["http://nix.dhilton.xyz/" "https://cache.nixos.org/"]; trusted-public-keys = ["nix.dhilton.xyz:MOW060dF1A0/UXmPZBue9KMxCO13PHYFwx1X9hcdYZ4="]; }; }; nixpkgs.config.allowUnfree = true; programs = { nix-ld.enable = true; nix-ld.libraries = with pkgs; [glibc glib]; zsh.enable = true; }; users = { motd = "Welcome to the Server"; defaultUserShell = pkgs.zsh; users = { k = { isNormalUser = true; description = "k"; extraGroups = ["networkmanager" "wheel"]; openssh.authorizedKeys.keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPKbKVe6gneJ9ghFih3bOeL++iDNPJNIMoZSdNMOsD0I k@laptop"]; packages = with pkgs; [zsh]; shell = pkgs.zsh; }; docker = { isNormalUser = true; description = "user for runing docker"; extraGroups = ["docker"]; openssh.authorizedKeys.keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPKbKVe6gneJ9ghFih3bOeL++iDNPJNIMoZSdNMOsD0I k@laptop"]; packages = with pkgs; [docker-compose]; }; }; }; home-manager = {users = {"k" = import ./home.nix;};}; environment.systemPackages = with pkgs; [microcodeIntel]; hardware.bluetooth.enable = true; hardware.bluetooth.powerOnBoot = true; hardware.graphics = { enable = true; extraPackages = with pkgs; [ intel-compute-runtime intel-media-driver vaapiIntel vaapiVdpau libvdpau-va-gl vpl-gpu-rt ]; }; services.xserver.videoDrivers = ["intel"]; # 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 = "23.11"; # Did you read the comment? }