mirror of
https://github.com/EdenQwQ/nixos.git
synced 2026-02-04 04:03:23 +08:00
treewide: use a more proper structure
This commit is contained in:
parent
7f7f5df90d
commit
54c0263efe
2 changed files with 5 additions and 4 deletions
|
|
@ -14,9 +14,14 @@
|
||||||
inputs.treefmt-nix.flakeModule
|
inputs.treefmt-nix.flakeModule
|
||||||
{ _module.args = { inherit inputs self nixpkgs; }; }
|
{ _module.args = { inherit inputs self nixpkgs; }; }
|
||||||
];
|
];
|
||||||
|
flake = {
|
||||||
|
homeManagerModules = import ./modules/home-manager;
|
||||||
|
overlays = import ./overlays { inherit inputs self; };
|
||||||
|
};
|
||||||
perSystem =
|
perSystem =
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
packages = import ./pkgs { inherit pkgs; };
|
||||||
treefmt = {
|
treefmt = {
|
||||||
projectRootFile = "flake.nix";
|
projectRootFile = "flake.nix";
|
||||||
programs.nixfmt.enable = true;
|
programs.nixfmt.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -31,10 +31,6 @@ in
|
||||||
user = "eden";
|
user = "eden";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
overlays = import ../overlays { inherit inputs; };
|
|
||||||
|
|
||||||
homeManagerModules = import ../modules/home-manager;
|
|
||||||
|
|
||||||
nixosConfigurations.${host} = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.${host} = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit
|
inherit
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue