Skip to content

Instantly share code, notes, and snippets.

@hugosenari
Created December 15, 2021 02:55
Show Gist options
  • Save hugosenari/fbef5ef629efa80c18dff2d714ae509e to your computer and use it in GitHub Desktop.
Save hugosenari/fbef5ef629efa80c18dff2d714ae509e to your computer and use it in GitHub Desktop.
{ config, pkgs, lib, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.plymouth.enable = true;
# Set your time zone.
time.timeZone = "America/Sao_Paulo";
networking.hostName = "pontte"; # Define your hostname.
# 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.enp4s0.useDHCP = false;
networking.interfaces.wlp0s20f3.useDHCP = true;
networking.wireless.networks.fakeWifi = { };
networking.wireless.interfaces = [ "wlp0s20f3" ];
services.connman.enable = true;
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
console.font = "Lat2-Terminus16";
console.keyMap = "us";
# Enable the X11 windowing system.
services.xserver.enable = true;
services.acpid.enable = true;
# Configure keymap in X11
services.xserver.layout = "us,br";
services.xserver.xkbOptions = "caps:swapescape";
services.xserver.xkbVariant = "intl,abnt2";
services.xserver.displayManager.lightdm.extraSeatDefaults = ''
greeter-setup-script=${pkgs.numlockx}/bin/numlockx on
'';
services.xserver.desktopManager.enlightenment.enable = true;
services.timesyncd.enable = lib.mkDefault true;
services.espanso.enable = true;
# Enable sound.
sound.enable = true;
hardware.pulseaudio.enable = true;
virtualisation.docker.enable = true;
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.hugosenari.isNormalUser = true;
users.users.hugosenari.shell = pkgs.fish;
users.users.hugosenari.extraGroups = [ "wheel" "sudo" "lp" "docker" ]; # Enable ‘sudo’ for the user.
users.users.hugo.isNormalUser = true;
users.users.hugo.shell = pkgs.fish;
users.users.hugo.extraGroups = [ "wheel" "sudo" "lp" ]; # Enable ‘sudo’ for the user.
users.users.root.shell = pkgs.fish;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
niv
neovim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
python3
git
findutils
wget
firefox
numlockx
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
programs.mtr.enable = true;
programs.gnupg.agent.enable = true;
programs.gnupg.agent.enableSSHSupport = true;
programs.fish.enable = true;
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# 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 = "21.05"; # Did you read the comment?
nix.package = pkgs.nixUnstable;
nix.extraOptions = ''experimental-features = nix-command flakes'';
nixpkgs.config.allowUnfree = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment