33 lines
815 B
Nix
33 lines
815 B
Nix
{ config
|
|
, lib
|
|
, inputs
|
|
, pkgs
|
|
, ...
|
|
}:
|
|
let
|
|
inherit (lib) mkEnableOption mkIf;
|
|
inherit (lib.my-namespace) disabled enabled;
|
|
|
|
cfg = config.my-namespace.cosmic-desktop;
|
|
# moduleImports = {
|
|
# "enabled" = [inputs.nixos-cosmic.nixosModules.default];
|
|
# "disabled" = [];
|
|
# };
|
|
# optionalImports = { imports = []; };
|
|
in
|
|
{
|
|
options.my-namespace.cosmic-desktop = {
|
|
enable = mkEnableOption "Enable nvidia";
|
|
};
|
|
imports = [ inputs.nixos-cosmic.nixosModules.default ];
|
|
config = mkIf cfg.enable {
|
|
nix.settings = {
|
|
substituters = [ "https://cosmic.cachix.org/" ];
|
|
trusted-public-keys = [ "cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE=" ];
|
|
};
|
|
|
|
services.desktopManager.cosmic.enable = true;
|
|
services.displayManager.cosmic-greeter.enable = true;
|
|
};
|
|
}
|