nixos-config/config/host-config/system3.nix

62 lines
1.4 KiB
Nix
Raw Normal View History

2021-08-06 16:25:01 -07:00
{ config, lib, pkgs, ... }:
2022-04-08 14:21:56 -07:00
with lib;
2021-08-06 16:25:01 -07:00
let state-dir = "/state";
in {
2022-07-10 20:46:03 -07:00
fudo = {
slynk.enable = true;
wallfly.location = "office";
};
2021-08-06 16:25:01 -07:00
2022-01-05 12:09:56 -08:00
networking = {
interfaces.intif0.useDHCP = true;
firewall.enable = false;
};
2021-08-06 16:25:01 -07:00
systemd.tmpfiles.rules = [
"L /root/.gnupg - - - - ${state-dir}/user/root/gnupg"
"L /root/.ssh/id_rsa - - - - ${state-dir}/user/root/ssh/id_rsa"
"L /root/.ssh/id_rsa.pub - - - - ${state-dir}/user/root/ssh/id_rsa.pub"
"L /root/.ssh/known_hosts - - - - ${state-dir}/user/root/ssh/known_hosts"
"L /var/lib/flatpak - - - - ${state-dir}/lib/flatpak"
2022-04-08 14:21:56 -07:00
"L /etc/adjtime - - - - ${state-dir}/etc/adjtime"
2023-05-16 22:40:08 -07:00
"d ${state-dir}/lib/cups 755 root root - -"
2021-08-06 16:25:01 -07:00
];
2022-03-16 09:49:35 -07:00
services = {
blueman.enable = true;
2022-04-08 14:21:56 -07:00
2022-03-16 09:49:35 -07:00
openssh.hostKeys = [
{
path = "${state-dir}/ssh/ssh_host_rsa_key";
type = "rsa";
bits = 4096;
}
{
path = "${state-dir}/ssh/ssh_host_ed25519_key";
type = "ed25519";
}
];
};
2021-08-06 16:25:01 -07:00
2023-05-16 22:40:08 -07:00
fileSystems = {
"/var/lib/cups" = {
device = "${state-dir}/lib/cups";
options = [ "bind" ];
};
};
2021-08-06 16:25:01 -07:00
environment.etc = {
nixos.source = "/etc/nixos-live";
2022-04-08 14:21:56 -07:00
NIXOS.source = "${state-dir}/etc/NIXOS";
2021-08-06 16:25:01 -07:00
};
2022-03-16 09:49:35 -07:00
hardware = {
bluetooth = {
enable = true;
package = pkgs.bluezFull;
};
xpadneo.enable = true;
};
2021-08-06 16:25:01 -07:00
}