Files
dotfiles/configuration.nix
2022-02-08 19:28:32 +05:30

157 lines
4.0 KiB
Nix
Executable File
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.

# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./stuff.nix
./networking.nix
./nvdia.nix
];
#virtualisation.libvirtd.enable = true;
#programs.dconf.enable = true;
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Set your time zone.
time.timeZone = "Asia/Kolkata";
nix = {
package = pkgs.nixUnstable; # or versioned attributes like nix_2_4
extraOptions = ''
experimental-features = nix-command flakes
'';
};
###
# services.xserver.videoDrivers = [ "nvidia" ];
###
#for gpu
# nixpkgs.config.allowUnfree = true;
# boot.extraModulePackages = [ pkgs.linuxPackages.nvidia_x11 ];
# boot.blacklistedKernelModules = [ "nouveau" "nvidia_drm" "nvidia_modeset" "nvidia" ];
# packages = [ pkgs.linuxPackages.nvidia_x11 ];
nixpkgs.config = {
allowBroken = true;
allowUnfree = true;
pulseaudio = true;
};
nix.autoOptimiseStore = true;
# 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.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable the X11 windowing system
services.xserver.enable = true;
services.xserver.displayManager.lightdm.enable = true;
services.xserver.windowManager = {
dwm.enable = true;
xmonad.enable = true;
xmonad.enableContribAndExtras = true;
xmonad.extraPackages = hpkgs: [
hpkgs.xmonad
hpkgs.xmonad-extras
];
};
# Configure keymap in X11
# services.xserver.layout = "us";
# services.xserver.xkbOptions = "eurosign:e";
# Enable CUPS to print documents.
# services.printing.enable = true;
# Enable sound.
sound.enable = true;
hardware.pulseaudio.enable = true;
services.mpd.enable = true;
services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.dumball = {
isNormalUser = true;
extraGroups = [ "wheel" ];
};
environment.systemPackages = with pkgs; [
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
virt-manager
firefox
glib
wget
wirelesstools
networkmanager
xclip
pciutils usbutils
git
neovim
alacritty
##for xmonad
picom
scrot
trayer
emacs
ntfs3g
kbd
ripgrep
bc
gnumake
];
programs.zsh.enable = true;
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# 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.05"; # Did you read the comment?
}