129 lines
3.5 KiB
Nix
129 lines
3.5 KiB
Nix
# 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’).
|
||
|
||
{ inputs, outputs, lib, config, pkgs, ... }:
|
||
|
||
{
|
||
imports =
|
||
[ # Include the results of the hardware scan.
|
||
./hardware-configuration.nix
|
||
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-t480
|
||
inputs.home-manager.nixosModules.home-manager
|
||
outputs.nixosModules
|
||
];
|
||
|
||
# Bootloader.
|
||
boot.loader.systemd-boot.enable = true;
|
||
boot.loader.efi.canTouchEfiVariables = true;
|
||
|
||
nixpkgs = {
|
||
overlays = [
|
||
outputs.overlays.modifications
|
||
outputs.overlays.unstable-packages
|
||
inputs.azos-core.overlays.addpkgs
|
||
];
|
||
config = {
|
||
allowUnfree = true;
|
||
};
|
||
};
|
||
|
||
nix.registry = (lib.mapAttrs (_: flake: {inherit flake;})) ((lib.filterAttrs (_: lib.isType "flake")) inputs);
|
||
|
||
nix.nixPath = ["/etc/nix/path"];
|
||
|
||
networking.hostName = "lauretta"; # Define your hostname.
|
||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||
|
||
# Enable networking
|
||
networking.networkmanager.enable = true;
|
||
|
||
# Set your time zone.
|
||
time.timeZone = "Asia/Jerusalem";
|
||
|
||
# Select internationalisation properties.
|
||
i18n.defaultLocale = "en_IL";
|
||
|
||
i18n.extraLocaleSettings = {
|
||
LC_ADDRESS = "he_IL.UTF-8";
|
||
LC_IDENTIFICATION = "he_IL.UTF-8";
|
||
LC_MEASUREMENT = "he_IL.UTF-8";
|
||
LC_MONETARY = "he_IL.UTF-8";
|
||
LC_NAME = "he_IL.UTF-8";
|
||
LC_NUMERIC = "he_IL.UTF-8";
|
||
LC_PAPER = "he_IL.UTF-8";
|
||
LC_TELEPHONE = "he_IL.UTF-8";
|
||
LC_TIME = "he_IL.UTF-8";
|
||
};
|
||
|
||
# Configure keymap in X11
|
||
services.xserver.xkb = {
|
||
layout = "us,il";
|
||
variant = "";
|
||
};
|
||
|
||
# Configure console keymap
|
||
console.keyMap = "il";
|
||
|
||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||
users.users.aner = {
|
||
isNormalUser = true;
|
||
description = "Aner Zakobar";
|
||
extraGroups = [ "networkmanager" "wheel" ];
|
||
packages = with pkgs; [];
|
||
};
|
||
|
||
nix.settings = {
|
||
experimental-features = "nix-command flakes";
|
||
auto-optimise-store = true;
|
||
};
|
||
|
||
home-manager = {
|
||
extraSpecialArgs = {inherit inputs outputs; };
|
||
users = {
|
||
aner = import ../home-manager/home.nix;
|
||
};
|
||
};
|
||
|
||
# List packages installed in system profile. To search, run:
|
||
# $ nix search wget
|
||
environment.systemPackages = with pkgs; [
|
||
vim
|
||
git
|
||
tmux
|
||
killall
|
||
];
|
||
|
||
fonts.enableDefaultPackages = true;
|
||
|
||
services.upower.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. It‘s 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 = "24.11"; # Did you read the comment?
|
||
|
||
}
|