更新時点での最新データです。試行錯誤中のものも含むよ!!
{ config, lib, pkgs, ... }: { imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix ]; ################################################ # BIOS or EFI については片方を完全に削除すること ########## BIOS / MBR の場合 ########## # # Use the GRUB 2 boot loader. # boot.loader.grub.enable = true; # boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only # ########## EFI / GPT の場合 ########## # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; networking.hostName = "nixos"; networking.domain = "kvm.asaasa.tk"; # Pick only one of the below networking options. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. # Set your time zone. # time.timeZone = "Europe/Amsterdam"; time.timeZone = "Asia/Tokyo"; # Select internationalisation properties. i18n.defaultLocale = "en_US.UTF-8"; console = { font = "Lat2-Terminus16"; keyMap = "jp106"; }; # Enable the X11 windowing system. # services.xserver.enable = true; # Define a user account. Don't forget to set a password with ‘passwd’. users.users.nixos = { isNormalUser = true; initialPassword = "nixos"; # 初期パスワード nixos もちろんあとで書き換えること! group = "users"; extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. packages = with pkgs; [ neofetch ]; }; # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ vim git ]; # List services that you want to enable: # Enable the OpenSSH daemon. services.openssh.enable = true; services.openssh.settings.PermitRootLogin = "no"; #services.openssh.settings.passwordAuthentication = false; # Open ports in the firewall. # Or disable the firewall altogether. # networking.firewall.enable = false; # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion . system.stateVersion = "24.05"; # Did you read the comment? }