oizys/configuration.nix

101 lines
2 KiB
Nix
Raw Normal View History

2022-11-03 18:24:52 -05:00
{ lib, config, pkgs, ... }:
2020-10-24 22:55:15 -05:00
{
2022-11-03 18:24:52 -05:00
imports =
[
# Include the results of the hardware scan.
2022-11-08 23:38:25 -06:00
<nixpkgs/nixos/modules/installer/virtualbox-demo.nix>
2022-11-03 18:24:52 -05:00
];
2022-11-08 23:38:25 -06:00
2022-11-03 18:24:52 -05:00
nix.package = pkgs.nixUnstable;
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
2020-10-24 22:55:15 -05:00
2022-11-04 08:02:24 -05:00
# programs.nix-ld.enable = true;
2022-11-03 18:24:52 -05:00
# networking.hostName = "nixos"; # Define your hostname.
# time.timeZone = "Europe/Amsterdam";
programs.zsh.enable = true;
users.defaultUserShell = pkgs.zsh;
2020-10-24 22:55:15 -05:00
2022-11-03 18:24:52 -05:00
# for compatibility add zsh to list of /etc/shells
environment.shells = with pkgs; [ zsh ];
2020-10-24 22:55:15 -05:00
2020-11-08 01:01:15 -06:00
2022-11-08 23:58:31 -06:00
# xstuffs
2022-11-09 12:24:10 -06:00
#services.xserver.enable = true;
#services.xserver.autorun = false;
#services.xserver.displayManager.startx.enable = true;
#services.xserver.windowManager.qtile.enable = true;
#services.xserver.desktopManager.plasma5.enable = true;
# overrwite default login
services.xserver.displayManager.autoLogin.enable = lib.mkForce false;
2022-11-03 18:24:52 -05:00
# 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; [
];
};
# List packages installed in system profile. To search, run:
# $ nix search wget
2020-11-08 01:01:15 -06:00
environment.systemPackages = with pkgs; [
2022-11-03 18:24:52 -05:00
fuse
zsh
wget
2022-11-04 11:53:59 -05:00
gnumake
gcc
2022-11-03 18:24:52 -05:00
git
2022-11-04 11:53:59 -05:00
2022-11-08 23:58:31 -06:00
vim
2022-11-04 11:13:49 -05:00
neovim
2022-11-09 00:17:54 -06:00
starship
2022-11-08 23:58:31 -06:00
gh
2022-11-03 18:24:52 -05:00
nixpkgs-fmt
2022-11-09 00:17:54 -06:00
# xdotool
2022-11-04 11:13:49 -05:00
wezterm
2022-11-09 00:17:54 -06:00
# eww
# rofi
# picom
# dunst
2022-11-03 18:24:52 -05:00
2022-11-04 11:13:49 -05:00
firefox
2022-11-04 11:53:59 -05:00
(python3.withPackages (p: with p; [ pynvim ]))
2020-11-08 01:01:15 -06:00
];
2022-11-03 18:24:52 -05:00
fonts.fonts = with pkgs; [
2022-11-08 23:58:31 -06:00
font-awesome
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
2022-11-09 00:17:54 -06:00
noto-fonts-extra
2022-11-03 18:24:52 -05:00
(nerdfonts.override { fonts = [ "FiraCode" ]; })
2022-11-09 12:24:10 -06:00
2022-11-03 18:24:52 -05:00
];
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";
};
2020-10-24 22:55:15 -05:00
}