Skip to content

Instantly share code, notes, and snippets.

@luke-biel
Created March 16, 2021 22:00
Show Gist options
  • Save luke-biel/f2b62bf013f93aad796e8b0fca11e6bc to your computer and use it in GitHub Desktop.
Save luke-biel/f2b62bf013f93aad796e8b0fca11e6bc to your computer and use it in GitHub Desktop.
{ config, pkgs, ... }:
{
# imports
imports =
[
./hardware-configuration.nix
];
# boot
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# meta
system.stateVersion = "20.09";
time.timeZone = "Europe/Warsaw";
virtualisation.docker.enable = true;
# networking
networking.wireless.interfaces = [ "wlp0s20u12" ];
networking.useDHCP = false;
networking.interfaces.enp2s0.useDHCP = true;
networking.interfaces.wlp0s20u12.useDHCP = true;
networking.wireless.enable = true;
networking.hostName = "chibi";
# security
security.sudo.wheelNeedsPassword = false;
# users
users = {
defaultUserShell = pkgs.zsh;
groups.docker = {};
users.luke-biel = {
isNormalUser = true;
extraGroups = [ "wheel" "docker" ];
shell = pkgs.zsh;
openssh.authorizedKeys.keys = [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDwrc5FaQt988HTFOUowuTaPV+jlQhIbSqf4bkKMtwJMoN+Io9kluCCvDvpfcMQS8CD7siHJl2U7/HdbyqJ0C/rpoeuwjN4C0hh7o2ToFQFndAwWEbpVMXAZz3N1pzIeelk/IAPtEk1eRSGA02bUAMpGGGNhO/lkUW7N7C0mLZAKW0ougQHGou9C43INESG/lpiMgvOZE3DGMvkPZtjm3eqvxRqfn3GeTydy53LEJN6VLMbcA5Tk2D8wJW9tsajDBYn//7+2+TFSKcOYsdIDxI7d7xuzGYZkexlc97EuiGEe77CDRJT32MM6uQaYNo1y5I9iis4WISbovaLqTu94/KsR6rz6xf7xrXxfzqt/EixFtmzjo1bFb7hP/hVfjFbom81IN4iNjQJu4GXyWFlg0D0t/Dl4JIjMJUMC27O87cabcP1mJDPexHLRQv5LXzRm/PRvYdRV3BpEsMZvijg3yiJgwT2gPvHvj8shRwnxqHQMb9Oz6PmfHHFy/RboJOVmT1ZhbImPFkaKVhNk9ujiNp85tHip25EPMhAl0NKmG+zbom+qiP34U1HgMgLUAVUIG1kURT+4pCCFLUj5kmA188S2JEnqj3qtJtTGdMEmaiHeowIAFn/Ds6gfnVbxYk94GoGHwiAxmuscB+RucwZwaPzTChYkEGU4gT1U6wehq7+Rw== lukaszbiel@MacBook-Pro-ukasz.local" ];
};
};
# global packages
environment.systemPackages = with pkgs; [
curl
wget
emacs
git
docker
htop
zsh
oh-my-zsh
redis
];
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestions.enable = true;
interactiveShellInit = ''
source ${pkgs.fetchurl {url = "https://github.com/rupa/z/raw/2ebe419ae18316c5597dd5fb84b5d8595ff1dde9/z.sh"; sha256 = "0ywpgk3ksjq7g30bqbhl9znz3jh6jfg8lxnbdbaiipzgsy41vi10";}}
export ZSH=${pkgs.oh-my-zsh}/share/oh-my-zsh
export ZSH_THEME="sunrise"
plugins=(git docker)
source $ZSH/oh-my-zsh.sh
'';
promptInit = "";
};
# services
services.openssh.enable = true;
services.redis.enable = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment