Kieran's opinionated (and probably slightly dumb) nix config
1{
2 description = "Kieran's opinionated (and probably slightly dumb) nix config";
3
4 inputs = {
5 # Nixpkgs
6 nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
7
8 # NixOS hardware configuration
9 hardware.url = "github:NixOS/nixos-hardware/master";
10
11 # Home manager
12 home-manager.url = "github:nix-community/home-manager/release-23.11";
13 home-manager.inputs.nixpkgs.follows = "nixpkgs";
14
15 # hyprland nix
16 hyprland-nix.url = "github:hyprland-community/hyprnix";
17
18 disko.url = "github:nix-community/disko";
19 disko.inputs.nixpkgs.follows = "nixpkgs";
20 };
21
22 outputs = {
23 self,
24 nixpkgs,
25 home-manager,
26 nixos-hardware,
27 ...
28 } @ inputs: let
29 inherit (self) outputs;
30 in {
31 # NixOS configuration entrypoint
32 # Available through 'nixos-rebuild --flake .#your-hostname'
33 nixosConfigurations = {
34 moonlark = nixpkgs.lib.nixosSystem {
35 system = "x86_64-linux";
36 specialArgs = {inherit inputs outputs;};
37 # > Our main nixos configuration file <
38 modules = [
39 inputs.disko.nixosModules.disko
40 { disko.devices.disk.disk1.device = "/dev/vda"; }
41 ./moonlark/configuration.nix
42 ];
43 };
44 };
45 };
46}