75 lines
1.9 KiB
Nix
75 lines
1.9 KiB
Nix
{ pkgs, inputs, config, lib, ... }:
|
|
|
|
let
|
|
nfs_opts = [ "x-systemd.automount" "noauto" "x-systemd.idle-timeout=600" ];
|
|
hdd_opts = [ "nosuid" "nodev" "nofail" ];
|
|
in
|
|
|
|
{
|
|
|
|
imports =
|
|
[
|
|
./boot.nix
|
|
./hardware.nix
|
|
# ./desk_apps.nix
|
|
../../modules/common/default.nix
|
|
../../modules/common/system-d_boot.nix
|
|
../../modules/networking/ssh.nix
|
|
../../modules/networking/hosts.nix
|
|
../../modules/user
|
|
../../modules/apps/99_i3_config.nix
|
|
../../modules/dev/docker.nix
|
|
../../modules/dev/ruby.nix
|
|
../../modules/dev/utils.nix
|
|
../../modules/misc/polkit.nix
|
|
inputs.home-manager.nixosModules.default
|
|
inputs.sops-nix.nixosModules.sops
|
|
];
|
|
|
|
|
|
config = {
|
|
user = "fred";
|
|
host = "lap";
|
|
sops_file = "home.yaml";
|
|
|
|
time.timeZone = "America/Los_Angeles";
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
nfs-utils
|
|
ddcutil
|
|
input-remapper
|
|
xorg.xinit # for vnc server
|
|
];
|
|
|
|
networking.firewall.allowedUDPPorts = [ 5900 ]; # vnc-server
|
|
networking.firewall.allowedTCPPorts = [ 5900 ]; # vnc-server
|
|
#### NFS's ###
|
|
services.autofs = {
|
|
enable = true;
|
|
timeout = 60;
|
|
autoMaster = ''
|
|
/- /etc/autofs/auto.nfs_server --timeout=60
|
|
'';
|
|
};
|
|
environment.etc."autofs/auto.nfs_server" = {
|
|
text = ''
|
|
/nfs -rw,soft,rsize=8192,wsize=8192 nfs:/nfs
|
|
/solid -rw,soft,rsize=8192,wsize=8192 nfs:/solid
|
|
/docker -rw,soft,rsize=8192,wsize=8192 nfs:/docker
|
|
'';
|
|
mode = "0644";
|
|
};
|
|
|
|
services.tcsd.enable = false; # prevent sysinit-reactiviation.target hang when rebuilding flake
|
|
|
|
networking.enableIPv6 = false;
|
|
security.pki.certificates = [ (builtins.readFile ../../dotfiles/certs/mfCA.crt) ];
|
|
|
|
hardware.bluetooth.enable = true;
|
|
hardware.bluetooth.powerOnBoot = false;
|
|
services.blueman.enable = true;
|
|
|
|
system.stateVersion = "25.05";
|
|
};
|
|
}
|