oizys/configuration.nix
2022-11-09 19:19:54 +00:00

94 lines
1.8 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ lib, config, pkgs, ... }:
{
imports =
[
# Include the results of the hardware scan.
<nixpkgs/nixos/modules/installer/virtualbox-demo.nix>
];
nix.package = pkgs.nixUnstable;
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
# networking.hostName = "nixos"; # Define your hostname.
# time.timeZone = "Europe/Amsterdam";
programs.zsh.enable = true;
users.defaultUserShell = pkgs.zsh;
# for compatibility add zsh to list of /etc/shells
environment.shells = with pkgs; [ zsh ];
# overrwite default login
services.xserver.displayManager.autoLogin.enable = lib.mkForce false;
# Define a user account. Don't forget to set a password with passwd.
users.users.daylin = {
shell = pkgs.zsh;
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
packages = with pkgs; [
];
};
environment.systemPackages = with pkgs; [
fuse
zsh
wget
gnumake
gcc
git
vim
neovim
starship
gh
nixpkgs-fmt
# xdotool
wezterm
# eww
# rofi
# picom
# dunst
(wavebox.override {
version = 10.107 .10 })
firefox
(python3.withPackages (p: with p;
[ pynvim ]))
];
fonts.fonts = with pkgs; [
font-awesome
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
noto-fonts-extra
last-resort
(nerdfonts.override { fonts = [ "FiraCode" ]; })
];
environment.variables = {
NIX_LD_LIBRARY_PATH = with pkgs; lib.makeLibraryPath [
stdenv.cc.cc
openssl
zlib # for delta
fuse # for libfuse/Neovim Appimage
];
NIX_LD = lib.fileContents "${pkgs.stdenv.cc}/nix-support/dynamic-linker";
};
}