42 lines
1.3 KiB
Nix
42 lines
1.3 KiB
Nix
|
# Edit this configuration file to define what should be installed on
|
|||
|
# your system. Help is available in the configuration.nix(5) man page
|
|||
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
|||
|
|
|||
|
{ config, pkgs, ... }:
|
|||
|
|
|||
|
{
|
|||
|
imports = [
|
|||
|
# Include the results of the hardware scan.
|
|||
|
/etc/nixos/hardware-configuration.nix
|
|||
|
../../profiles/laptop.nix
|
|||
|
];
|
|||
|
|
|||
|
# Bootloader
|
|||
|
boot.loader.systemd-boot.enable = true;
|
|||
|
boot.loader.systemd-boot.configurationLimit = 64;
|
|||
|
boot.loader.efi.canTouchEfiVariables = true;
|
|||
|
|
|||
|
console.earlySetup = true;
|
|||
|
|
|||
|
networking = {
|
|||
|
hostName = "nixpad"; # Define your hostname.
|
|||
|
|
|||
|
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
|
|||
|
# Per-interface useDHCP will be mandatory in the future, so this generated config
|
|||
|
# replicates the default behaviour.
|
|||
|
useDHCP = false;
|
|||
|
interfaces = {
|
|||
|
enp0s25.useDHCP = true;
|
|||
|
wlp3s0.useDHCP = true;
|
|||
|
# wwp0s20u4c2i12.useDHCP = true;
|
|||
|
};
|
|||
|
};
|
|||
|
|
|||
|
# This value determines the NixOS release with which your system is to be
|
|||
|
# compatible, in order to avoid breaking some software such as database
|
|||
|
# servers. You should change this only after NixOS release notes say you
|
|||
|
# should.
|
|||
|
system.stateVersion = "19.09"; # Did you read the comment?
|
|||
|
|
|||
|
}
|