1 { config, pkgs, lib, inputs, private, hostName, ... }:
4 #../nixos/profiles/debug.nix
5 ../nixos/profiles/lang-fr.nix
6 ../nixos/profiles/security.nix
7 ../nixos/profiles/system.nix
8 #../nixos/profiles/tor.nix
10 aubergine/networking.nix
13 # Lower kernel's security for better performances
14 boot.kernelParams = [ "mitigations=off" ];
16 environment.etc.machine-id.source = ../private + "/hosts/${hostName}/root/machine-id";
18 home-manager.users.julm = {
19 imports = [ ../homes/julm.nix ];
20 # /sys/devices/virtual/dmi/id/product_name
21 host.hardware = [ "apu6" ];
23 systemd.services.home-manager-julm.postStart = ''
24 ${pkgs.nix}/bin/nix-env --delete-generations +1 --profile /nix/var/nix/profiles/per-user/julm/home-manager
29 # Put the hashedPassword in /nix/store, but it will also be in /etc/passwd
30 # which is already world readable.
31 hashedPassword = lib.readFile ../private/world/julm/hashedPassword;
39 # If created, zfs-mount.service would require:
40 # zfs set overlay=yes ${hostName}/home
42 openssh.authorizedKeys.keys = map lib.readFile [
43 ../private/shared/ssh/julm/losurdo.pub
44 ../private/shared/ssh/julm/oignon.pub
45 ../private/shared/ssh/julm/redmi.pub
50 openssh.authorizedKeys.keys = map lib.readFile [
51 ../private/shared/ssh/julm/losurdo.pub
52 ../private/shared/ssh/julm/oignon.pub
53 ../private/shared/ssh/julm/redmi.pub
59 #secret-key-files = /run/credentials/nix-daemon.service/secret-key-files.pem
60 secret-key-files = ${private}/${hostName}/nix/binary-cache/priv.pem
63 trusted-users = [ config.users.users."julm".name ];
65 #"http://nix-localcache.losurdo.wg"
66 #"ssh://nix-ssh@losurdo.wg?priority=30"
68 trusted-public-keys = map lib.readFile [
69 #../private/shared/nix/losurdo.pub
72 nixPath = lib.mkForce [ "nixpkgs=${inputs.nixpkgs}" ];
74 #environment.etc."nixpkgs".source = pkgs.path;
75 #environment.etc."nixpkgs-overlays".source = inputs.self + "/nixpkgs";
77 nix.settings.allowed-users = [ config.users.users."nix-ssh".name ];
80 keys = map lib.readFile [
81 ../private/shared/ssh/julm/losurdo.pub
82 ../private/shared/ssh/sevy/patate.pub
83 ../private/shared/ssh/julm/oignon.pub
87 environment.systemPackages = [
90 boot.extraModulePackages = [
91 #config.boot.kernelPackages.v4l2loopback
94 # This value determines the NixOS release with which your system is to be
95 # compatible, in order to avoid breaking some software such as database
96 # servers. You should change this only after NixOS release notes say you should.
97 system.stateVersion = "22.11"; # Did you read the comment?