Switch to xrizer, leaving the messiness in flake.nix
This commit is contained in:
75
flake.nix
75
flake.nix
@ -36,25 +36,62 @@
|
|||||||
|
|
||||||
outputs = { self, nixpkgs, lix-module, home-manager, ...}@inputs:
|
outputs = { self, nixpkgs, lix-module, home-manager, ...}@inputs:
|
||||||
{
|
{
|
||||||
nixosConfigurations.pewter = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.pewter =
|
||||||
system = "x86_64-linux";
|
let
|
||||||
specialArgs = inputs;
|
system = "x86_64-linux";
|
||||||
modules = [
|
xrizer = ({config, pkgs, lib, ... }:
|
||||||
lix-module.nixosModules.default
|
{
|
||||||
./configuration.nix
|
nixpkgs.overlays = [
|
||||||
home-manager.nixosModules.home-manager
|
(final: prev: {
|
||||||
{
|
xrizer =
|
||||||
home-manager.useGlobalPkgs = true;
|
let
|
||||||
home-manager.useUserPackages = true;
|
src = final.fetchFromGitHub {
|
||||||
home-manager.users.abby = ./home.nix;
|
owner = "Mr-Zero88";
|
||||||
home-manager.extraSpecialArgs = {
|
repo = "xrizer";
|
||||||
username = "abby";
|
# IMPORTANT: Fill the below field with the latest commit hash from https://github.com/Mr-Zero88-FBT/xrizer/commits/experimental2 (click the Copy full SHA button on the right side)
|
||||||
inherit inputs;
|
rev = "63f6c00";
|
||||||
system = "x86_64-linux";
|
# IMPORTANT: Replace the below field with the correct hash, the error when building with this empty will give you the expected hash.
|
||||||
};
|
hash = "sha256-ilPNar7sfdQ5aSeypy5BStEGeVAoXtHw/iWLhqKEsPQ=";
|
||||||
}
|
};
|
||||||
];
|
in
|
||||||
};
|
prev.xrizer.overrideAttrs (drv: {
|
||||||
|
cargoDeps = drv.cargoDeps.overrideAttrs {
|
||||||
|
src = src;
|
||||||
|
outputHashMode = "recursive";
|
||||||
|
outputHash = "sha256-Z6zTjiuY4avAH/Bh9kofk+nbmHSSvCXaSCQp++w3cOE=";
|
||||||
|
};
|
||||||
|
patches = [];
|
||||||
|
# cargoSha256 = "";
|
||||||
|
});
|
||||||
|
})
|
||||||
|
];
|
||||||
|
});
|
||||||
|
|
||||||
|
pkgs = import nixpkgs {
|
||||||
|
system = system;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
nixpkgs.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
specialArgs = inputs;
|
||||||
|
modules = [
|
||||||
|
lix-module.nixosModules.default
|
||||||
|
./configuration.nix
|
||||||
|
xrizer
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.users.abby = ./home.nix;
|
||||||
|
|
||||||
|
home-manager.extraSpecialArgs = {
|
||||||
|
username = "abby";
|
||||||
|
inherit inputs;
|
||||||
|
system = system;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
homeConfigurations."abby@copper" =
|
homeConfigurations."abby@copper" =
|
||||||
let
|
let
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
|
|||||||
Reference in New Issue
Block a user