···11+# Edit this configuration file to define what should be installed on
22+# your system. Help is available in the configuration.nix(5) man page
33+# and in the NixOS manual (accessible by running ‘nixos-help’).
44+55+{ config, pkgs, ... }:
66+77+{
88+ imports =
99+ [ # Include the results of the hardware scan.
1010+ ./hardware-configuration.nix
1111+ ];
1212+1313+ # Bootloader.
1414+ boot.loader.systemd-boot.enable = true;
1515+ boot.loader.efi.canTouchEfiVariables = true;
1616+1717+ boot.initrd.luks.devices."luks-cd4e7e78-243a-4091-90dd-9ee091fbb27d".device = "/dev/disk/by-uuid/cd4e7e78-243a-4091-90dd-9ee091fbb27d";
1818+ networking.hostName = "nixos"; # Define your hostname.
1919+ # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
2020+2121+ # Configure network proxy if necessary
2222+ # networking.proxy.default = "http://user:password@proxy:port/";
2323+ # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
2424+2525+ # Enable networking
2626+ networking.networkmanager.enable = true;
2727+2828+ # Set your time zone.
2929+ time.timeZone = "Europe/Paris";
3030+3131+ # Select internationalisation properties.
3232+ i18n.defaultLocale = "en_US.UTF-8";
3333+3434+ i18n.extraLocaleSettings = {
3535+ LC_ADDRESS = "fr_FR.UTF-8";
3636+ LC_IDENTIFICATION = "fr_FR.UTF-8";
3737+ LC_MEASUREMENT = "fr_FR.UTF-8";
3838+ LC_MONETARY = "fr_FR.UTF-8";
3939+ LC_NAME = "fr_FR.UTF-8";
4040+ LC_NUMERIC = "fr_FR.UTF-8";
4141+ LC_PAPER = "fr_FR.UTF-8";
4242+ LC_TELEPHONE = "fr_FR.UTF-8";
4343+ LC_TIME = "fr_FR.UTF-8";
4444+ };
4545+4646+ # Enable the X11 windowing system.
4747+ services.xserver.enable = true;
4848+4949+ # Enable the GNOME Desktop Environment.
5050+ services.xserver.displayManager.gdm.enable = true;
5151+ services.xserver.desktopManager.gnome.enable = true;
5252+5353+ # Configure keymap in X11
5454+ services.xserver.xkb = {
5555+ layout = "us";
5656+ variant = "altgr-intl";
5757+ };
5858+5959+ # Enable CUPS to print documents.
6060+ services.printing.enable = true;
6161+6262+ # Enable sound with pipewire.
6363+ hardware.pulseaudio.enable = false;
6464+ security.rtkit.enable = true;
6565+ services.pipewire = {
6666+ enable = true;
6767+ alsa.enable = true;
6868+ alsa.support32Bit = true;
6969+ pulse.enable = true;
7070+ # If you want to use JACK applications, uncomment this
7171+ #jack.enable = true;
7272+7373+ # use the example session manager (no others are packaged yet so this is enabled by default,
7474+ # no need to redefine it in your config for now)
7575+ #media-session.enable = true;
7676+ };
7777+7878+ # Enable touchpad support (enabled default in most desktopManager).
7979+ # services.xserver.libinput.enable = true;
8080+8181+ # Define a user account. Don't forget to set a password with ‘passwd’.
8282+ users.users.alex = {
8383+ isNormalUser = true;
8484+ description = "Alex";
8585+ extraGroups = [ "networkmanager" "wheel" ];
8686+ packages = with pkgs; [
8787+ # thunderbird
8888+ ];
8989+ };
9090+9191+ # Install firefox.
9292+ programs.firefox.enable = true;
9393+9494+ # Allow unfree packages
9595+ nixpkgs.config.allowUnfree = true;
9696+9797+ # List packages installed in system profile. To search, run:
9898+ # $ nix search wget
9999+ environment.systemPackages = with pkgs; [
100100+ # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
101101+ # wget
102102+ git
103103+ curl
104104+ ];
105105+106106+ # Some programs need SUID wrappers, can be configured further or are
107107+ # started in user sessions.
108108+ # programs.mtr.enable = true;
109109+ # programs.gnupg.agent = {
110110+ # enable = true;
111111+ # enableSSHSupport = true;
112112+ # };
113113+114114+ # List services that you want to enable:
115115+116116+ # Enable the OpenSSH daemon.
117117+ # services.openssh.enable = true;
118118+119119+ # Open ports in the firewall.
120120+ # networking.firewall.allowedTCPPorts = [ ... ];
121121+ # networking.firewall.allowedUDPPorts = [ ... ];
122122+ # Or disable the firewall altogether.
123123+ # networking.firewall.enable = false;
124124+125125+ # This value determines the NixOS release from which the default
126126+ # settings for stateful data, like file locations and database versions
127127+ # on your system were taken. It‘s perfectly fine and recommended to leave
128128+ # this value at the release version of the first install of this system.
129129+ # Before changing this value read the documentation for this option
130130+ # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
131131+ system.stateVersion = "24.05"; # Did you read the comment?
132132+133133+}