diff --git a/configuration.nix b/configuration.nix index 60b6b88..7125e43 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,5 +1,5 @@ # Edit this configuration file to define what should be installed on your system. Help is available in the configuration.nix(5) man page, on https://search.nixos.org/options and in the NixOS manual (`nixos-help`). -{ config, lib, pkgs, ... }: +{ config, lib, pkgs, inputs, ... }: { imports = @@ -9,6 +9,7 @@ ]; nixpkgs.config.allowUnfree = true; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; programs.hyprland.enable = true; programs.steam = { diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..4bc6b57 --- /dev/null +++ b/flake.nix @@ -0,0 +1,20 @@ +{ + description = "Default NixOS Flake Configuration"; + + inputs = { + # The primary source for packages + nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11"; + + # Optional: Unstable branch for things like Ollama or Hyprland + nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; + }; + + outputs = { self, nixpkgs, nixpkgs-unstable, ... }@inputs: { + nixosConfigurations.alien = nixpkgs.lib.nixosSystem { + specialArgs = { inherit inputs; }; + modules = [ + ./configuration.nix + ]; + }; + }; +} \ No newline at end of file