commit d9956a81f96cf6e120eb8fe50df798b1e85cc1f2 Author: Sandro Jäckel Date: Wed Apr 26 00:09:24 2023 +0200 Init flake diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..f6a8134 --- /dev/null +++ b/flake.lock @@ -0,0 +1,44 @@ +{ + "nodes": { + "jovian": { + "flake": false, + "locked": { + "lastModified": 1682442245, + "narHash": "sha256-k1DlJCHQgEix/Be8m4MZlNYWocv7NxlPiLcPTXgcs+w=", + "owner": "Jovian-Experiments", + "repo": "Jovian-NixOS", + "rev": "4fe665707364b3c4228f66895f1b6316634ceabc", + "type": "github" + }, + "original": { + "owner": "Jovian-Experiments", + "repo": "Jovian-NixOS", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1682303062, + "narHash": "sha256-x+KAADp27lbxeoPXLUMxKcRsUUHDlg+qVjt5PjgBw9A=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "f5364316e314436f6b9c8fd50592b18920ab18f9", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-22.11", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "jovian": "jovian", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..7a7186b --- /dev/null +++ b/flake.nix @@ -0,0 +1,44 @@ +{ + description = "A very basic flake"; + + inputs = { + jovian = { + url = "github:Jovian-Experiments/Jovian-NixOS"; + flake = false; + }; + + nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11"; + }; + + outputs = { jovian, nixpkgs, ... }: + 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"; + }; + }; +}