Former-commit-id: cd7db37ccd
This commit is contained in:
Hadi
2024-07-06 00:35:41 +02:00
parent 60652a60df
commit c6fee1ccd6
6 changed files with 276 additions and 76 deletions

View File

@@ -24,9 +24,10 @@
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
nurpkgs.url = "github:nix-community/NUR";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
neorg-overlay.url = "github:nvim-neorg/nixpkgs-neorg-overlay";
};
outputs = inputs@{ nixpkgs, nur, ... }: {
outputs = inputs@{ nixpkgs, ... }: {
nixosConfigurations = {
nixy = nixpkgs.lib.nixosSystem {
@@ -36,7 +37,8 @@
inputs.nixos-hardware.nixosModules.omen-16-n0005ne
inputs.home-manager.nixosModules.home-manager
{
nixpkgs.overlays = [ nur.overlay ];
nixpkgs.overlays =
[ inputs.nurpkgs.overlay inputs.neorg-overlay.overlays.default ];
_module.args = { inherit inputs; };
home-manager = {
useGlobalPkgs = true;
@@ -55,7 +57,7 @@
./hosts/server/configuration.nix
inputs.home-manager.nixosModules.home-manager
{
nixpkgs.overlays = [ nur.overlay ];
nixpkgs.overlays = [ inputs.nurpkgs.overlay ];
_module.args = { inherit inputs; };
home-manager = {
useGlobalPkgs = true;
@@ -67,25 +69,6 @@
];
};
yourhostname = nixpkgs.lib.nixosSystem { # CHANGEME
system = "x86_64-linux";
modules = [
./hosts/yourhostname/configuration.nix # CHANGEME
inputs.home-manager.nixosModules.home-manager
{
nixpkgs.overlays = [ nur.overlay ];
_module.args = { inherit inputs; };
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users."yourusername" = import # CHANGEME
./hosts/yourhostname/home.nix; # CHANGEME
extraSpecialArgs = { inherit inputs; };
};
}
];
};
};
};
}