From 4218e90468ad3e9294a1a04a3411b25a13daa095 Mon Sep 17 00:00:00 2001 From: Julian Date: Sun, 18 Dec 2022 22:32:40 -0800 Subject: [PATCH] flakes! --- configuration.nix | 9 +++++++-- flake.nix | 12 ++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 flake.nix 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 + ]; + }; + }; +}