From 5cdb4e421a809de51c3ebe8404e50d732721238b Mon Sep 17 00:00:00 2001 From: Akshay Date: Sun, 26 Sep 2021 21:26:36 +0530 Subject: init --- flake.nix | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..330ca03 --- /dev/null +++ b/flake.nix @@ -0,0 +1,52 @@ +{ + description = "nerdypepper's nixos config"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.05"; + nixos-hardware.url = "github:nixos/nixos-hardware"; + home-manager = { + url = "github:nix-community/home-manager/release-21.05"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + neovim.url = "github:nix-community/neovim-nightly-overlay"; + }; + + outputs = + { self + , nixpkgs + , nixos-hardware + , home-manager + , neovim + , ... + } @ inputs: { + + overlays = { + nvim-nightly = neovim.overlay; + }; + + nixosConfigurations = { + olive = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + { + imports = [ ./hosts/olive/configuration.nix ]; + _module.args.self = self; + } + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.np = { + imports = [ ./home.nix ]; + _module.args.self = self; + _module.args.inputs = inputs; + _module.args.theme = import ./theme.nix; + }; + } + ]; + }; + }; + + }; + +} -- cgit v1.2.3