diff --git a/flake.lock b/flake.lock index af07a52..42e19dc 100644 --- a/flake.lock +++ b/flake.lock @@ -23,11 +23,11 @@ "nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1763596996, - "narHash": "sha256-7cFIOus5SL7+2eNgzsJdZpXuAbAbjdGGaRUYbdAOQ0E=", + "lastModified": 1763769801, + "narHash": "sha256-3bNP2lWP+Hor/GT3kFfdCBozaRzeKJncvXVBRtDggmI=", "owner": "sadjow", "repo": "claude-code-nix", - "rev": "c06fdde903bed1e0b74528b34c12293b4e406ec5", + "rev": "3b92e3b6f23a91cc795415b3990349e3712164bb", "type": "github" }, "original": { @@ -36,31 +36,6 @@ "type": "github" } }, - "cuda-legacy": { - "inputs": { - "flake-parts": [ - "jetpack-nixos", - "cuda-legacy" - ], - "nixpkgs": [ - "jetpack-nixos", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1762806692, - "narHash": "sha256-JhgQIwJe0U2vxj+pu+Sgm+VLgNqucpXtZYGKZOgkQdc=", - "owner": "nixos-cuda", - "repo": "cuda-legacy", - "rev": "9856d70acc3e2ae9081930b33d946326e07f1482", - "type": "github" - }, - "original": { - "owner": "nixos-cuda", - "repo": "cuda-legacy", - "type": "github" - } - }, "disko": { "inputs": { "nixpkgs": [ @@ -89,11 +64,11 @@ }, "locked": { "dir": "pkgs/firefox-addons", - "lastModified": 1763611423, - "narHash": "sha256-WpffruXWlWQhkzQEbveSOcX/cuBCAGwIufeHW9/3tnE=", + "lastModified": 1763957026, + "narHash": "sha256-9pJwJVDgd3iprxOn6MKAC8EE7iBQtMusisP/osg9F9M=", "owner": "rycee", "repo": "nur-expressions", - "rev": "0d05242fe9c916a7e0728450ef7bab65319d01dc", + "rev": "93a643e36b3919abeeb58696b13da392865a9a94", "type": "gitlab" }, "original": { @@ -111,11 +86,11 @@ ] }, "locked": { - "lastModified": 1762980239, - "narHash": "sha256-8oNVE8TrD19ulHinjaqONf9QWCKK+w4url56cdStMpM=", + "lastModified": 1763759067, + "narHash": "sha256-LlLt2Jo/gMNYAwOgdRQBrsRoOz7BPRkzvNaI/fzXi2Q=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "52a2caecc898d0b46b2b905f058ccc5081f842da", + "rev": "2cccadc7357c0ba201788ae99c4dfa90728ef5e0", "type": "github" }, "original": { @@ -167,11 +142,11 @@ ] }, "locked": { - "lastModified": 1763416652, - "narHash": "sha256-8EBEEvtzQ11LCxpQHMNEBQAGtQiCu/pqP9zSovDSbNM=", + "lastModified": 1763963090, + "narHash": "sha256-zR7uDZdQUUC+gBOi4byefMvIZuSBeMC6GswGNsTgQlM=", "owner": "nix-community", "repo": "home-manager", - "rev": "ea164b7c9ccdc2321379c2ff78fd4317b4c41312", + "rev": "7702d14879e8f0148fa168e38f3eaa2650fa0d85", "type": "github" }, "original": { @@ -208,27 +183,6 @@ "type": "github" } }, - "jetpack-nixos": { - "inputs": { - "cuda-legacy": "cuda-legacy", - "nixpkgs": [ - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1763664518, - "narHash": "sha256-c/gTPe2Ajn4QuoDLpLN13IPh6VKnide1PpgYcugE1OQ=", - "owner": "anduril", - "repo": "jetpack-nixos", - "rev": "b4759a97f21084cb436e864946de75b2cb794a71", - "type": "github" - }, - "original": { - "owner": "anduril", - "repo": "jetpack-nixos", - "type": "github" - } - }, "nix-darwin": { "inputs": { "nixpkgs": [ @@ -270,11 +224,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1763464769, - "narHash": "sha256-AJHrsT7VoeQzErpBRlLJM1SODcaayp0joAoEA35yiwM=", + "lastModified": 1763618868, + "narHash": "sha256-v5afmLjn/uyD9EQuPBn7nZuaZVV9r+JerayK/4wvdWA=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "6f374686605df381de8541c072038472a5ea2e2d", + "rev": "a8d610af3f1a5fb71e23e08434d8d61a466fc942", "type": "github" }, "original": { @@ -286,11 +240,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1763618868, - "narHash": "sha256-v5afmLjn/uyD9EQuPBn7nZuaZVV9r+JerayK/4wvdWA=", + "lastModified": 1763806073, + "narHash": "sha256-FHsEKDvfWpzdADWj99z7vBk4D716Ujdyveo5+A048aI=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "a8d610af3f1a5fb71e23e08434d8d61a466fc942", + "rev": "878e468e02bfabeda08c79250f7ad583037f2227", "type": "github" }, "original": { @@ -310,11 +264,11 @@ "systems": "systems_3" }, "locked": { - "lastModified": 1763638001, - "narHash": "sha256-Y1SPkwcPaUjrqPff49J4f1t7npRUDuYazccUsNF9XSQ=", + "lastModified": 1763982647, + "narHash": "sha256-dQBXy7aOpNIVFct61ypK0eelsYtTD59WIIdz+OmM7po=", "owner": "nix-community", "repo": "nixvim", - "rev": "f4b9a7122425c56d65466fcafb99053730b2646a", + "rev": "947cb0aaed6d3f66ef142a0115b72d2537877ecc", "type": "github" }, "original": { @@ -352,7 +306,6 @@ "disko": "disko", "firefox-addons": "firefox-addons", "home-manager": "home-manager", - "jetpack-nixos": "jetpack-nixos", "nix-darwin": "nix-darwin", "nix-homebrew": "nix-homebrew", "nixpkgs": "nixpkgs_2", diff --git a/flake.nix b/flake.nix index 52e456a..6525c0f 100644 --- a/flake.nix +++ b/flake.nix @@ -17,11 +17,9 @@ nix-homebrew.url = "github:zhaofengli/nix-homebrew"; disko.url = "github:nix-community/disko"; disko.inputs.nixpkgs.follows = "nixpkgs"; - jetpack-nixos.url = "github:anduril/jetpack-nixos"; - jetpack-nixos.inputs.nixpkgs.follows = "nixpkgs"; }; - outputs = inputs@{ self, nix-darwin, nixpkgs, home-manager, nixvim, claude-code, firefox-addons, nix-homebrew, disko, jetpack-nixos }: + outputs = inputs@{ self, nix-darwin, nixpkgs, home-manager, nixvim, claude-code, firefox-addons, nix-homebrew, disko }: { darwinConfigurations."macbook" = nix-darwin.lib.darwinSystem { modules = [ @@ -57,16 +55,6 @@ ]; }; - nixosConfigurations."jetson" = nixpkgs.lib.nixosSystem { - system = "aarch64-linux"; - modules = [ - disko.nixosModules.disko - jetpack-nixos.nixosModules.default - ./hosts/nixos/jetson/system.nix - ./hosts/nixos/jetson/disk-config.nix - ]; - }; - homeConfigurations = { "yanlin@macbook" = home-manager.lib.homeManagerConfiguration { pkgs = nixpkgs.legacyPackages.aarch64-darwin; @@ -91,12 +79,6 @@ modules = [ ./hosts/nixos/thinkpad/home.nix ]; extraSpecialArgs = { inherit claude-code nixvim firefox-addons; }; }; - - "yanlin@jetson" = home-manager.lib.homeManagerConfiguration { - pkgs = nixpkgs.legacyPackages.aarch64-linux; - modules = [ ./hosts/nixos/jetson/home.nix ]; - extraSpecialArgs = { inherit claude-code nixvim; }; - }; }; }; } diff --git a/hosts/nixos/jetson/disk-config.nix b/hosts/nixos/jetson/disk-config.nix deleted file mode 100644 index 6c6d5b3..0000000 --- a/hosts/nixos/jetson/disk-config.nix +++ /dev/null @@ -1,38 +0,0 @@ -# Disko configuration for Jetson Orin Nano Super Developer Kit -# Simple NVMe configuration with systemd-boot -{ - disko.devices = { - disk = { - main = { - type = "disk"; - device = "/dev/nvme0n1"; - content = { - type = "gpt"; - partitions = { - # EFI System Partition - ESP = { - size = "512M"; - type = "EF00"; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - mountOptions = [ "fmask=0077" "dmask=0077" ]; - }; - }; - - # Root partition - takes remaining space - root = { - size = "100%"; - content = { - type = "filesystem"; - format = "ext4"; - mountpoint = "/"; - }; - }; - }; - }; - }; - }; - }; -} diff --git a/hosts/nixos/jetson/hardware-configuration.nix b/hosts/nixos/jetson/hardware-configuration.nix deleted file mode 100644 index 8651777..0000000 --- a/hosts/nixos/jetson/hardware-configuration.nix +++ /dev/null @@ -1,26 +0,0 @@ -# PLACEHOLDER hardware configuration for Jetson Orin Nano -# This file should be regenerated on the actual device by running: -# nixos-generate-config --root /mnt -# Then copy the generated hardware-configuration.nix to this location. -{ config, lib, pkgs, modulesPath, ... }: - -{ - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; - - # These are placeholder kernel modules - will be auto-detected by nixos-generate-config - boot.initrd.availableKernelModules = [ "nvme" "usb_storage" "usbhid" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ ]; - boot.extraModulePackages = [ ]; - - # Filesystems are managed by disko configuration - # No filesystem declarations needed here - - # Enable DHCP on network interfaces - networking.useDHCP = lib.mkDefault true; - - # ARM64 platform for Jetson Orin Nano - nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; -} diff --git a/hosts/nixos/jetson/home.nix b/hosts/nixos/jetson/home.nix deleted file mode 100644 index bdd9801..0000000 --- a/hosts/nixos/jetson/home.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, ... }: - -{ - imports = [ - ../home-default.nix - ]; -} diff --git a/hosts/nixos/jetson/system.nix b/hosts/nixos/jetson/system.nix deleted file mode 100644 index 5c87865..0000000 --- a/hosts/nixos/jetson/system.nix +++ /dev/null @@ -1,60 +0,0 @@ -{ config, pkgs, lib, ... }: - -{ - imports = [ - ./hardware-configuration.nix - ../system-default.nix - ]; - - # Bootloader - UEFI setup for Jetson - boot.loader = { - systemd-boot.enable = true; - systemd-boot.configurationLimit = 50; - efi.canTouchEfiVariables = true; - timeout = 3; - }; - - # Hardware support for Jetson Orin Nano - hardware = { - enableRedistributableFirmware = true; - - # Graphics and CUDA configuration via jetpack-nixos - # graphics.enable = true; - - # nvidia-jetpack = { - # enable = true; - # som = "orin-nano"; - # carrierBoard = "devkit"; - # }; - }; - - # Network configuration - networking = { - hostName = "jetson"; - networkmanager.enable = true; - firewall.enable = false; - }; - - # Host-specific SSH configuration - services.openssh = { - settings = { - PermitRootLogin = "no"; - }; - }; - - # Host-specific user configuration - users.users.yanlin = { - extraGroups = [ "networkmanager" "wheel" "video" ]; - hashedPassword = "$6$kSyaRzAtj8VPcNeX$NsEP6zQAfp6O8YWcolfPRKnhIcJlKu5luZgWqozJAHtbE/gv90KoOOKU7Dt.FnbPB0Ej26jXoBH4X.7y/OLGB1"; - openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICp2goZiuSfwMA02GsHhYzUZHrQPPBgP5sWSNP9kQR3e yanlin@imac" - ]; - }; - - # Basic system packages - environment.systemPackages = with pkgs; [ - pciutils - usbutils - ]; - -}