buncha changes
This commit is contained in:
32
modules/nixos/cosmic-desktop/default.nix
Normal file
32
modules/nixos/cosmic-desktop/default.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user