From 3240843cc2ca38dd536b29b99f4e5cd09dffce9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Tue, 20 Dec 2022 19:02:03 +0100 Subject: [PATCH] chore: comments + organizing --- hosts/neodymium/configuration.nix | 33 ++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/hosts/neodymium/configuration.nix b/hosts/neodymium/configuration.nix index 1d33549..799b2bc 100644 --- a/hosts/neodymium/configuration.nix +++ b/hosts/neodymium/configuration.nix @@ -5,33 +5,37 @@ { config, pkgs, ... }: { - imports = - [ + imports = [ ./hardware-configuration.nix ]; networking.hostName = "neodymium"; - # Use the systemd-boot EFI boot loader. + # use systemd-boot EFI boot loader boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - hardware.enableRedistributableFirmware = true; + # configure hardware + hardware = { + enableRedistributableFirmware = true; + opengl = { + enable = true; + driSupport = true; + }; + }; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; networking.networkmanager.enable = true; - # Set your time zone. + # internationalisation time.timeZone = "Europe/Paris"; - - # Select internationalisation properties. - i18n.defaultLocale = "en_IE.UTF-8"; + i18n.defaultLocale = "en_DK.UTF-8"; console = { keyMap = "fr"; }; fonts.fonts = with pkgs; [ + fira-code fira-code-symbols (nerdfonts.override { fonts = [ "FiraCode" ]; }) ]; @@ -53,8 +57,6 @@ wrapperFeatures.gtk = true; }; - nixpkgs.config.allowUnfree = true; - programs.light.enable = true; users.mutableUsers = false; @@ -411,11 +413,18 @@ }; }; + # enable ssh agent programs.ssh.startAgent = true; - # Enable polkit + # enable polkit security.polkit.enable = true; + # enable unfree + nixpkgs.config.allowUnfree = true; + + # experimental features + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave