{ config, lib, pkgs, ... }: { imports = [ ../../profiles/core.nix ../../profiles/user.nix ../../profiles/ssh.nix ../../profiles/graphical.nix ../../mixins/tailscale.nix ../../mixins/cli.nix ../../mixins/greet.nix ../../mixins/sway.nix ]; config = { _module.args.nixinate = { host = "192.168.1.32"; sshUser = "tzlil"; buildOn = "remote"; # valid args are "local" or "remote" substituteOnTarget = true; # if buildOn is "local" then it will substitute on the target, "-s" hermetic = false; }; networking.hostName = "navi"; boot = { initrd = { supportedFilesystems = ["btrfs"]; availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod"]; }; kernelModules = ["kvm-intel"]; kernelPackages = lib.mkDefault pkgs.linuxPackages_latest; # extraModulePackages = [ pkgs.linuxPackages_latest.rtw88-firmware ]; kernelParams = [ "console=ttyS0" "init_on_free=1" "page_poison=1" "page_alloc.shuffle=1" "slab_nomerge" "vsyscall=none" ]; cleanTmpDir = true; loader = { systemd-boot = { enable = true; }; efi = { canTouchEfiVariables = true; efiSysMountPoint = "/boot"; }; }; }; hardware.firmware = [ pkgs.rtw88-firmware ]; time.timeZone = lib.mkDefault "Israel"; fileSystems."/" = { device = "none"; fsType = "tmpfs"; }; fileSystems."/boot" = { device = "/dev/disk/by-uuid/34CB-F158"; fsType = "vfat"; }; fileSystems."/nix" = { device = "/dev/disk/by-uuid/8a8cc550-034e-4545-a958-564779f51061"; fsType = "btrfs"; }; zramSwap = { enable = true; algorithm = "zstd"; }; networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true; networking.networkmanager.enable = true; environment.persistence."/nix/persist".directories = ["/etc/NetworkManager/system-connections"]; # networking = { # networkmanager.unmanaged = ["wlp1s0"]; # interfaces.wlp1s0.useDHCP = lib.mkDefault true; # wireless = { # enable = true; # userControlled.enable = true; # networks = { # home = { # hidden = true; # pskRaw = "7bb8bcec7c13f500df1a63928785c98e8fd27bf1fea94f625cfed0ecf2cc5247"; # }; # }; # }; # }; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }; }