···11+{ config, pkgs, ... }:
22+33+{
44+ imports =
55+ [ # Include the results of the hardware scan.
66+ ./hardware-configuration.nix
77+ ];
88+99+ # Bootloader.
1010+ boot.loader.systemd-boot.enable = true;
1111+ boot.loader.efi.canTouchEfiVariables = true;
1212+1313+ # Use latest kernel.
1414+ boot.kernelPackages = pkgs.linuxPackages_latest;
1515+1616+ boot.initrd.luks.devices."luks-7736f743-324d-43d9-b3ad-5ddd3b3bd0e0".device = "/dev/disk/by-uuid/7736f743-324d-43d9-b3ad-5ddd3b3bd0e0";
1717+ networking.hostName = "otter"; # Define your hostname.
1818+ # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
1919+2020+ # Configure network proxy if necessary
2121+ # networking.proxy.default = "http://user:password@proxy:port/";
2222+ # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
2323+2424+ # Enable networking
2525+ networking.networkmanager.enable = true;
2626+2727+ # Set your time zone.
2828+ time.timeZone = "Europe/Paris";
2929+3030+ # Select internationalisation properties.
3131+ i18n.defaultLocale = "en_US.UTF-8";
3232+3333+ i18n.extraLocaleSettings = {
3434+ LC_ADDRESS = "fr_FR.UTF-8";
3535+ LC_IDENTIFICATION = "fr_FR.UTF-8";
3636+ LC_MEASUREMENT = "fr_FR.UTF-8";
3737+ LC_MONETARY = "fr_FR.UTF-8";
3838+ LC_NAME = "fr_FR.UTF-8";
3939+ LC_NUMERIC = "fr_FR.UTF-8";
4040+ LC_PAPER = "fr_FR.UTF-8";
4141+ LC_TELEPHONE = "fr_FR.UTF-8";
4242+ LC_TIME = "fr_FR.UTF-8";
4343+ };
4444+4545+ # Enable the X11 windowing system.
4646+ # You can disable this if you're only using the Wayland session.
4747+ services.xserver.enable = true;
4848+4949+ # Enable the KDE Plasma Desktop Environment.
5050+ services.displayManager.sddm.enable = true;
5151+ services.desktopManager.plasma6.enable = true;
5252+5353+ # Configure keymap in X11
5454+ services.xserver.xkb = {
5555+ layout = "us";
5656+ variant = "";
5757+ };
5858+5959+ # Enable CUPS to print documents.
6060+ services.printing.enable = true;
6161+6262+ # Enable sound with pipewire.
6363+ services.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+ kdePackages.kate
8888+ # thunderbird
8989+ ];
9090+ };
9191+9292+ # Install firefox.
9393+ programs.firefox.enable = true;
9494+9595+ # Allow unfree packages
9696+ nixpkgs.config.allowUnfree = true;
9797+9898+ # List packages installed in system profile. To search, run:
9999+ # $ nix search wget
100100+ environment.systemPackages = with pkgs; [
101101+ curl
102102+ ];
103103+104104+ # Some programs need SUID wrappers, can be configured further or are
105105+ # started in user sessions.
106106+ # programs.mtr.enable = true;
107107+ # programs.gnupg.agent = {
108108+ # enable = true;
109109+ # enableSSHSupport = true;
110110+ # };
111111+112112+ # List services that you want to enable:
113113+114114+ # Enable the OpenSSH daemon.
115115+ # services.openssh.enable = true;
116116+117117+ # Open ports in the firewall.
118118+ # networking.firewall.allowedTCPPorts = [ ... ];
119119+ # networking.firewall.allowedUDPPorts = [ ... ];
120120+ # Or disable the firewall altogether.
121121+ # networking.firewall.enable = false;
122122+123123+ # This value determines the NixOS release from which the default
124124+ # settings for stateful data, like file locations and database versions
125125+ # on your system were taken. It‘s perfectly fine and recommended to leave
126126+ # this value at the release version of the first install of this system.
127127+ # Before changing this value read the documentation for this option
128128+ # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
129129+ system.stateVersion = "25.05"; # Did you read the comment?
130130+}