update nix config
This commit is contained in:
parent
f610209aff
commit
07b7f0cc1f
34 changed files with 388 additions and 240 deletions
75
hosts/lap/default.nix
Normal file
75
hosts/lap/default.nix
Normal file
|
@ -0,0 +1,75 @@
|
|||
{ 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";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue