My NixOS dotfiles
1{
2 inputs,
3 pkgs,
4 config,
5 ...
6}:
7{
8 # Configuring Nix
9 nix = {
10 package = pkgs.lixPackageSets.latest.lix;
11 channel.enable = false;
12 nixPath = [ "nixpkgs=${config.nix.registry.nixpkgs.to.path}" ];
13 registry = {
14 n.flake = inputs.nixpkgs;
15 };
16 settings.auto-optimise-store = true;
17 settings.experimental-features = [
18 "nix-command"
19 "flakes"
20 ];
21 };
22 nixpkgs.config.allowUnfree = true;
23
24 # Base Packages
25 environment.systemPackages = with pkgs; [
26 fastfetch
27 neovim
28 man-pages
29 man-pages-posix
30 gptfdisk
31 ];
32
33 # Localization
34 time.timeZone = "America/Phoenix";
35 i18n.defaultLocale = "en_US.UTF-8";
36
37 # Other Settings
38 documentation.dev.enable = true;
39 security.sudo.wheelNeedsPassword = false;
40 programs.zsh.enable = true;
41 programs.git.enable = true;
42 console.keyMap = "dvorak";
43}