configs/nixos/chuwi-configuration.nix
nixos/chuwi-configuration.nixRaw
1# This file is meant to be renamed to `configuration.nix`
2# Chuwi minibook 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 = "chuwi"; # Define your hostname.
19 # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
20
21 # Enable networking
22 networking.networkmanager.enable = true;
23 hardware.cpu.intel.updateMicrocode = true;
24
25
26 # Define a user account. Don't forget to set a password with ‘passwd’.
27 users.users.user = {
28 isNormalUser = true;
29 description = "user";
30 extraGroups = [ "networkmanager" "wheel" ];
31 packages = with pkgs; [];
32 };
33
34 # Allow unfree packages
35 nixpkgs.config.allowUnfree = true;
36
37 # This value determines the NixOS release from which the default
38 # settings for stateful data, like file locations and database versions
39 # on your system were taken. It‘s perfectly fine and recommended to leave
40 # this value at the release version of the first install of this system.
41 # Before changing this value read the documentation for this option
42 # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
43 system.stateVersion = "24.11"; # Did you read the comment?
44
45 # Chuwi specific:
46 # fix wifi issues
47 boot.kernelPackages = pkgs.linuxPackages_latest;
48
49 # fix screen rotation issue
50 boot.kernelParams = [
51 "fbcon=rotate:1"
52 ];
53 services.xserver.xrandrHeads = [
54 {
55 monitorConfig = "Option \"Rotate\" \"right\"";
56 output = "DSI-1";
57 }
58 ];
59
60 # some extra packages
61 environment.systemPackages = with pkgs; [
62 # note taking
63 rnote
64 xournalpp
65 ];
66}