attempt to make github do the building for me :)

This commit is contained in:
LavaDesu 2021-05-27 23:09:18 +07:00
parent 97b5f44872
commit 5dc93272cd
Signed by: cilly
GPG key ID: 6500251E087653C9
5 changed files with 61 additions and 13 deletions

35
.github/workflows/cachix.yml vendored Normal file
View file

@ -0,0 +1,35 @@
name: Cachix build
on:
push:
workflow_dispatch:
jobs:
linux:
name: Build Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v13
with:
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-3.0pre20201007_5257a25/install
extra_nix_config: experimental-features = nix-command flakes
- uses: cachix/cachix-action@v10
with:
name: lava
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build .#linux-lava
wine:
name: Build Wine
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v13
with:
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-3.0pre20201007_5257a25/install
extra_nix_config: experimental-features = nix-command flakes
- uses: cachix/cachix-action@v10
with:
name: lava
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build .#wine-osu

View file

@ -12,6 +12,7 @@
base = {
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
nix.registry.nixpkgs.flake = nixpkgs;
nixpkgs.overlays = builtins.attrValues overlays;
};
hm-base = {
home-manager.useGlobalPkgs = true;
@ -44,7 +45,17 @@
./hosts/winter
secrets.nixosModules.winter
];
specialArgs = { inherit inputs overlays; };
specialArgs = { inherit overlays; };
};
packages.x86_64-linux =
let
pkgs = import nixpkgs {
overlays = builtins.attrValues overlays;
system = "x86_64-linux";
};
in {
inherit (pkgs) linux-lava wine-osu;
};
};
}

View file

@ -23,20 +23,22 @@
../../users/rin
];
nix = {
nix = rec {
package = pkgs.nixUnstable;
binaryCaches = [
"https://cache.nixos.org?priority=10"
"https://lava.cachix.org"
];
binaryCachePublicKeys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"lava.cachix.org-1:8lTWI/3IKWHByzzYHZySunMPYs2eAJw2duL+uLZkSy0="
];
trustedBinaryCaches = binaryCaches;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
nixpkgs.overlays = with overlays; [
discord
linux
polybar
picom
wine-osu
winetricks
];
nixpkgs.config.allowUnfree = true;
i18n.defaultLocale = "en_GB.UTF-8";

View file

@ -28,7 +28,7 @@
"intel_pstate=passive"
"msr.allow_writes=on"
];
kernelPackages = pkgs.lib.mkForce pkgs.linux-lava;
kernelPackages = pkgs.lib.mkForce (pkgs.linuxPackagesFor pkgs.linux-lava);
};
zramSwap.enable = true;
}

View file

@ -1,5 +1,5 @@
self: super: {
linux-lava = super.linuxPackagesFor ((super.linuxManualConfig (
linux-lava = (super.linuxManualConfig (
let
major = "5";
minor = "11";
@ -71,5 +71,5 @@ self: super: {
ia32Emulation = true;
};
};
}));
});
}