commit ba1f4a32c4a0f18fd46009d41577b50b82763c70 Author: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Tue Jul 11 00:14:27 2023 -0700 copy based off current configuration.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..70a6a6d --- /dev/null +++ b/flake.lock @@ -0,0 +1,41 @@ +{ + "nodes": { + "nixos-hardware": { + "locked": { + "lastModified": 1688966833, + "narHash": "sha256-9ilzbSwArZmDjT/g1XYD+KYOFfmoS0WOYXSQBvZDIv4=", + "owner": "NixOS", + "repo": "nixos-hardware", + "rev": "f0984a5a303659bc9b73895c82a85fdfae40b87a", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixos-hardware", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1688981480, + "narHash": "sha256-AYgIAotBA5C+55PjXKck8cpDgWYrUYsTMpMxH1bZ7/M=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "b9ebd80c7dbcdec2240c5baae334365eaf3d7230", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "nixos-hardware": "nixos-hardware", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..79b7adf --- /dev/null +++ b/flake.nix @@ -0,0 +1,35 @@ +{ + description = "we say NO to shitty OSes"; + + inputs = { + nixos-hardware.url = "github:NixOS/nixos-hardware"; + }; + + outputs = { pkgs, ... }@inputs: + let + base = ./systems/BASED.nix; + nixos-hw = inputs.nixos-hardware.nixosModules; + in + { + nixosConfigurations = { + NOcomputer = pkgs.lib.nixosSystem [ + base + nixos-hw.common-cpu-amd + nixos-hw.common-gpu-nvidia + ./systems/NOcomputer.nix + ./uwuraid.nix + ./gaming.nix + ./users/tao.nix + ]; + NOlaptop = pkgs.lib.nixosSystem [ + # inputs.nixos-hardware.nixosModules.framework + base + ./systems/NOlaptop.nix + ./uwuraid.nix + ./gaming.nix + ./users/tao.nix + ]; + }; + + }; +}