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/root/losurdo.pub
44 ../private/shared/ssh/julm/losurdo.pub
45 ../private/shared/ssh/julm/oignon.pub
46 ../private/shared/ssh/julm/redmi.pub
51 openssh.authorizedKeys.keys = map lib.readFile [
52 ../private/shared/ssh/root/losurdo.pub
53 ../private/shared/ssh/julm/losurdo.pub
54 ../private/shared/ssh/julm/oignon.pub
55 ../private/shared/ssh/julm/redmi.pub
61 #secret-key-files = /run/credentials/nix-daemon.service/secret-key-files.pem
62 #secret-key-files = ${private}/${hostName}/nix/binary-cache/priv.pem
65 trusted-users = [ config.users.users."julm".name ];
67 #"http://nix-localcache.losurdo.wg"
68 #"ssh://nix-ssh@losurdo.wg?priority=30"
70 trusted-public-keys = map lib.readFile [
71 #../private/shared/nix/losurdo.pub
74 nixPath = lib.mkForce [ "nixpkgs=${inputs.nixpkgs}" ];
76 #environment.etc."nixpkgs".source = pkgs.path;
77 #environment.etc."nixpkgs-overlays".source = inputs.self + "/nixpkgs";
79 nix.settings.allowed-users = [ config.users.users."nix-ssh".name ];
82 keys = map lib.readFile [
83 ../private/shared/ssh/julm/losurdo.pub
84 ../private/shared/ssh/sevy/patate.pub
85 ../private/shared/ssh/julm/oignon.pub
89 environment.systemPackages = [
92 boot.extraModulePackages = [
93 #config.boot.kernelPackages.v4l2loopback
96 # This value determines the NixOS release with which your system is to be
97 # compatible, in order to avoid breaking some software such as database
98 # servers. You should change this only after NixOS release notes say you should.
99 system.stateVersion = "22.11"; # Did you read the comment?