add desktop and laptop config option

This commit is contained in:
Frost-Phoenix 2024-04-13 13:43:59 +02:00
parent 04e4aa6164
commit ff99a6803a
8 changed files with 63 additions and 45 deletions

View file

@ -37,14 +37,29 @@
};
outputs = { nixpkgs, self, ...} @ inputs:
let
selfPkgs = import ./pkgs;
username = "frostphoenix";
in
{
overlays.default = selfPkgs.overlay;
nixosConfigurations = import ./modules/core/default.nix {
inherit self nixpkgs inputs username;
let
selfPkgs = import ./pkgs;
username = "frostphoenix";
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
lib = nixpkgs.lib;
in
{
overlays.default = selfPkgs.overlay;
nixosConfigurations = {
desktop = nixpkgs.lib.nixosSystem {
inherit system;
modules = [ (import ./hosts/desktop) ];
specialArgs = { host="desktop"; inherit self inputs username ; };
};
laptop = nixpkgs.lib.nixosSystem {
inherit system;
modules = [ (import ./hosts/laptop) ];
specialArgs = { host="laptop"; inherit self inputs username ; };
};
};
};
}