From 56992b8c945d497a623fe693847c91235be1ae02 Mon Sep 17 00:00:00 2001 From: sefidel Date: Tue, 28 Dec 2021 01:11:25 +0900 Subject: initial commit --- flake.nix | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..1abccf3 --- /dev/null +++ b/flake.nix @@ -0,0 +1,42 @@ +{ + description = "boopy's nix flake dotfiles"; + + inputs = { + # Flake inputs + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable-small"; + master.url = "github:nixos/nixpkgs/master"; + + # https://github.com/nix-community/home-manager/issues/2546 + home-manager.url = "github:nix-community/home-manager?rev=9de77227d7780518cfeaee5a917970247f3ecc56"; + home-manager.inputs.nixpkgs.follows = "nixpkgs"; + + sops-nix.url = "github:Mic92/sops-nix"; + sops-nix.inputs.nixpkgs.follows = "nixpkgs"; + + neovim.url = "github:neovim/neovim?dir=contrib"; + neovim.inputs.nixpkgs.follows = "nixpkgs"; + + # https://github.com/NixOS/nix/pull/5342 + nixpkgs-extra.url = "git+https://git.sr.ht/~boppy/nixpkgs-extra?ref=main"; + nixpkgs-extra.inputs.nixpkgs.follows = "nixpkgs"; + + wallpapers = { url = "git+https://git.sr.ht/~boppy/wall?ref=main"; flake = false; }; + }; + + outputs = { self, nixpkgs, ... } @ inputs: + { + nixosModules = import ./nixos/modules; + nixosConfigurations = import ./nixos/configurations inputs; + + homeModules = import ./home/modules; + homeConfigurations = import ./home/configurations inputs; + + packages.x86_64-linux = (import ./packages inputs) + // self.lib.nixosConfigurationsAsPackages.x86_64-linux + // self.lib.homeConfigurationsAsPackages.x86_64-linux; + + checks = self.packages; + + lib = import ./lib inputs; + }; +} -- cgit 1.4.1