2024-05-14 19:21:19 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-05-06 15:00:43 +02:00
|
|
|
|
|
|
|
{
|
2024-05-14 19:21:19 +02:00
|
|
|
imports = [ ./hardware-configuration.nix ];
|
2024-05-06 15:00:43 +02:00
|
|
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Paris";
|
|
|
|
|
|
|
|
systemd.network = {
|
|
|
|
enable = true;
|
|
|
|
networks."10-enp1s0" = {
|
|
|
|
name = "enp1s0";
|
2024-05-14 19:21:19 +02:00
|
|
|
address = [
|
|
|
|
"192.168.122.3/24"
|
|
|
|
"fe80::3/64"
|
|
|
|
];
|
2024-05-06 15:00:43 +02:00
|
|
|
routes = [
|
|
|
|
{ routeConfig.Gateway = "192.168.122.1"; }
|
|
|
|
{ routeConfig.Gateway = "fe80::1"; }
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
useDHCP = false;
|
|
|
|
nameservers = [
|
|
|
|
"192.168.122.1"
|
|
|
|
"fe80::1%enp1s0"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
console = {
|
|
|
|
font = "Lat2-Terminus16";
|
|
|
|
keyMap = "fr";
|
|
|
|
};
|
|
|
|
|
|
|
|
services.dbus.packages = with pkgs; [ dconf ];
|
|
|
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
wget
|
|
|
|
nix-search-cli
|
|
|
|
git
|
|
|
|
btop
|
|
|
|
ranger
|
|
|
|
screen
|
|
|
|
gnumake
|
|
|
|
];
|
|
|
|
|
|
|
|
services.gitlab-runner = {
|
|
|
|
enable = true;
|
|
|
|
services.parkas = {
|
|
|
|
executor = "shell";
|
|
|
|
registrationConfigFile = "/root/parkas-runner-secrets.toml";
|
2024-05-14 19:21:19 +02:00
|
|
|
tagList = [
|
|
|
|
"test"
|
|
|
|
"linux"
|
|
|
|
"nix"
|
|
|
|
];
|
2024-05-06 15:00:43 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.gnupg.agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSSHSupport = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
services.openssh.enable = true;
|
|
|
|
|
|
|
|
networking.firewall.enable = false;
|
|
|
|
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
}
|