config-perso/machines/kat-probook/configuration.nix

131 lines
2.7 KiB
Nix
Raw Normal View History

2024-05-14 19:21:19 +02:00
{
config,
lib,
pkgs,
mods,
...
}:
2024-02-19 17:15:40 +01:00
{
2024-05-14 19:21:19 +02:00
imports = [
./hardware-configuration.nix
./secrets.nix
# ./router.nix
];
2024-02-19 17:15:40 +01:00
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.supportedFilesystems = [ "bcachefs" ];
boot.kernelPackages = pkgs.linuxPackages_latest;
2024-05-14 13:48:01 +02:00
networking.networkmanager.enable = true;
2024-02-19 17:15:40 +01:00
time.timeZone = "Europe/Paris";
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "fr";
};
nixpkgs.config.allowUnfree = true;
2024-05-31 23:34:05 +02:00
2024-02-19 17:15:40 +01:00
hardware = {
pulseaudio = {
enable = true;
package = pkgs.pulseaudioFull;
};
bluetooth = {
enable = true;
powerOnBoot = false;
};
};
environment.systemPackages = with pkgs; [
2024-05-14 19:21:19 +02:00
(pkgs.callPackage <agenix/pkgs/agenix.nix> { })
2024-02-19 17:15:40 +01:00
wget
brightnessctl
nix-search-cli
git
btop
ranger
2024-03-11 13:24:22 +01:00
colmena
2024-03-13 11:11:16 +01:00
tree
2024-03-26 15:43:59 +01:00
lazygit
2024-03-28 10:44:37 +01:00
nix-output-monitor
2024-05-06 15:00:43 +02:00
ripgrep
2024-02-19 17:15:40 +01:00
];
2024-02-26 15:22:46 +01:00
fonts.packages = with pkgs; [
fira-code-nerdfont
font-awesome
];
2024-02-19 17:15:40 +01:00
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
services.syncthing = {
enable = true;
systemService = true;
dataDir = "/home/catvayor";
user = "catvayor";
group = "users";
openDefaultPorts = true;
settings = {
folders."essentials" = {
path = "~/essentials";
id = "vgpwu-fk3ct";
2024-05-14 19:21:19 +02:00
devices = [
"katest"
"katel"
];
2024-02-19 17:15:40 +01:00
};
devices.katest.id = "UPVXT7D-ZQF4E3J-4WKLLRV-2KF7323-7VOMEJJ-4PZVXW4-UQ2YABE-G7ID4AD";
devices.katel.id = "DYOKK7J-HZAF5S7-FYTHQF5-UD5GJZ2-4JMV5I5-STUM3HG-5YM2JPR-LATJNAZ";
};
};
2024-03-15 11:09:42 +01:00
services.netbird.enable = true;
2024-02-19 17:15:40 +01:00
2024-05-14 13:48:01 +02:00
# boot.kernelModules = [ "kvm-intel" "kvm-amd" ];
# programs.virt-manager.enable = true;
# virtualisation.libvirtd.enable = true;
2024-02-19 17:15:40 +01:00
2024-05-14 13:48:01 +02:00
system.stateVersion = "23.11";
2024-05-31 23:34:05 +02:00
networking.networkmanager.ensureProfiles.profiles = {
"GPN" = {
connection = {
id = "GPN";
type = "wifi";
autoconnect = true;
interface-name = "wlp0s20f3";
};
wifi = {
mode = "infrastructure";
ssid = "GPN";
};
wifi-security = {
key-mgmt = "wpa-eap";
};
"802-1x" = {
eap = "ttls;";
identity = "gpn";
password = "gpn";
phase2-auth = "pap";
domain-suffix-match = "radius.noc.gulas.ch";
ca-cert = "${builtins.fetchurl {
url = "https://letsencrypt.org/certs/isrgrootx1.pem";
sha256 = "sha256:1la36n2f31j9s03v847ig6ny9lr875q3g7smnq33dcsmf2i5gd92";
2024-06-01 00:28:17 +02:00
}}";
2024-05-31 23:34:05 +02:00
};
ipv4 = {
method = "auto";
};
ipv6 = {
addr-gen-mode = "stable-privacy";
method = "auto";
};
};
};
2024-02-19 17:15:40 +01:00
}