reorg
This commit is contained in:
parent
fe3dde6667
commit
d37834a164
30 changed files with 245 additions and 179 deletions
36
flake.nix
36
flake.nix
|
|
@ -19,11 +19,33 @@
|
|||
};
|
||||
outputs = { self, nixpkgs, home-manager, nixos-hardware, nvim, ... } @inputs:
|
||||
let
|
||||
username = "e";
|
||||
in {
|
||||
nixosConfigurations = ( import ./nixos { inherit inputs; } );
|
||||
homeConfigurations = (
|
||||
import ./home { inherit inputs; }
|
||||
);
|
||||
attrs = {
|
||||
username = "e";
|
||||
};
|
||||
}
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
overlays = [
|
||||
(final: prev: {
|
||||
inherit (inputs.nvim.packages.${final.system}) full;
|
||||
inherit (inputs.tfa.packages.${final.system}) twofa;
|
||||
})
|
||||
];
|
||||
};
|
||||
in {
|
||||
nixosConfigurations = (
|
||||
import ./nixos { inherit inputs pkgs attrs; }
|
||||
);
|
||||
homeConfigurations = (
|
||||
import ./home-manager { inherit inputs pkgs attrs; }
|
||||
);
|
||||
devShells.${system}.default = pkgs.mkShell {
|
||||
buildInputs = [
|
||||
pkgs.nix
|
||||
pkgs.home-manager
|
||||
pkgs.git
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue