configs/nixos/thinkpad-configuration.nix
nixos/thinkpad-configuration.nixRaw
1# This file is meant to be renamed to `configuration.nix`
2# Thinkpad NixOS configuration
3
4{ config, pkgs, ... }:
5
6{
7 imports =
8 [
9 ./common-configuration.nix
10 ./hardware-configuration.nix
11 ./private-configuration.nix
12 ];
13
14 # Bootloader.
15 boot.loader.systemd-boot.enable = true;
16 boot.loader.efi.canTouchEfiVariables = true;
17
18 networking.hostName = "thinkpad"; # Define your hostname.
19 # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
20
21 # Enable networking
22 networking.networkmanager.enable = true;
23
24 # Define a user account
25 users.users.user = {
26 isNormalUser = true;
27 description = "user";
28 extraGroups = [ "networkmanager" "wheel" ];
29 packages = with pkgs; [];
30 };
31
32 # Allow unfree packages
33 nixpkgs.config.allowUnfree = true;
34
35
36 # This value determines the NixOS release from which the default
37 # settings for stateful data, like file locations and database versions
38 # on your system were taken. It‘s perfectly fine and recommended to leave
39 # this value at the release version of the first install of this system.
40 # Before changing this value read the documentation for this option
41 # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
42 system.stateVersion = "24.05"; # Did you read the comment?
43
44 # gvfs needed for Thunar to detect external disks
45 services.gvfs.enable = true;
46
47 hardware.pulseaudio.enable = true;
48}