mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-26 05:40:52 +01:00
refactor user import
This commit is contained in:
parent
76487f4e42
commit
cc5eb4946c
9 changed files with 17 additions and 31 deletions
|
@ -2,6 +2,11 @@
|
|||
|
||||
{
|
||||
|
||||
imports = [
|
||||
../users/default.nix
|
||||
../users/julien.nix
|
||||
];
|
||||
|
||||
luj.nix.enable = true;
|
||||
#luj.secrets.enable = true;
|
||||
luj.ssh-server.enable = true;
|
||||
|
@ -17,7 +22,6 @@
|
|||
keyMap = lib.mkForce "fr";
|
||||
};
|
||||
|
||||
|
||||
programs.gnupg.agent.enable = true;
|
||||
|
||||
networking.firewall.enable = true;
|
||||
|
@ -68,5 +72,4 @@ VfXtULncAiEA2gmqdr+ugFz5tvPdKwanroTiMTUMhhCRYVlQlyTApyQ=
|
|||
];
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
imports =
|
||||
[
|
||||
./hardware.nix
|
||||
../../users/default.nix
|
||||
../../users/julien.nix
|
||||
./home-julien.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
imports =
|
||||
[
|
||||
./hardware.nix
|
||||
../../users/default.nix
|
||||
../../users/julien.nix
|
||||
./home-julien.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
[
|
||||
./hardware.nix
|
||||
./home-julien.nix
|
||||
../../users/julien.nix
|
||||
../../users/default.nix
|
||||
];
|
||||
|
||||
networking.hostName = "enigma";
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
imports = [
|
||||
./hardware.nix
|
||||
./home-julien.nix
|
||||
../../users/julien.nix
|
||||
../../users/default.nix
|
||||
];
|
||||
|
||||
# Boot stuff
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
[
|
||||
./hardware.nix
|
||||
./home-julien.nix
|
||||
../../users/julien.nix
|
||||
../../users/default.nix
|
||||
];
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
./hardware.nix
|
||||
./home-julien.nix
|
||||
../../users/julien.nix
|
||||
../../users/default.nix
|
||||
];
|
||||
|
||||
|
||||
|
|
|
@ -3,11 +3,8 @@
|
|||
{
|
||||
imports =
|
||||
[
|
||||
# Include the results of the hardware scan.
|
||||
./hardware.nix
|
||||
./home-julien.nix
|
||||
../../users/julien.nix
|
||||
../../users/default.nix
|
||||
];
|
||||
|
||||
# Bootloader.
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
[
|
||||
./hardware.nix
|
||||
./home-julien.nix
|
||||
../../users/julien.nix
|
||||
../../users/default.nix
|
||||
../../share.nix
|
||||
];
|
||||
|
||||
|
@ -99,26 +97,26 @@
|
|||
];
|
||||
|
||||
|
||||
networking.wireguard.interfaces.rezo = {
|
||||
ips = [ "fd81:fb3a:50cc::200/128" ];
|
||||
networking.wireguard.interfaces.rezo = {
|
||||
ips = [ "fd81:fb3a:50cc::200/128" ];
|
||||
privateKeyFile = "/root/wg-private";
|
||||
peers = [
|
||||
{
|
||||
publicKey = "srQPT9ZjXBKyJ7R1mvXYMZNy+NcnHMy5qE1WGZDfmnc=";
|
||||
allowedIPs = [ "fd81:fb3a:50cc::/48" ];
|
||||
endpoint = "129.199.146.230:25351";
|
||||
}
|
||||
];
|
||||
};
|
||||
peers = [
|
||||
{
|
||||
publicKey = "srQPT9ZjXBKyJ7R1mvXYMZNy+NcnHMy5qE1WGZDfmnc=";
|
||||
allowedIPs = [ "fd81:fb3a:50cc::/48" ];
|
||||
endpoint = "129.199.146.230:25351";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
services.hash-collection = {
|
||||
enable = true;
|
||||
retries = 1;
|
||||
collection-url = "http://localhost:8000";
|
||||
tokenFile = "/home/julien/token";
|
||||
};
|
||||
};
|
||||
|
||||
services.printing.enable = true;
|
||||
services.avahi.enable = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue