# Edit this configuration file to define what should be installed on # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). { config, pkgs, ... }: { imports = [ ./hardware.nix ./local.nix ./includes/cli ./includes/desktop ./includes/local-dns ./includes/kubernetes ]; nixpkgs.config.allowUnfree = true; networking.networkmanager.enable = true; console.font = "Lat2-Terminus16"; console.keyMap = "us"; i18n.defaultLocale = "en_US.UTF-8"; # Set your time zone. time.timeZone = "Asia/Tokyo"; # Enable sound. sound.enable = true; hardware.pulseaudio.enable = true; virtualisation.libvirtd = { enable = true; onBoot = "ignore"; }; # Define a user account. Don't forget to set a password with ‘passwd’. users.users.thomas = { uid = 1000; isNormalUser = true; extraGroups = [ "wheel" "video" "networkmanager" "libvirtd" ]; shell = pkgs.zsh; subUidRanges = [ { count = 65535; startUid = 100001; } ]; subGidRanges = [ { count = 65535; startGid = 100001; } ]; }; users.groups.thomas = { gid = 1000; members = [ "thomas" ]; }; nix.gc = { automatic = true; options = "--delete-older-than 14d"; }; systemd.timers.nix-gc.timerConfig.Persistent = true; # This value determines the NixOS release with which your system is to be # compatible, in order to avoid breaking some software such as database # servers. You should change this only after NixOS release notes say you # should. system.stateVersion = "19.09"; # Did you read the comment? }