Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { config, pkgs, ... }:
- {
- imports = [
- # Include the results of the hardware scan.
- ./hardware-configuration.nix
- ];
- boot.loader.grub.enable = true;
- boot.loader.grub.version = 2;
- boot.loader.grub.device = "/dev/sda";
- networking.hostName = "nix"; # Define your hostname.
- # Select internationalisation properties.
- i18n = {
- consoleFont = "Lat2-Terminus16";
- consoleKeyMap = "us";
- defaultLocale = "en_US.UTF-8";
- };
- # Set your time zone.
- time.timeZone = "America/New_York";
- # List packages installed in system profile. To search by name, run:
- # $ nix-env -qaP | grep wget
- environment.systemPackages = with pkgs; [
- firefox
- git
- mkpasswd
- nodejs
- openssh
- screen
- vim
- which
- ];
- # Enable the X11 windowing system.
- services.xserver.enable = true;
- services.xserver.layout = "us";
- services.xserver.desktopManager.xfce.enable = true;
- users.users.root = {
- hashedPassword = "$6$/tIPpWX0tuUAs$gQaQ5oEGZmKHNUvMTdp5jNcZHwqO3qislpDLW70iIXdNPreGF05THI8ZBWCZVtsKRMM.taDbHsTWXb3ZiEZ0x.";
- };
- users.extraUsers.shawnd = {
- createHome = true;
- extraGroups = [
- "wheel"
- ];
- hashedPassword = "$6$yZireHRPb$CgX9Yf7MPq5ladzbrCTAIsaKCFj23RQ.r3R7GN/VYts1d/tcY6Fn3MCFWc4gXklcYpKedbllQhmu8VDxUeHfW0";
- isNormalUser = true;
- useDefaultShell = true;
- };
- security.sudo.enable = true;
- security.sudo.wheelNeedsPassword = false;
- # The NixOS release to be compatible with for stateful data such as databases.
- system.stateVersion = "16.03";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement