Skip to content

Commit abaefc6

Browse files
committed
feat: cosmic use nixpkgs module
Signed-off-by: Reputable2722 <153411261+Reputable2772@users.noreply.github.com>
1 parent ac36f43 commit abaefc6

1 file changed

Lines changed: 5 additions & 17 deletions

File tree

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
1-
{ inputs, lib, ... }:
2-
let
3-
# Check if nixpkgs.follows = "nixos-cosmic/nixpkgs"
4-
cosmic-enabled = inputs.nixpkgs == inputs.nixos-cosmic.inputs.nixpkgs;
5-
in
6-
lib.optionalAttrs cosmic-enabled {
7-
nix.settings = {
8-
substituters = [ "https://cosmic.cachix.org?priority=50" ];
9-
trusted-public-keys = [ "cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE=" ];
10-
};
11-
imports = [
12-
inputs.nixos-cosmic.nixosModules.default
13-
];
14-
15-
# Uncomment `nixpkgs.follows` line in flake.nix to enable cosmic.
16-
services.desktopManager.cosmic.enable = true;
17-
services.displayManager.cosmic-greeter.enable = true;
1+
{ lib, ... }:
2+
{
3+
services.xserver.enable = lib.mkDefault false;
4+
services.desktopManager.cosmic.enable = false;
5+
services.displayManager.cosmic-greeter.enable = false;
186
}

0 commit comments

Comments
 (0)