pointfichiers/hosts/Zephyrus/default.nix

88 lines
1.6 KiB
Nix

{
inputs,
pkgs,
lib,
...
}: {
imports = [
./hardware-configuration.nix
];
# Nix
nix.settings.experimental-features = ["nix-command" "flakes"];
# Set your time zone.
time.timeZone = "Europe/Paris";
console.keyMap = "fr";
# Network & Bluetooth
networking.wireless.iwd.enable = true;
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
security.pam.services.swaylock = {};
# Audio
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
};
# Services
services.seatd.enable = true;
services.blueman.enable = true;
services.power-profiles-daemon.enable = true;
# Programs
environment.systemPackages = with pkgs; [
git
wget
ncdu
neofetch
bottom
htop
iwgtk
podman-compose
];
#Podman
virtualisation.containers.enable = true;
virtualisation = {
podman = {
enable = true;
# Required for containers under podman-compose to be able to talk to each other.
defaultNetwork.settings.dns_enabled = true;
};
};
# User config
users.groups.gaspard = {
name = "gaspard";
};
users.users.gaspard = {
isNormalUser = true;
extraGroups = [
"wheel"
"video"
"seat"
"audio"
];
group = "gaspard";
};
home-manager = {
extraSpecialArgs = {inherit inputs;};
users = {
"gaspard" = import ../../users/gaspard.nix;
};
};
system.stateVersion = "24.11";
}