nixos/modules/system/common.nix

101 lines
2.8 KiB
Nix
Raw Permalink Normal View History

{ pkgs, ... }:
2024-02-02 21:07:29 +01:00
2023-08-20 00:48:31 +02:00
{
imports = [
../common.nix
];
2023-08-20 00:48:31 +02:00
# Set your time zone.
time.timeZone = "Europe/Paris";
# Select internationalisation properties.
i18n.defaultLocale = "fr_FR.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "fr_FR.UTF-8";
LC_IDENTIFICATION = "fr_FR.UTF-8";
LC_MEASUREMENT = "fr_FR.UTF-8";
LC_MONETARY = "fr_FR.UTF-8";
LC_NAME = "fr_FR.UTF-8";
LC_NUMERIC = "fr_FR.UTF-8";
LC_PAPER = "fr_FR.UTF-8";
LC_TELEPHONE = "fr_FR.UTF-8";
LC_TIME = "fr_FR.UTF-8";
};
nixpkgs.config.allowUnfree = true;
2024-07-14 20:40:20 +02:00
services.udev.packages = [ pkgs.yubikey-personalization ];
services.pcscd.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
2024-02-02 21:07:29 +01:00
# List packages installed in system profile. To search, run:
# $ nix search wget
2023-08-20 00:48:31 +02:00
environment.systemPackages = with pkgs; [
vim
2024-04-25 23:40:34 +02:00
nixd
2024-06-07 19:53:53 +02:00
2025-01-03 23:51:19 +01:00
# For debugging and troubleshooting Secure Boot.
sbctl
2024-06-29 15:03:10 +02:00
# Usefull tools to debug
gdb
lldb
gammaray # QT Inspector
2024-07-14 20:40:20 +02:00
yubikey-manager
2024-06-07 19:53:53 +02:00
# Usefull for automatic informations collect software like KDE
vulkan-tools # For vulkaninfo command
wayland-utils # For wayland-info command
glxinfo
clinfo
aha
usbutils
pciutils
2023-08-20 00:48:31 +02:00
];
2024-06-07 19:40:54 +02:00
services.fwupd.enable = true;
2024-06-07 19:37:01 +02:00
2024-02-02 21:07:29 +01:00
# Define a user account. Don't forget to set a password with passwd.
2023-08-20 00:48:31 +02:00
users.users.florian = {
isNormalUser = true;
description = "florian";
extraGroups = [ "networkmanager" "wheel" ];
};
2024-02-02 21:07:29 +01:00
2024-06-29 14:57:19 +02:00
# Downloads and provides debug symbols and source code for nix derivations to gdb and other debuginfod-capable debuggers as needed.
# Require https://github.com/symphorien/nixseparatedebuginfod?tab=readme-ov-file#gdb
services.nixseparatedebuginfod.enable = true;
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable networking
networking = {
networkmanager.enable = true;
firewall.enable = true;
};
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
2024-02-02 21:07:29 +01:00
# 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. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
2024-12-05 22:26:38 +01:00
system.stateVersion = "25.05"; # Did you read the comment?
2023-08-20 15:27:52 +02:00
}