home: add a way to differentiate bw laptop and desktop

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2024-05-28 06:54:29 +05:30
parent 510cc18de3
commit 48e46b465f
2 changed files with 10 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ in
{
natto-laptop = inputs.home-manager.lib.homeManagerConfiguration {
modules = nattoModules ++ [
{ laptop = true; }
{ natto.laptop = true; }
];
pkgs = mkPkgs "x86_64-linux";
};

9
home/modules/laptop.nix Normal file
View File

@@ -0,0 +1,9 @@
{ lib, ... }:
{
options.natto.laptop = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Whether this device is a laptop or not";
};
}