{ description = "charlotte's NixOS flake"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05"; nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; }; outputs = { self, nixpkgs, nixpkgs-unstable, ... }@inputs: { nixosConfigurations = { runestone = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = { user-pkgs = self.packages; unstable-pkgs = nixpkgs-unstable.legacyPackages."x86_64-linux"; }; modules = [ /* ({ config, pkgs, ... }: { nixpkgs.overlays = [ (final: prev: { xdg-desktop-portal-gnome = prev.xdg-desktop-portal-gnome.overrideAttrs (oldAttrs: { patches = (oldAttrs.patches or [ ]) ++ [ ./packages/xdg-desktop-portal-gnome/unattended.patch ]; }); }) ]; }) */ ({ ... }: { system.stateVersion = "24.05"; }) ./profiles/common/base.nix ./profiles/common/locale.nix ./profiles/common/networking.nix ./profiles/common/desktop.nix ./profiles/runestone/hardware-configuration.nix ./profiles/runestone/base.nix ./profiles/runestone/desktop.nix ./profiles/runestone/grafana-prometheus.nix ]; }; opal = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = { user-pkgs = self.packages; unstable-pkgs = nixpkgs-unstable.legacyPackages."x86_64-linux"; }; modules = [ ({ ... }: { system.stateVersion = "24.05"; }) ./profiles/common/base.nix ./profiles/common/locale.nix ./profiles/common/networking.nix ./profiles/common/desktop.nix ./profiles/opal/hardware-configuration.nix ./profiles/opal/base.nix ./profiles/runestone/gnome.nix # TODO: replace with a nice wayland twm or something ]; }; }; packages = import ./packages/default.nix { pkgs = import nixpkgs { system = "x86_64-linux"; }; }; }; }