- Add niri compositor with full default config (niri.kdl) - tap-to-click, natural-scroll, scroll-factor 0.3 - waybar, xwayland-satellite, mako autostart - kitty as default terminal, fuzzel as launcher - Add zsh as default shell with autosuggestions, syntax highlighting - Add starship prompt, zoxide with zsh integration - Add plasma-manager for declarative KDE dark theme and touchpad settings - Add zen-browser and claude-desktop via community flakes - Add vscodium, kitty, foot, fuzzel, waybar, mako, wl-clipboard - Add swaylock, swayidle, xwayland-satellite for Niri session - Add daily apps: mpv, imv, grim, slurp, libreoffice, telegram-desktop - Add CLI tools: btop, ripgrep, fzf, eza, bat, gh - Set NIXOS_OZONE_WL=1 for Electron apps Wayland and fcitx5 support - Enable security.polkit for privilege escalation in Niri - Fix home-manager fontconfig nodePackages bug - Fix git deprecated userName/userEmail options
94 lines
2.0 KiB
Nix
94 lines
2.0 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;
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = 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";
|
|
shell = pkgs.zsh;
|
|
extraGroups = [ "networkmanager" "wheel" ];
|
|
packages = with pkgs; [
|
|
kdePackages.kate
|
|
];
|
|
};
|
|
|
|
programs.firefox.enable = true;
|
|
programs.niri.enable = true;
|
|
programs.zsh.enable = true;
|
|
|
|
security.polkit.enable = true;
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
claude-code
|
|
git
|
|
];
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
settings.PasswordAuthentication = true;
|
|
};
|
|
|
|
system.stateVersion = "26.05";
|
|
}
|