nixos-macbookpro/configuration.nix
Elias Gasparis 8a32e2f31b update
2025-06-02 21:14:01 +08:00

58 lines
2 KiB
Nix

# configuration.nix for tux computer
{ config, lib, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./mods/base.nix
# ./mods/gnome.nix
# ./mods/fonts.nix
# ./mods/systemd.nix
# ./mods/intel-gpu.nix
];
# Hostname
networking.hostName = "macbook"; # Define your hostname.
# Enable the Flakes feature and the accompanying new nix command-line tool
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.grub.configurationLimit = 10;
boot.tmp.cleanOnBoot = true;
boot.initrd.luks.devices."luks-4060c1c6-89ef-4d17-9ef1-0d86c907a48f".device = "/dev/disk/by-uuid/4060c1c6-89ef-4d17-9ef1-0d86c907a48f";
# User
users.users.elias = {
isNormalUser = true;
description = "elias";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
# install apps in home-manager
];
};
# This option defines the first version of NixOS you have installed on this particular machine,
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
#
# Most users should NEVER change this value after the initial install, for any reason,
# even if you've upgraded your system to a new NixOS release.
#
# This value does NOT affect the Nixpkgs version your packages and OS are pulled from,
# so changing it will NOT upgrade your system.
#
# This value being lower than the current NixOS release does NOT mean your system is
# out of date, out of support, or vulnerable.
#
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
# and migrated your data accordingly.
#
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
system.stateVersion = "24.05"; # Did you read the comment?
}