From 19ed53531500c7e61fca684953057890022b7ad3 Mon Sep 17 00:00:00 2001 From: minco Date: Mon, 21 Jul 2025 14:13:30 +0900 Subject: [PATCH] elixir --- hardware-configuration.nix | 68 ++++++++++++++++++++------------------ modules/home/fish.nix | 1 + pkgs/programming.nix | 4 +++ pkgs/tools.nix | 2 ++ 4 files changed, 42 insertions(+), 33 deletions(-) diff --git a/hardware-configuration.nix b/hardware-configuration.nix index b927104..440a796 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -4,48 +4,49 @@ { config, lib, pkgs, modulesPath, ... }: { - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; + imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "uas" "sd_mod" ]; + boot.initrd.availableKernelModules = + [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "uas" "sd_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelParams = [ "intel_iommu=on" ]; boot.kernelModules = [ "kvm-intel" "vfio_pci" ]; boot.extraModulePackages = [ ]; - boot.extraModprobeConfig = '' - options vfio-pci ids=10de:1c81,10de:0fb9 - ''; - fileSystems."/" = - { device = "/dev/disk/by-uuid/4e08142c-1b09-4265-a497-822e4a83d4c8"; - fsType = "btrfs"; - options = [ "subvol=root" ]; - }; + # 1050 passthrough + # boot.extraModprobeConfig = '' + # options vfio-pci ids=10de:1c81,10de:0fb9 + # ''; - fileSystems."/home" = - { device = "/dev/disk/by-uuid/4e08142c-1b09-4265-a497-822e4a83d4c8"; - fsType = "btrfs"; - options = [ "subvol=home" ]; - }; + fileSystems."/" = { + device = "/dev/disk/by-uuid/4e08142c-1b09-4265-a497-822e4a83d4c8"; + fsType = "btrfs"; + options = [ "subvol=root" ]; + }; - fileSystems."/nix" = - { device = "/dev/disk/by-uuid/4e08142c-1b09-4265-a497-822e4a83d4c8"; - fsType = "btrfs"; - options = [ "subvol=nix" ]; - }; + fileSystems."/home" = { + device = "/dev/disk/by-uuid/4e08142c-1b09-4265-a497-822e4a83d4c8"; + fsType = "btrfs"; + options = [ "subvol=home" ]; + }; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/E808-5876"; - fsType = "vfat"; - options = [ "fmask=0022" "dmask=0022" ]; - }; + fileSystems."/nix" = { + device = "/dev/disk/by-uuid/4e08142c-1b09-4265-a497-822e4a83d4c8"; + fsType = "btrfs"; + options = [ "subvol=nix" ]; + }; - fileSystems."/mnt/hdd1" = - { device = "/dev/disk/by-uuid/EC40940C4093DC20"; - fsType = "ntfs-3g"; - options = [ "rw" "uid=1000" "umask=0022" ]; - }; + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/E808-5876"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + fileSystems."/mnt/hdd1" = { + device = "/dev/disk/by-uuid/EC40940C4093DC20"; + fsType = "ntfs-3g"; + options = [ "rw" "uid=1000" "umask=0022" ]; + }; swapDevices = [ ]; @@ -58,5 +59,6 @@ # networking.interfaces.eth0.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + hardware.cpu.intel.updateMicrocode = + lib.mkDefault config.hardware.enableRedistributableFirmware; } diff --git a/modules/home/fish.nix b/modules/home/fish.nix index 6af5c10..3748fd0 100644 --- a/modules/home/fish.nix +++ b/modules/home/fish.nix @@ -12,6 +12,7 @@ set -gx PKG_CONFIG_PATH ${pkgs.openssl.dev}/lib/pkgconfig; alias vi="nvim" alias rb="sudo nixos-rebuild switch --flake ~/nixos-config#" + alias dry-rb="sudo nixos-rebuild switch --dry-run --flake ~/nixos-config#" ''; plugins = [ # Enable a plugin (here grc for colorized command output) from nixpkgs diff --git a/pkgs/programming.nix b/pkgs/programming.nix index bb9dd81..213bc87 100644 --- a/pkgs/programming.nix +++ b/pkgs/programming.nix @@ -37,6 +37,10 @@ with pkgs; [ cutter ghc nasm + elixir + erlang + hex + rebar3 haskellPackages.stack haskellPackages.hpack haskellPackages.cabal-install diff --git a/pkgs/tools.nix b/pkgs/tools.nix index 94d431c..4a7f9ee 100644 --- a/pkgs/tools.nix +++ b/pkgs/tools.nix @@ -19,6 +19,8 @@ with pkgs; [ vesktop discordo distrobox + freecad + kicad youtube-music thunderbird yt-dlp