Files
nixdots/modules/nixos/common.nix
T
2026-10-03 13:04:01 -05:00

52 lines
1.3 KiB
Nix

{ pkgs, inputs, ... }:
{
imports = [ inputs.home-manager.nixosModules.default ];
nix.settings = {
auto-optimise-store = true;
experimental-features = [ "nix-command" "flakes" ];
};
nix.gc = {
automatic = true;
dates = "weekly";
persistent = true;
options = "";
};
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.networkmanager.enable = true;
time.timeZone = "America/Chicago";
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
services.xserver.xkb = { layout = "us"; variant = ""; };
users.users.chris = {
isNormalUser = true;
description = "chris";
extraGroups = [ "networkmanager" "wheel" ];
};
home-manager = {
useUserPackages = true;
extraSpecialArgs = { inherit inputs; };
};
nixpkgs.config.allowUnfree = true;
services.openssh.enable = true;
environment.systemPackages = with pkgs; [
vim wget git helix nixd nixfmt btop fastfetch lazygit file disktui busybox nmap screen scrot xclip
];
}