diff options
| author | Mike Vink <mike1994vink@gmail.com> | 2023-10-07 01:33:26 +0200 |
|---|---|---|
| committer | Mike Vink <mike1994vink@gmail.com> | 2023-10-07 01:33:26 +0200 |
| commit | a2cbf737e78051c2cb10eeaf4a5dccc19d6348ba (patch) | |
| tree | f53ab92a0c94926e92117891eb87f19cafaa536c /flake.nix | |
| parent | cfaef26e8718916adcc68fbfb63b15f2389b2cd2 (diff) | |
first working
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 34 |
1 files changed, 17 insertions, 17 deletions
@@ -4,7 +4,10 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; sops-nix.url = "github:Mic92/sops-nix"; - home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; + home-manager = { + url = "github:nix-community/home-manager"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = inputs@{ @@ -15,25 +18,22 @@ ... }: let system = "x86_64-linux"; - overlay = nixpkgs.lib.composeManyExtensions [ - (import ./overlays/vimPlugins.nix {inherit pkgs;}) - (import ./overlays/suckless.nix {inherit pkgs;}) - ]; - pkgs = import nixpkgs { - overlays = [ - overlay - ]; - inherit system; - }; + pkgs = import nixpkgs {inherit system;}; lib = (nixpkgs.lib.extend (_: _: home-manager.lib)).extend (import ./lib); in with lib; { inherit lib; nixosConfigurations.lemptop = nixpkgs.lib.nixosSystem { - inherit system; + inherit lib system; + specialArgs = {inherit inputs;}; modules = [ - ./nixos/configuration.nix - ./nixos/lemptop.nix + ({config, ... }: { + nixpkgs.overlays = with lib; [(composeManyExtensions [ + (import ./overlays/vimPlugins.nix {inherit pkgs;}) + (import ./overlays/suckless.nix {inherit pkgs; home = config.users.users.mike.home;}) + ])]; + }) + ./machines/lemptop.nix ] ++ (attrValues (attrsets.mergeAttrsList [ (modulesIn ./profiles/core) @@ -45,15 +45,15 @@ templates = { default = { path = ./templates/flake; - description = "Flake with python and go stuff"; + description = "Python and go stuff"; }; ansible = { path = ./templates/ansible; - description = "Flake with ansible and shellhook to login to awx"; + description = "Ansible and shellhook to login to awx"; }; go = { path = ./templates/go; - description = "Flake with go, gotools, and gofumpt"; + description = "Go, gotools, and gofumpt"; }; }; }; |
