2024-09-20 08:44:48 +02:00
|
|
|
{
|
2024-09-20 16:20:17 +02:00
|
|
|
inputs,
|
2024-09-20 08:44:48 +02:00
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
|
2024-09-20 19:44:48 +02:00
|
|
|
# Nix
|
|
|
|
nix.settings.experimental-features = ["nix-command" "flakes"];
|
|
|
|
|
2024-09-20 08:44:48 +02:00
|
|
|
# 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";
|
2024-09-20 16:51:14 +02:00
|
|
|
|
2024-09-30 14:08:31 +02:00
|
|
|
security.pam.services.swaylock = {};
|
|
|
|
|
2024-09-20 19:44:48 +02:00
|
|
|
# Services
|
|
|
|
services.seatd.enable = true;
|
|
|
|
services.blueman.enable = true;
|
2024-10-12 19:55:55 +02:00
|
|
|
services.udisks2.enable = true;
|
2024-09-20 19:44:48 +02:00
|
|
|
services.power-profiles-daemon.enable = true;
|
2024-09-20 17:12:30 +02:00
|
|
|
|
2024-09-20 17:24:37 +02:00
|
|
|
# Programs
|
2024-10-01 10:04:12 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
git
|
|
|
|
wget
|
|
|
|
ncdu
|
|
|
|
neofetch
|
|
|
|
bottom
|
|
|
|
htop
|
2024-10-12 18:55:31 +02:00
|
|
|
wg-netmanager
|
2024-10-01 10:04:12 +02:00
|
|
|
podman-compose
|
2024-09-20 18:14:01 +02:00
|
|
|
];
|
2024-09-20 17:24:37 +02:00
|
|
|
|
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-09-20 19:44:48 +02:00
|
|
|
# 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"
|
2024-10-12 18:55:31 +02:00
|
|
|
"networkmanager"
|
2024-09-20 19:44:48 +02:00
|
|
|
];
|
|
|
|
group = "gaspard";
|
|
|
|
};
|
|
|
|
|
|
|
|
home-manager = {
|
|
|
|
extraSpecialArgs = {inherit inputs;};
|
|
|
|
users = {
|
|
|
|
"gaspard" = import ../../users/gaspard.nix;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-09-20 17:24:37 +02:00
|
|
|
system.stateVersion = "24.11";
|
2024-09-20 08:44:48 +02:00
|
|
|
}
|