Initial commit of NixOS configuration

This commit is contained in:
2025-12-30 03:07:28 +00:00
commit 3272868b58
25 changed files with 779 additions and 0 deletions

42
configuration.nix Normal file
View File

@@ -0,0 +1,42 @@
{ config, lib, pkgs, ... }:
{
imports = [ # Include the results of the hardware scan.
./hardware-configuration.nix
./system_components
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "framework"; # Define your hostname.
# Configure network connections interactively with nmcli or nmtui.
networking.networkmanager.enable = true;
# Set your time zone.
time.timeZone = "Europe/London";
# Select internationalisation properties.
i18n.defaultLocale = "en_GB.UTF-8";
nix.settings.experimental-features = ["nix-command" "flakes"];
# Configure keymap in X11
services.xserver.xkb.layout = "gb";
# Enable touchpad support (enabled default in most desktopManager).
services.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.toaster = {
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
};
nixpkgs.config.allowUnfree = true;
services.openssh.enable = true;
system.stateVersion = "25.11";
}