Last active
May 3, 2020 03:54
-
-
Save Ryan1729/3e931b46039b181d2e04adbf2f799647 to your computer and use it in GitHub Desktop.
First attempt at a NixOS config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, ... }: | |
{ | |
nixpkgs.config.allowUnfree = true; | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix | |
]; | |
boot.loader = { | |
grub = { | |
device = "nodev"; | |
enable = true; | |
version = 2; | |
useOSProber = true; | |
}; | |
}; | |
networking.hostName = "oozo"; # Define your hostname. | |
networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. | |
# The global useDHCP flag is deprecated, therefore explicitly set to false here. | |
# Per-interface useDHCP will be mandatory in the future, so this generated config | |
# replicates the default behaviour. | |
networking.useDHCP = false; | |
networking.interfaces.eno1.useDHCP = true; | |
networking.interfaces.wlo1.useDHCP = true; | |
# Configure network proxy if necessary | |
# networking.proxy.default = "http://user:password@proxy:port/"; | |
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; | |
# Select internationalisation properties. | |
# i18n.defaultLocale = "en_US.UTF-8"; | |
# console = { | |
# font = "Lat2-Terminus16"; | |
# keyMap = "us"; | |
# }; | |
# Set your time zone. | |
time.timeZone = "America/Boise"; | |
environment.pathsToLink = [ "/libexec" ]; | |
# List packages installed in system profile. To search, run: | |
# $ nix search wget | |
environment.systemPackages = with pkgs; | |
[ | |
geany | |
htop | |
fortune | |
st | |
alacritty | |
vlc | |
firefox | |
#steam | |
]; | |
# Some programs need SUID wrappers, can be configured further or are | |
# started in user sessions. | |
# programs.mtr.enable = true; | |
# programs.gnupg.agent = { | |
# enable = true; | |
# enableSSHSupport = true; | |
# pinentryFlavor = "gnome3"; | |
# }; | |
# List services that you want to enable: | |
# Enable the OpenSSH daemon. | |
services.openssh.enable = true; | |
services.xserver = { | |
enable = true; | |
layout = "us"; | |
# Enable touchpad support. | |
libinput.enable = true; | |
desktopManager = { | |
xterm.enable = false; | |
}; | |
displayManager = { | |
defaultSession = "none+i3"; | |
}; | |
windowManager.i3 = { | |
enable = true; | |
extraPackages = with pkgs; [ | |
dmenu #application launcher most people use | |
i3status # gives you the default i3 status bar | |
i3lock #default i3 screen locker | |
]; | |
}; | |
}; | |
# Open ports in the firewall. | |
# networking.firewall.allowedTCPPorts = [ ... ]; | |
# networking.firewall.allowedUDPPorts = [ ... ]; | |
# Or disable the firewall altogether. | |
# networking.firewall.enable = false; | |
# Enable CUPS to print documents. | |
# services.printing.enable = true; | |
# Enable sound. | |
sound.enable = true; | |
hardware.pulseaudio.enable = true; | |
# Define a user account. Don't forget to set a password with ‘passwd’. | |
users.users.ryan = { | |
isNormalUser = true; | |
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. | |
}; | |
# This value determines the NixOS release from which the default | |
# settings for stateful data, like file locations and database versions | |
# on your system were taken. It‘s perfectly fine and recommended to leave | |
# this value at the release version of the first install of this system. | |
# Before changing this value read the documentation for this option | |
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). | |
system.stateVersion = "20.03"; # Did you read the comment? | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment