feat(nixos): add initial NixOS and Home Manager configuration
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
|
||||
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/release-26.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
|
||||
import-tree.url = "github:vic/import-tree";
|
||||
|
||||
wrapper-modules.url = "github:BirdeeHub/nix-wrapper-modules";
|
||||
};
|
||||
|
||||
outputs = inputs@{ flake-parts, import-tree, home-manager, ... }:
|
||||
let
|
||||
mkFlake = flake-parts.lib.mkFlake;
|
||||
|
||||
flakeArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
|
||||
flakeConfig = {
|
||||
imports = [
|
||||
home-manager.flakeModules.home-manager
|
||||
(import-tree ./modules)
|
||||
];
|
||||
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
];
|
||||
};
|
||||
in
|
||||
mkFlake flakeArgs flakeConfig;
|
||||
}
|
||||
Reference in New Issue
Block a user