Skip to content

Instantly share code, notes, and snippets.

@zeta-00
Created December 14, 2019 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeta-00/159aa7651b44c6c3c838c1c8b4b9f567 to your computer and use it in GitHub Desktop.
Save zeta-00/159aa7651b44c6c3c838c1c8b4b9f567 to your computer and use it in GitHub Desktop.
# 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, lib, ... }:
let
# pkgsStable = import <nixos-stable> {};
in
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./keymap.nix
./cachix.nix
"${builtins.fetchTarball https://github.com/rycee/home-manager/archive/release-19.03.tar.gz}/nixos"
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "nixos"; # Define your hostname.
networking.wireless.enable = false;
networking.networkmanager.enable = true;
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Set your time zone.
time.timeZone = "America/Denver";
# List packages installed in system profile. To search, run:
# $ nix search package
environment.systemPackages =
[
pkgs.protonvpn-cli
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
programs = {
mtr.enable = true;
light.enable = true;
};
# List services that you want to enable:
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
sound.enable = true;
hardware = {
pulseaudio = {
enable = true;
package = pkgs.pulseaudioFull;
};
/*
bluetooth = {
enable = true;
package = pkgs.bluezFull;
powerOnBoot = true;
};
*/
};
home-manager = {
users.zeta = import /home/zeta/.config/nixpkgs/home.nix;
useUserPackages = true;
};
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.zeta = {
isNormalUser = true;
home = "/home/zeta";
createHome = true;
description = "zeta";
extraGroups = [ "wheel" "networkmanager" "video" "mpd" ];
uid = 1000;
packages = with pkgs; [
home-manager
];
};
# 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 = {
autoUpgrade.enable = true;
stateVersion = "19.03";
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment