116 lines
2.5 KiB
Nix
116 lines
2.5 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 =
|
||
[
|
||
./hardware-configuration.nix
|
||
];
|
||
|
||
networking.hostName = "neodymium";
|
||
|
||
# Use the systemd-boot EFI boot loader.
|
||
boot.loader.systemd-boot.enable = true;
|
||
boot.loader.efi.canTouchEfiVariables = true;
|
||
|
||
hardware.enableRedistributableFirmware = true;
|
||
|
||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||
|
||
networking.networkmanager.enable = true;
|
||
|
||
# Set your time zone.
|
||
time.timeZone = "Europe/Paris";
|
||
|
||
# Select internationalisation properties.
|
||
i18n.defaultLocale = "en_IE.UTF-8";
|
||
console = {
|
||
keyMap = "fr";
|
||
};
|
||
|
||
fonts.fonts = with pkgs; [
|
||
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
||
];
|
||
|
||
services.pipewire = {
|
||
enable = true;
|
||
alsa.enable = true;
|
||
pulse.enable = true;
|
||
};
|
||
|
||
services.dbus.enable = true;
|
||
xdg.portal = {
|
||
enable = true;
|
||
wlr.enable = true;
|
||
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||
};
|
||
|
||
programs.sway = {
|
||
enable = true;
|
||
wrapperFeatures.gtk = true;
|
||
};
|
||
|
||
nixpkgs.config.allowUnfree = true;
|
||
|
||
programs.light.enable = true;
|
||
|
||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||
users.users.laurent = {
|
||
initialPassword = "laurent";
|
||
isNormalUser = true;
|
||
extraGroups = [ "wheel" "video" ]; # Enable ‘sudo’ for the user.
|
||
packages = with pkgs; [
|
||
git
|
||
exa
|
||
bat
|
||
tmux
|
||
htop
|
||
rsync
|
||
pwgen
|
||
neovim
|
||
|
||
mpv
|
||
feh
|
||
vscode
|
||
librewolf
|
||
keepassxc
|
||
x2goclient
|
||
thunderbird
|
||
element-desktop
|
||
|
||
baobab
|
||
alacritty
|
||
pavucontrol
|
||
|
||
sway
|
||
wayland
|
||
swaylock
|
||
swayidle
|
||
wl-clipboard
|
||
waybar
|
||
slurp
|
||
grim
|
||
mako
|
||
];
|
||
};
|
||
|
||
users.mutableUsers = false;
|
||
|
||
programs.ssh.startAgent = true;
|
||
|
||
# Enable polkit
|
||
security.polkit.enable = true;
|
||
|
||
# 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
|
||
# 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).
|
||
system.stateVersion = "22.11"; # Did you read the comment?
|
||
}
|
||
|