summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin Finlinson <devin.finlinson@pm.me>2024-05-25 00:26:08 -0600
committerDevin Finlinson <devin.finlinson@pm.me>2024-05-25 00:26:08 -0600
commitedd47d163dc7473bfe098a7fc0926cc0b11640c4 (patch)
tree13f008c167fae6daa2e75ee3852ad32910dc081b
parent93aab3ea92b34b7683efa5d7d4ce40bb9b28c92d (diff)
trying out nixos generators again
-rw-r--r--flake.lock10
-rw-r--r--flake.nix9
-rw-r--r--machines/zenbook/configuration.nix1
3 files changed, 11 insertions, 9 deletions
diff --git a/flake.lock b/flake.lock
index b3b4d3e..24313ff 100644
--- a/flake.lock
+++ b/flake.lock
@@ -369,15 +369,15 @@
"nushell-scripts": {
"flake": false,
"locked": {
- "lastModified": 1716399661,
- "narHash": "sha256-dFEr4tntEPMiwrBYeyWQbkkqu5xsXMYyEj7mJ3Kp7yw=",
- "owner": "nushell",
+ "lastModified": 1716413736,
+ "narHash": "sha256-V2GL14M+MudPse1WFNhPL6Uvqjfm85n4J6dZki6uvzE=",
+ "owner": "doolphin",
"repo": "nu_scripts",
- "rev": "407a313bbb13bd5ce2de16768ab2ebec7c111657",
+ "rev": "3958f0ba7e3fd2762a01d6bb003fdfd4dd7598d8",
"type": "github"
},
"original": {
- "owner": "nushell",
+ "owner": "doolphin",
"repo": "nu_scripts",
"type": "github"
}
diff --git a/flake.nix b/flake.nix
index 3eedbae..559ba19 100644
--- a/flake.nix
+++ b/flake.nix
@@ -133,20 +133,21 @@
};
outputs = inputs@{ self, ...}: with inputs; {
- packages.x86_64-linux = {
+ packages.aarch64-linux = {
# packages.x86_64-linux = {
- ISO = nixos-generators.nixosGenerate {
+ aarch64-installer = nixos-generators.nixosGenerate {
system = "aarch64-linux";
+ networking.hostname = "raspi";
modules = [
./modules/users/defin.nix
./modules/nixos/system-packages.nix
];
- format = "install-iso";
+ format = "sd-aarch64-installer";
};
};
# let
# inherit (self) outputs;
- # lib = nixpkgs.lib //home-manager.lib;
+ # lib = nixpkgs.lib //home-manager.lib;
# systems = [ "x86_64-linux" ];
# forEachSystem = f: lib.genAttrs systems (system: f pkgsFor.${system});
# pkgsFor = lib.genAttrs systems (system: import nixpkgs {
diff --git a/machines/zenbook/configuration.nix b/machines/zenbook/configuration.nix
index 774400e..c757346 100644
--- a/machines/zenbook/configuration.nix
+++ b/machines/zenbook/configuration.nix
@@ -16,6 +16,7 @@
efi.canTouchEfiVariables = true;
};
kernelPackages = pkgs.linuxPackages_latest; # use latest kernel
+ binfmt.emulatedSystems = ["aarch64-linux"];
};
nix.settings = {