mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
54 lines
1.3 KiB
Nix
54 lines
1.3 KiB
Nix
{ config, pkgs, user, lib, ... }:
|
|
{
|
|
nix = {
|
|
package = pkgs.nixFlakes;
|
|
extraOptions = "experimental-features = nix-command flakes";
|
|
|
|
settings.auto-optimise-store = true;
|
|
gc = {
|
|
automatic = true;
|
|
dates = "weekly";
|
|
options = "--delete-older-than 7d";
|
|
};
|
|
};
|
|
|
|
# Add non-free packages
|
|
nixpkgs.config.allowUnfree = true;
|
|
nixpkgs.config.permittedInsecurePackages = [ "electron-25.9.0" "openssl-1.1.1w" ];
|
|
nixpkgs.overlays = import ../../lib/overlays.nix;
|
|
|
|
# Hardware options
|
|
hardware.bluetooth.enable = true;
|
|
hardware.bluetooth.package = pkgs.bluez;
|
|
hardware.sensor.iio.enable = true;
|
|
hardware.graphics.enable = true;
|
|
hardware.graphics.enable32Bit = 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 = "America/Los_Angeles";
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
# Fonts
|
|
fonts.packages = with pkgs; [
|
|
nerdfonts
|
|
];
|
|
|
|
# Define user account.
|
|
users.users.${user} = {
|
|
isNormalUser = true;
|
|
extraGroups = [ "dialout" "wheel" "docker" "libvirtd" ];
|
|
shell = pkgs.bash;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
cowsay # A program which generates ASCII pictures of a cow with a message
|
|
];
|
|
|
|
# Did you read the comment?
|
|
system.stateVersion = "23.11";
|
|
}
|