nixos-config/common/config/config.nix

80 lines
2.1 KiB
Nix
Raw Normal View History

2022-01-06 21:14:02 -05:00
{ config, pkgs, nur,
nixpkgs, # The flake's input version of nixpkgs
... }:
2022-01-16 23:05:12 -05:00
{
2022-01-06 21:14:02 -05:00
nix.package = pkgs.nixFlakes;
nix.extraOptions = ''
experimental-features = nix-command flakes
restrict-eval = false
'';
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = [ nur.overlay ];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Set your time zone.
time.timeZone = "America/New_York";
# Enable CUPS to print documents.
# services.printing.enable = true;
# Enable sound.
sound.enable = true;
hardware.pulseaudio.enable = true;
hardware.opengl.enable = true;
users.mutableUsers = false;
users.users.kiana = {
isNormalUser = true;
description = "Kiana Sheibani";
extraGroups = [ "wheel" ]; # Enable sudo for the user.
shell = pkgs.fish;
};
fonts = {
enableDefaultFonts = true;
fonts = with pkgs; [
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
ubuntu_font_family
(nerdfonts.override { fonts = [ "FiraCode" "Ubuntu" "UbuntuMono" ]; })
meslo-lgs-nf
2022-04-20 23:30:16 -04:00
victor-mono
2022-01-06 21:14:02 -05:00
];
fontconfig = {
enable = true;
defaultFonts = {
serif = [ "Noto Serif" ];
sansSerif = [ "Noto Sans" ];
monospace = [ "Meslo Nerd Font" ];
};
};
};
environment.sessionVariables.GTK_THEME = "Adwaita:dark";
2022-04-28 13:17:06 -04:00
# Security
services.openssh.enable = true;
2022-04-29 17:38:23 -04:00
services.pcscd.enable = true;
2022-04-28 13:17:06 -04:00
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
pinentryFlavor = "curses";
};
2022-01-06 21:14:02 -05:00
# 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. Its 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.11"; # Did you read the comment?
}