Skip to content

Commit

Permalink
fix: pinpoint kernel to allow rebuilding, seperate phoenix-arm
Browse files Browse the repository at this point in the history
  • Loading branch information
Creator54 committed Sep 17, 2024
1 parent 92a752d commit ec288ab
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 6 deletions.
31 changes: 25 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
specialArgs = { inherit inputs; };
system = "x86_64-linux";
modules = [
./modules/configs/minimal
./modules/configs/minimal
./systems/server/configuration.nix
inputs.home-manager.nixosModules.default
];
Expand All @@ -41,7 +41,17 @@
system = "x86_64-linux";
modules = [
./systems/phoenix
./modules/configs/minimal
./modules/configs/minimal
inputs.home-manager.nixosModules.default
];
};

phoenix-arm = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
system = "aarch64-linux";
modules = [
./systems/phoenix
./modules/configs/minimal
inputs.home-manager.nixosModules.default
];
};
Expand All @@ -51,21 +61,21 @@
system = "x86_64-linux";
modules = [
./systems/blade
./modules/configs/minimal
./modules/configs/minimal
inputs.nix-snapd.nixosModules.default
inputs.home-manager.nixosModules.default
inputs.nix-flatpak.nixosModules.nix-flatpak
inputs.nix-flatpak.nixosModules.nix-flatpak
];
};
cospi = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
system = "x86_64-linux";
modules = [
./systems/cospi
./modules/configs/full
./modules/configs/full
inputs.nix-snapd.nixosModules.default
inputs.home-manager.nixosModules.default
inputs.nix-flatpak.nixosModules.nix-flatpak
inputs.nix-flatpak.nixosModules.nix-flatpak
];
};
};
Expand All @@ -88,6 +98,15 @@
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.phoenix;
};
};

phoenix-arm = {
hostname = "phoenix"; #should be same in ~/.ssh/config
sshUser = "root"; #should be same in ~/.ssh/config
profiles.system = {
user = "root";
path = inputs.deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.phoenix;
};
};
};

# This is highly advised, and will prevent many possible mistakes
Expand Down
10 changes: 10 additions & 0 deletions systems/server/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ in
];

environment.systemPackages = with pkgs; [ cachix home-manager ];
boot.kernelPackages = pkgs.linuxPackagesFor (pkgs.linux_6_1.override {
argsOverride = rec {
src = pkgs.fetchurl {
url = "mirror://kernel/linux/kernel/v6.x/linux-${version}.tar.xz";
sha256 = "sha256-XrRwb4mPUIgVUv9RRtiSEy0//FKYAzv/4nCH06RMRXM=";
};
version = "6.1.103";
modDirVersion = "6.1.103";
};
});
boot.tmp.cleanOnBoot = true;

networking = {
Expand Down

0 comments on commit ec288ab

Please sign in to comment.