mirror of
https://github.com/davegallant/nix-config
synced 2025-08-07 00:58:16 +00:00
Use mitmproxy cask for macos
This commit is contained in:
@@ -1,11 +1,4 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
modulesPath,
|
||||
pkgs,
|
||||
unstable,
|
||||
...
|
||||
}:
|
||||
{ config, lib, modulesPath, pkgs, unstable, ... }:
|
||||
let
|
||||
gnomeExtensions = with pkgs.gnomeExtensions; [
|
||||
appindicator
|
||||
@@ -19,16 +12,17 @@ let
|
||||
tailscale-status
|
||||
tray-icons-reloaded
|
||||
];
|
||||
in
|
||||
{
|
||||
in {
|
||||
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
stylix = {
|
||||
enable = true;
|
||||
base16Scheme = "${unstable.base16-schemes}/share/themes/tokyo-night-dark.yaml";
|
||||
base16Scheme =
|
||||
"${unstable.base16-schemes}/share/themes/tokyo-night-dark.yaml";
|
||||
image = pkgs.fetchurl {
|
||||
url = "https://github.com/davegallant/nix-config/blob/main/nixos-wallpaper.png?raw=true";
|
||||
url =
|
||||
"https://github.com/davegallant/nix-config/blob/main/nixos-wallpaper.png?raw=true";
|
||||
sha256 = "Ztqn9+CHslr6wZdnOTeo/YNi/ICerpcFLyMArsZ/PIY=";
|
||||
};
|
||||
polarity = "dark";
|
||||
@@ -51,29 +45,18 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
supportedFilesystems = [
|
||||
"ntfs"
|
||||
"zfs"
|
||||
];
|
||||
supportedFilesystems = [ "ntfs" "zfs" ];
|
||||
|
||||
initrd = {
|
||||
availableKernelModules = [
|
||||
"ahci"
|
||||
"nvme"
|
||||
"sd_mod"
|
||||
"usb_storage"
|
||||
"usbhid"
|
||||
"xhci_pci"
|
||||
];
|
||||
availableKernelModules =
|
||||
[ "ahci" "nvme" "sd_mod" "usb_storage" "usbhid" "xhci_pci" ];
|
||||
luks.devices."root" = {
|
||||
allowDiscards = true;
|
||||
device = "/dev/disk/by-uuid/21cd166c-1528-49a4-b31b-0d408d48aa80";
|
||||
preLVM = true;
|
||||
keyFile = "./keyfile0.bin";
|
||||
};
|
||||
secrets = {
|
||||
"keyfile0.bin" = "/etc/secrets/initrd/keyfile0.bin";
|
||||
};
|
||||
secrets = { "keyfile0.bin" = "/etc/secrets/initrd/keyfile0.bin"; };
|
||||
};
|
||||
};
|
||||
|
||||
@@ -82,8 +65,7 @@ in
|
||||
keyMap = "us";
|
||||
};
|
||||
|
||||
environment.systemPackages =
|
||||
with pkgs;
|
||||
environment.systemPackages = with pkgs;
|
||||
[
|
||||
android-tools
|
||||
bitwarden
|
||||
@@ -104,6 +86,7 @@ in
|
||||
libation
|
||||
lm_sensors
|
||||
logseq
|
||||
mitmproxy
|
||||
mullvad-vpn
|
||||
netdata
|
||||
nfs-utils
|
||||
@@ -130,8 +113,7 @@ in
|
||||
wine
|
||||
wine64
|
||||
wireshark-qt
|
||||
]
|
||||
++ gnomeExtensions;
|
||||
] ++ gnomeExtensions;
|
||||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
@@ -154,21 +136,20 @@ in
|
||||
device = "192.168.1.178:/volume1/Backups";
|
||||
fsType = "nfs";
|
||||
};
|
||||
"/mnt/zfs/backups" =
|
||||
{ device = "zpool/backups";
|
||||
"/mnt/zfs/backups" = {
|
||||
device = "zpool/backups";
|
||||
fsType = "zfs";
|
||||
};
|
||||
};
|
||||
|
||||
swapDevices = [ { device = "/dev/disk/by-uuid/5d6d0388-2b15-4ff1-9f0f-391818a76090"; } ];
|
||||
swapDevices =
|
||||
[{ device = "/dev/disk/by-uuid/5d6d0388-2b15-4ff1-9f0f-391818a76090"; }];
|
||||
|
||||
nixpkgs = {
|
||||
hostPlatform = "x86_64-linux";
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
permittedInsecurePackages = [
|
||||
"electron-27.3.11"
|
||||
];
|
||||
permittedInsecurePackages = [ "electron-27.3.11" ];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -176,9 +157,7 @@ in
|
||||
iproute2.enable = true;
|
||||
hostName = "hephaestus";
|
||||
hostId = "0e8aad53";
|
||||
interfaces.enp34s0 = {
|
||||
useDHCP = true;
|
||||
};
|
||||
interfaces.enp34s0 = { useDHCP = true; };
|
||||
firewall = {
|
||||
allowPing = false;
|
||||
enable = true;
|
||||
@@ -187,27 +166,18 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services = {
|
||||
NetworkManager-wait-online.enable = false;
|
||||
};
|
||||
systemd.services = { NetworkManager-wait-online.enable = false; };
|
||||
|
||||
system = {
|
||||
autoUpgrade.enable = true;
|
||||
stateVersion = "24.05";
|
||||
};
|
||||
|
||||
nix = {
|
||||
extraOptions = "experimental-features = nix-command flakes";
|
||||
};
|
||||
nix = { extraOptions = "experimental-features = nix-command flakes"; };
|
||||
|
||||
users.users.dave = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
"docker"
|
||||
"wheel"
|
||||
"libvirtd"
|
||||
"corectrl"
|
||||
];
|
||||
extraGroups = [ "docker" "wheel" "libvirtd" "corectrl" ];
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
@@ -222,7 +192,8 @@ in
|
||||
|
||||
hardware = {
|
||||
opengl.enable = true;
|
||||
cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
cpu.amd.updateMicrocode =
|
||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
pulseaudio.enable = true;
|
||||
# Vulkan
|
||||
opengl.driSupport = true;
|
||||
|
Reference in New Issue
Block a user