infrastructure/hosts/neodymium/configuration.nix

116 lines
2.5 KiB
Nix
Raw Normal View History

2022-12-19 22:35:54 +00:00
# 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 =
2022-12-20 10:33:21 +00:00
[
2022-12-19 22:35:54 +00:00
./hardware-configuration.nix
];
2022-12-20 10:33:21 +00:00
networking.hostName = "neodymium";
2022-12-19 22:35:54 +00:00
# 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" ];
2022-12-19 22:58:32 +00:00
networking.networkmanager.enable = true;
2022-12-19 22:35:54 +00:00
# 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; [
2022-12-19 22:58:32 +00:00
git
exa
bat
tmux
htop
rsync
pwgen
2022-12-19 22:35:54 +00:00
neovim
2022-12-19 22:58:32 +00:00
mpv
feh
vscode
2022-12-19 22:35:54 +00:00
librewolf
2022-12-19 22:58:32 +00:00
keepassxc
x2goclient
2022-12-20 10:33:21 +00:00
thunderbird
2022-12-19 22:58:32 +00:00
element-desktop
2022-12-19 22:35:54 +00:00
baobab
alacritty
2022-12-19 22:58:32 +00:00
pavucontrol
sway
2022-12-19 22:35:54 +00:00
wayland
swaylock
swayidle
wl-clipboard
2022-12-19 22:58:32 +00:00
waybar
slurp
grim
2022-12-19 22:35:54 +00:00
mako
];
};
2022-12-20 10:33:21 +00:00
users.mutableUsers = false;
programs.ssh.startAgent = true;
2022-12-19 22:35:54 +00:00
# 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. 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).
system.stateVersion = "22.11"; # Did you read the comment?
}