Files
nixos-config/hosts/nixos/configuration.nix
T

82 lines
1.7 KiB
Nix

{ config, pkgs, ... }:
{
imports = [ ./hardware-configuration.nix ];
# Bootloader
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
boot.loader.grub.useOSProber = true;
# Enable flakes and nix-command
nix.settings.experimental-features = [ "nix-command" "flakes" ];
networking.hostName = "nixos";
networking.networkmanager.enable = true;
time.timeZone = "Asia/Ho_Chi_Minh";
i18n.defaultLocale = "en_US.UTF-8";
i18n.inputMethod = {
enable = true;
type = "fcitx5";
fcitx5.addons = with pkgs; [
qt6Packages.fcitx5-unikey
fcitx5-gtk
];
};
i18n.extraLocaleSettings = {
LC_ADDRESS = "vi_VN";
LC_IDENTIFICATION = "vi_VN";
LC_MEASUREMENT = "vi_VN";
LC_MONETARY = "vi_VN";
LC_NAME = "vi_VN";
LC_NUMERIC = "vi_VN";
LC_PAPER = "vi_VN";
LC_TELEPHONE = "vi_VN";
LC_TIME = "vi_VN";
};
services.xserver.enable = true;
services.displayManager.sddm.enable = true;
services.desktopManager.plasma6.enable = true;
services.xserver.xkb = {
layout = "us";
variant = "";
};
services.printing.enable = true;
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
users.users.duynguyen = {
isNormalUser = true;
description = "duynguyen";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
kdePackages.kate
];
};
programs.firefox.enable = true;
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
claude-code
git
];
system.stateVersion = "26.05";
}