nftable-migration
1{
2 globals,
3 libx,
4 ...
5}:
6{
7
8 imports = [
9 ../common/hardware/laptop.nix
10 ../common/programs/direnv.nix
11 ../common/programs/git.nix
12 ../common/programs/tmux.nix
13 # ../common/services/networkmanager.nix
14 # ../common/services/fprint.nix # With yubikey I don't really need this to be honest
15 ../common/services/containers.nix
16 ../common/services/docker.nix
17 ../common/services/libvirt.nix
18 ../common/desktop/binfmt.nix # TODO: move to something else than desktop
19 # ../common/services/buildkit.nix # maybe ?
20 # ../common/services/oci-image-mirroring.nixi
21 # ../common/services/ollama.nix # TODO handle nvidia vs not ?
22 ../common/services/prometheus-exporters-node.nix
23 # ../common/services/gitea-runner
24
25 ../redhat
26 ];
27
28 networking.firewall.enable = false;
29
30 # TODO make it an option ? (otherwise I'll add it for all)
31 users.users.vincent.linger = true;
32
33 services = {
34 logind.settings.Login = {
35 HandleLidSwitch = "ignore";
36 HandleLidSwitchExternalPower = "ignore";
37 HandleLidSwitchDocked = "ignore";
38 };
39 wireguard = {
40 enable = true;
41 ips = libx.wg-ips globals.machines.aomi.net.vpn.ips;
42 endpoint = "${globals.net.vpn.endpoint}";
43 endpointPublicKey = "${globals.machines.kerkouane.net.vpn.pubkey}";
44 };
45 ollama = {
46 enable = true;
47 # acceleration = "cuda"; # no nivida :D
48 };
49 smartd = {
50 enable = true;
51 devices = [ { device = "/dev/nvme0n1"; } ];
52 };
53 hardware.bolt.enable = true;
54 # gitea-actions-runner = {
55 # instances = {
56 # "aomi-codeberg" = {
57 # name = "aomi";
58 # enable = true;
59 # url = "https://codeberg.org";
60 # # tokenFile = "/home/vincent/sync/codeberg.token";
61 # tokenFile = "/etc/codeberg.token";
62 # labels = [
63 # # "local:host"
64 # "nixos-${pkgs.system}:host"
65 # "native:host"
66 # "docker:docker://gitea/runner-images:ubuntu-latest"
67 # "ubuntu-latest:docker://gitea/runner-images:ubuntu-latest"
68 # "ubuntu-24.04:docker://gitea/runner-images:ubuntu-24.04"
69 # "ubuntu-22.04:docker://gitea/runner-images:ubuntu-22.04"
70 # "ubuntu-20.04:docker://gitea/runner-images:ubuntu-20.04"
71 # # "nix:docker://localhost:5921/nix-runner"
72 # ];
73 # hostPackages = with pkgs; [
74 # bash
75 # direnv
76 # coreutils
77 # curl
78 # gawk
79 # nixVersions.stable
80 # gitFull
81 # gnused
82 # docker
83 # openssh
84 # wget
85 # ];
86 # };
87 # };
88 # };
89 };
90
91}