summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorozpv <39195175+ozpv@users.noreply.github.com>2024-02-25 17:47:40 -0600
committerGitHub <noreply@github.com>2024-02-25 17:47:40 -0600
commitbb675fe4b438a56c461b73283733efccd73b53d2 (patch)
treee15b3d2f146a77813710a07372d98d51b64900a6 /flake.nix
parentdf9191b6c4b9c0cf03bb959f777e9ca4a2cee395 (diff)
init
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..2544357
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,29 @@
+{
+ description = "Nixos config flake";
+
+ inputs = {
+ nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
+
+ home-manager = {
+ url = "github:nix-community/home-manager";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
+ };
+
+ outputs = { self, nixpkgs, ... }@inputs:
+ let
+ system = "x86_64-linux";
+ pkgs = nixpkgs.legacyPackages.${system};
+ in
+ {
+
+ nixosConfigurations.default = nixpkgs.lib.nixosSystem {
+ specialArgs = {inherit inputs;};
+ modules = [
+ ./configuration.nix
+ inputs.home-manager.nixosModules.default
+ ];
+ };
+
+ };
+}