mirror of
https://github.com/EdenQwQ/nixos.git
synced 2025-12-26 10:14:58 +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
|
||||
{ _module.args = { inherit inputs self nixpkgs; }; }
|
||||
];
|
||||
flake = {
|
||||
homeManagerModules = import ./modules/home-manager;
|
||||
overlays = import ./overlays { inherit inputs self; };
|
||||
};
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
packages = import ./pkgs { inherit pkgs; };
|
||||
treefmt = {
|
||||
projectRootFile = "flake.nix";
|
||||
programs.nixfmt.enable = true;
|
||||
|
|
|
|||
|
|
@ -31,10 +31,6 @@ in
|
|||
user = "eden";
|
||||
in
|
||||
{
|
||||
overlays = import ../overlays { inherit inputs; };
|
||||
|
||||
homeManagerModules = import ../modules/home-manager;
|
||||
|
||||
nixosConfigurations.${host} = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue