dotfiles/nixos/configuration/configuration-giacomino.nix
2023-11-13 19:41:32 +01:00

140 lines
3.3 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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 =
[ # Include the results of the hardware scan.
../hardware/hardware-giacomino.nix
];
nix.extraOptions = ''
experimental-features = nix-command flakes
keep-outputs = true
keep-derivations = true
'';
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking = {
hostName = "giacomino";
networkmanager.enable = true;
firewall.enable = false;
};
time.timeZone = "Europe/Rome";
i18n = {
defaultLocale = "it_IT.UTF-8";
extraLocaleSettings = {
LC_ADDRESS = "it_IT.UTF-8";
LC_IDENTIFICATION = "it_IT.UTF-8";
LC_MEASUREMENT = "it_IT.UTF-8";
LC_MONETARY = "it_IT.UTF-8";
LC_NAME = "it_IT.UTF-8";
LC_NUMERIC = "it_IT.UTF-8";
LC_PAPER = "it_IT.UTF-8";
LC_TELEPHONE = "it_IT.UTF-8";
LC_TIME = "it_IT.UTF-8";
};
};
# Configure keymap in X11
services.xserver = {
layout = "it";
xkbVariant = "qwerty";
};
# Configure console keymap
console.keyMap = "it2";
virtualisation = {
podman = {
enable = true;
# Create a `docker` alias for podman, to use it as a drop-in replacement
dockerCompat = true;
# Required for containers under podman-compose to be able to talk to each other.
defaultNetwork.settings.dns_enabled = true;
};
};
programs.fish.enable = true;
programs.dconf.enable = true;
users.users.ale = {
isNormalUser = true;
description = "Ale";
extraGroups = [ "networkmanager" "wheel" ];
shell = pkgs.fish;
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
alacritty
wayland
wayfire
grim
slurp
wl-clipboard
wdisplays
helix
git
wget
];
programs.thunar.enable = true;
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
};
services.pipewire = {
enable = true;
pulse.enable = true;
};
services.dbus.enable = true;
xdg.portal = {
enable = true;
wlr.enable = true;
# gtk portal needed to make gtk apps happy
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
};
services.upower.enable = true;
services.openssh.enable = true;
services.flatpak.enable = true;
fonts.fonts = with pkgs; [
noto-fonts
jetbrains-mono
fira-code
];
fonts.fontDir.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# 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).
# if you touch you die
system.stateVersion = "23.05"; # Did you read the comment?
}