diff options
| author | Mike Vink <mike1994vink@gmail.com> | 2023-10-06 23:10:55 +0200 |
|---|---|---|
| committer | Mike Vink <mike1994vink@gmail.com> | 2023-10-06 23:10:55 +0200 |
| commit | cfaef26e8718916adcc68fbfb63b15f2389b2cd2 (patch) | |
| tree | 3989af4514d31d0a5cb89e8b96d51210ad7bf152 /flake.nix | |
| parent | 654ec06ab6a885ea851c4cbf68d06a00b41b0e14 (diff) | |
move all the files
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 37 |
1 files changed, 10 insertions, 27 deletions
@@ -3,8 +3,6 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; - mvinkio.url = "github:mvinkio/nixpkgs/nixpkgs-unstable"; - nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-22.05"; sops-nix.url = "github:Mic92/sops-nix"; home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; }; @@ -12,51 +10,36 @@ outputs = inputs@{ self, nixpkgs, - mvinkio, - nixpkgs-stable, home-manager, sops-nix, ... }: let - home = builtins.getEnv "HOME"; - username = builtins.getEnv "USER"; - email = builtins.getEnv "EMAIL"; system = "x86_64-linux"; - mvinkioPkgs = mvinkio.legacyPackages.${system}; - overlay = nixpkgs.lib.composeManyExtensions [ (import ./overlays/vimPlugins.nix {inherit pkgs;}) - (import ./overlays/suckless.nix {inherit pkgs home;}) + (import ./overlays/suckless.nix {inherit pkgs;}) ]; - pkgs = import nixpkgs { overlays = [ overlay ]; inherit system; }; - lib = (nixpkgs.lib.extend (_: _: home-manager.lib)).extend (import ./lib); - in with lib; { inherit lib; nixosConfigurations.lemptop = nixpkgs.lib.nixosSystem { inherit system; - modules = [./configuration.nix ./lemptop.nix sops-nix.nixosModules.sops]; - }; - - homeConfigurations.mike = home-manager.lib.homeManagerConfiguration { - inherit pkgs; - modules = - (attrValues - (attrsets.mergeAttrsList [ - (modulesIn ./home) - (modulesIn ./email) - ])) ++ [./home.nix]; - extraSpecialArgs = { - inherit inputs username email; - }; + modules = [ + ./nixos/configuration.nix + ./nixos/lemptop.nix + ] ++ (attrValues + (attrsets.mergeAttrsList [ + (modulesIn ./profiles/core) + (modulesIn ./profiles/station) + (modulesIn ./profiles/email) + ])); }; templates = { |
