diff --git a/configuration.nix b/configuration.nix index 392719b..cd14931 100644 --- a/configuration.nix +++ b/configuration.nix @@ -6,8 +6,8 @@ { imports = - [ # Include the results of the hardware scan. ./hardware-configuration.nix + ./flake.nix ]; # Bootloader. @@ -18,6 +18,11 @@ # Kernel boot.kernelPackages = pkgs.linuxPackages_latest; + # Flakes + { pkgs, ... }: { + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + } + # Power Stuff services.power-profiles-daemon.enable = false; services.tlp = { @@ -97,7 +102,7 @@ kleopatra pinentry arc-theme - zoom + zoom-us slack ]; }; diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..951e4fe --- /dev/null +++ b/flake.nix @@ -0,0 +1,12 @@ +{ + description = "NixOS configuration with flakes"; + inputs.nixos-hardware.url = "github:NixOS/nixos-hardware/master"; + + outputs = { self, nixpkgs, nixos-hardware }: { + nixosConfigurations. = nixpkgs.lib.nixosSystem { + modules = [ + nixos-hardware.nixosModules.framework + ]; + }; + }; +}