pointfichiers/hosts/Zephyrus/default.nix

85 lines
1.5 KiB
Nix
Raw Normal View History

{
inputs,
pkgs,
...
}: {
imports = [
./hardware-configuration.nix
];
# Nix
nix.settings.experimental-features = ["nix-command" "flakes"];
# Set your time zone.
time.timeZone = "Europe/Paris";
2024-09-20 15:16:34 +02:00
2024-09-20 16:54:41 +02:00
console.keyMap = "fr";
security.pam.services.swaylock = {};
# Services
services.seatd.enable = true;
services.blueman.enable = true;
services.udisks2.enable = true;
services.power-profiles-daemon.enable = true;
services.ollama = {
enable = true;
acceleration = "cuda";
};
# Programs
2024-10-01 10:04:12 +02:00
environment.systemPackages = with pkgs; [
git
wget
ncdu
neofetch
bottom
htop
wg-netmanager
2024-10-01 10:04:12 +02:00
podman-compose
];
2024-10-01 10:04:12 +02:00
#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;
};
};
2024-10-20 20:19:05 +02:00
# ADB
programs.adb.enable = true;
2024-10-23 11:03:40 +02:00
# Gaming
programs.gamemode.enable = true;
# User config
users.groups.gaspard = {
name = "gaspard";
};
users.users.gaspard = {
isNormalUser = true;
extraGroups = [
"wheel"
"video"
"seat"
2024-09-20 19:59:57 +02:00
"audio"
2024-10-20 20:19:05 +02:00
"adbusers"
2024-10-23 11:03:40 +02:00
"gamemode"
"networkmanager"
];
group = "gaspard";
};
home-manager = {
extraSpecialArgs = {inherit inputs;};
users = {
"gaspard" = import ../../users/gaspard.nix;
};
};
system.stateVersion = "24.11";
}