diff --git a/README.org b/README.org index 28845a7..8f4087b 100644 --- a/README.org +++ b/README.org @@ -107,11 +107,11 @@ NixOS[fn:4] is a purely functional Linux distribution built on top of the Nix[fn nixosConfigurations = { <> <> - <> - <> <> + <> <> <> + <> }; }; } @@ -707,37 +707,9 @@ This section is very much a work in progress. I have struggled to get this devic } #+END_SRC -** TODO Android - -This is my Samsung Galaxy S10+[fn:23] running Nix On Droid[fn:10] with the experimental support for Flakes being used to manage the configuration. - -#+NAME: host-android -#+BEGIN_SRC nix -android = (inputs.nix-on-droid.lib.aarch64-linux.nix-on-droid { - config = ./hosts/android/nix-on-droid.nix; -}).activationPackage; -#+END_SRC - -Build the activation package with ~nix build .#android --impure~, and activate it with =result/activate=. - -#+BEGIN_SRC nix :noweb yes :tangle hosts/android/nix-on-droid.nix -# <> -{ pkgs, ... }: - -{ - environment.packages = [ - pkgs.git - pkgs.vim - pkgs.pass - pkgs.gnupg - pkgs.openssh - ]; -} -#+END_SRC - ** TODO Homecloud -The Raspberry Pi Model B-8GB[fn:24] is the latest product in the popular Raspberry Pi range of computers. It offers groundbreaking increases in processor speed, multimedia performance, memory, and connectivity compared to the prior generation. On NixOS[fn:4], the Raspberry Pi family is /only/ supported on the =AArch64= platform, although there is community support for =armv6l= and =armv7l=. +The Raspberry Pi Model B-8GB[fn:23] is the latest product in the popular Raspberry Pi range of computers. It offers groundbreaking increases in processor speed, multimedia performance, memory, and connectivity compared to the prior generation. On NixOS[fn:4], the Raspberry Pi family is /only/ supported on the =AArch64= platform, although there is community support for =armv6l= and =armv7l=. #+NAME: host-homecloud #+BEGIN_SRC nix :noweb yes @@ -816,6 +788,34 @@ zero-two = nixpkgs.lib.nixosSystem { }; #+END_SRC +** TODO Android + +This is my Samsung Galaxy S10+[fn:24] running Nix On Droid[fn:10] with the experimental support for Flakes being used to manage the configuration. + +#+NAME: host-android +#+BEGIN_SRC nix +android = (inputs.nix-on-droid.lib.aarch64-linux.nix-on-droid { + config = ./hosts/android/nix-on-droid.nix; +}).activationPackage; +#+END_SRC + +Build the activation package with ~nix build .#android --impure~, and activate it with =result/activate=. + +#+BEGIN_SRC nix :noweb yes :tangle hosts/android/nix-on-droid.nix +# <> +{ pkgs, ... }: + +{ + environment.packages = [ + pkgs.git + pkgs.vim + pkgs.pass + pkgs.gnupg + pkgs.openssh + ]; +} +#+END_SRC + * Module Definitions Modules are files combined by NixOS[fn:4] to produce the full system configuration. Modules wre introduced to allow extending NixOS[fn:4] without modifying its source code. They also allow splitting up =configuration.nix=, making the system configuration easier to maintain and use. @@ -2678,9 +2678,9 @@ Doom Modeline[fn:79] is a fancy and fast modeline inspired by minimalism design. [fn:22] https://raspberrypi.org/products/raspberry-pi-400/ -[fn:23] https://samsung.com/us/mobile/galaxy-s10/buy/ +[fn:23] https://www.raspberrypi.org/products/raspberry-pi-4-model-b/ -[fn:24] https://www.raspberrypi.org/products/raspberry-pi-4-model-b/ +[fn:24] https://samsung.com/us/mobile/galaxy-s10/buy/ [fn:25] https://x.org/wiki/ diff --git a/flake.nix b/flake.nix index 2448ac8..b0d5233 100644 --- a/flake.nix +++ b/flake.nix @@ -65,20 +65,6 @@ } ]; }; - android = (inputs.nix-on-droid.lib.aarch64-linux.nix-on-droid { - config = ./hosts/android/nix-on-droid.nix; - }).activationPackage; - homecloud = nixpkgs.lib.nixosSystem { - system = "aarch64-linux"; - specialArgs = { inherit inputs; }; - modules = [ - ./hosts/homecloud - ./modules/flakes.nix - ./modules/cachix.nix - ./modules/docker.nix - ./modules/jellyfin.nix - ]; - }; raspberry = nixpkgs.lib.nixosSystem { system = "aarch64-linux"; specialArgs = { inherit inputs; }; @@ -101,6 +87,17 @@ } ]; }; + homecloud = nixpkgs.lib.nixosSystem { + system = "aarch64-linux"; + specialArgs = { inherit inputs; }; + modules = [ + ./hosts/homecloud + ./modules/flakes.nix + ./modules/cachix.nix + ./modules/docker.nix + ./modules/jellyfin.nix + ]; + }; zero-one = nixpkgs.lib.nixosSystem { system = "armv7l-linux"; specialArgs = { inherit inputs; }; @@ -119,6 +116,9 @@ ./modules/cachix.nix ]; }; + android = (inputs.nix-on-droid.lib.aarch64-linux.nix-on-droid { + config = ./hosts/android/nix-on-droid.nix; + }).activationPackage; }; }; }