2023-04-26 00:09:24 +02:00
|
|
|
{
|
|
|
|
description = "A very basic flake";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
jovian = {
|
|
|
|
url = "github:Jovian-Experiments/Jovian-NixOS";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
|
|
|
|
};
|
|
|
|
|
2023-04-26 00:16:11 +02:00
|
|
|
outputs = { self, jovian, nixpkgs }:
|
2023-04-26 00:09:24 +02:00
|
|
|
let inherit (nixpkgs) lib; in
|
|
|
|
{
|
|
|
|
nixosConfigurations.jovian = lib.nixosSystem {
|
|
|
|
modules = [
|
|
|
|
"${jovian}/modules"
|
|
|
|
|
|
|
|
{
|
|
|
|
# avoid asserts ...
|
|
|
|
boot.loader.grub.devices = [ "/dev/sda" ];
|
|
|
|
fileSystems."/".device = "/dev/sda1";
|
|
|
|
|
|
|
|
# ... and warnings ...
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
system.stateVersion = "23.05";
|
|
|
|
|
|
|
|
# ... and build unfree packages
|
|
|
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
|
|
|
"steam"
|
|
|
|
"steam-jupiter-original"
|
|
|
|
"steam-run"
|
|
|
|
"steamdeck-hw-theme"
|
|
|
|
];
|
|
|
|
|
|
|
|
jovian.steam.enable = true;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
system = "x86_64-linux";
|
|
|
|
};
|
2023-04-26 00:16:11 +02:00
|
|
|
|
|
|
|
hydraJobs.jovian = lib.hydraJob self.nixosConfigurations.jovian.config.system.build.toplevel;
|
2023-04-26 00:09:24 +02:00
|
|
|
};
|
|
|
|
}
|