flake/hosts/default.nix~
2024-03-26 11:39:16 +00:00

69 lines
1.3 KiB
Nix

{
nixpkgs,
self,
...
}: let
inherit (self) inputs;
bootloader = ../modules/core/bootloader.nix;
core = ../modules/core;
unfree = ../modules/unfree;
hmModule = inputs.home-manager.nixosModules.home-manager;
stylix = inputs.stylix;
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
extraSpecialArgs = {
inherit inputs;
inherit self;
inherit stylix;
};
users.muon = ../modules/home;
};
in {
# desktop
muop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules =
[
{networking.hostName = "muop";}
./muon/hardware-configuration.nix
core
bootloader
unfree
hmModule
#inputs.hyprland.nixosModules.default
# inputs.stylix.nixosModules.stylix
{inherit home-manager;}
];
specialArgs = {
inherit inputs;
};
};
# laptop
muop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules =
[
{networking.hostName = "muop";}
./muop/hardware-configuration.nix
core
bootloader
unfree
hmModule
#inputs.hyprland.nixosModules.default
# inputs.stylix.nixosModules.stylix
{inherit home-manager;}
];
specialArgs = {
inherit inputs;
};
};
}