pointfichiers/hosts/Zephyrus/default.nix

122 lines
2.2 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";
services.xserver.xkb.layout = "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";
};
systemd.services.ollama = {
wantedBy = pkgs.lib.mkForce [];
};
# Programs
2024-10-01 10:04:12 +02:00
environment.systemPackages = with pkgs; [
git
wget
ncdu
neofetch
bottom
htop
unzip
wg-netmanager
2024-10-01 10:04:12 +02:00
podman-compose
mangohud
];
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;
2024-10-26 10:04:04 +02:00
# Other
programs.nix-ld.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"
"gamemode"
"networkmanager"
];
group = "gaspard";
};
home-manager = {
extraSpecialArgs = {inherit inputs;};
users = {
"gaspard" = import ../../users/gaspard.nix;
};
};
# Steam specialisation
specialisation.steam.configuration = {
system.nixos.tags = ["steam"];
users.groups.steam.name = "steam";
users.users.steam = {
isNormalUser = true;
createHome = true;
extraGroups = [
"video"
"seat"
"audio"
"gamemode"
"networkmanager"
];
group = "steam";
};
services.desktopManager.plasma6.enable = true;
jovian.steam = {
enable = true;
autoStart = true;
user = "steam";
desktopSession = "plasma";
};
environment.sessionVariables = {
XKB_DEFAULT_LAYOUT = "fr";
};
};
system.stateVersion = "24.11";
}