arnaucube
arnaucube/configsPublic Self-hosted repository
configs/nixos/thinkpad-configuration.nix
nixos/thinkpad-configuration.nixRaw
 1# This file is meant to be renamed to `configuration.nix`
 2
 3# Edit this configuration file to define what should be installed on
 4# your system.  Help is available in the configuration.nix(5) man page
 5# and in the NixOS manual (accessible by running ‘nixos-help’).
 6
 7{ config, pkgs, ... }:
 8
 9{
10  imports =
11    [
12      ./common-configuration.nix
13      ./hardware-configuration.nix
14      ./private-configuration.nix
15    ];
16
17  # Bootloader.
18  boot.loader.systemd-boot.enable = true;
19  boot.loader.efi.canTouchEfiVariables = true;
20
21  networking.hostName = "nixos"; # Define your hostname.
22  # networking.wireless.enable = true;  # Enables wireless support via wpa_supplicant.
23
24  # Enable networking
25  networking.networkmanager.enable = true;
26
27  services.displayManager = {
28      defaultSession = "none+i3";
29  };
30  services.xserver = {
31    xkb = { # Configure keymap in X11
32      layout = "us";
33      variant = "";
34    };
35
36    enable=true;
37    #displayManager = {
38    #  defaultSession = "none+i3";
39    #};
40    windowManager.i3 = {
41      enable=true;
42      extraPackages = with pkgs; [
43        dmenu
44        i3status
45        i3lock
46      ];
47    };
48  };
49
50  # Define a user account
51  users.users.user = {
52    isNormalUser = true;
53    description = "user";
54    extraGroups = [ "networkmanager" "wheel" ];
55    packages = with pkgs; [];
56  };
57
58  # Allow unfree packages
59  nixpkgs.config.allowUnfree = true;
60
61
62  # This value determines the NixOS release from which the default
63  # settings for stateful data, like file locations and database versions
64  # on your system were taken. It‘s perfectly fine and recommended to leave
65  # this value at the release version of the first install of this system.
66  # Before changing this value read the documentation for this option
67  # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
68  system.stateVersion = "24.05"; # Did you read the comment?
69
70  # gvfs needed for Thunar to detect external disks
71  services.gvfs.enable = true;
72
73  # bluetooth related
74  hardware.bluetooth.enable = true;
75  services.blueman.enable = true;
76
77  hardware.pulseaudio.enable = true;
78}