diff --git a/configuration.nix b/configuration.nix index 0abfea6..7964e7e 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,9 +1,13 @@ { config, lib, pkgs, ... }: +let + home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz"; +in { imports = [ ./hardware-configuration.nix + (import "${home-manager}/nixos") ]; nixpkgs.config.allowUnfree = true; @@ -15,6 +19,16 @@ vlc obs-studio libreoffice + sunshine + bitwig-studio + kleopatra + + wine64 + wineWow64Packages.stagingFull + winetricks + yabridge + yabridgectl + wget @@ -24,6 +38,10 @@ btop busybox xclip + yubico-pam + yubikey-agent + yubikey-manager + yubioath-flutter (neovim.override { vimAlias = true; configure = { @@ -76,10 +94,20 @@ time.timeZone = "Asia/Shanghai"; - services.xserver.enable = true; - services.xserver.displayManager.sddm.enable = true; - services.xserver.desktopManager.plasma5.enable = true; - + services.xserver = { + enable = true; + displayManager.sddm.enable = true; + desktopManager.plasma5.enable = true; + displayManager.defaultSession = "plasma"; + }; + programs.dconf.enable = true; + #home-manager.users.lzc256 = { + # home.stateVersion = "23.11"; + #}; + + # services.displayManager.sddm.enable = true; + # services.xserver.desktopManager.plasma5.enable = true; + # services.desktopManager.plasma6.enable = true; # Configure keymap in X11 # services.xserver.xkb.layout = "us"; @@ -121,13 +149,24 @@ # system.copySystemConfiguration = true; fonts.packages = with pkgs; [ - noto-fonts noto-fonts-cjk + noto-fonts noto-fonts-emoji + noto-fonts-cjk-serif meslo-lgs-nf wqy_zenhei hack-font ]; + fonts.fontconfig = { + antialias = true; + hinting.enable = true; + defaultFonts = { + emoji = [ "Noto Color Emoji" ]; + monospace = [ "FiraCode Nerd Font" ]; + sansSerif = [ "Noto Sans CJK SC" ]; + serif = [ "Noto Serif CJK SC" ]; + }; + }; i18n.defaultLocale = "zh_CN.UTF-8"; console = { font = "hack"; @@ -136,6 +175,7 @@ i18n.inputMethod.enabled = "ibus"; i18n.inputMethod.ibus.engines = with pkgs.ibus-engines; [ libpinyin + ]; # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion . @@ -149,4 +189,3 @@ } -