Skip to content

Commit

Permalink
nixos,flake,readme: rename options to be outside of services.xserver
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyinstarlight committed Mar 17, 2024
1 parent 71fd90b commit 9332bcd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
"${builtins.toString modulesPath}/virtualisation/qemu-vm.nix"
];

services.xserver.desktopManager.cosmic.enable = true;
services.xserver.displayManager.cosmic-greeter.enable = true;
services.desktopManager.cosmic.enable = true;
services.displayManager.cosmic-greeter.enable = true;

services.flatpak.enable = true;

Expand Down
4 changes: 2 additions & 2 deletions nixos/cosmic-greeter/module.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{ config, pkgs, lib, ... }:

let
cfg = config.services.xserver.displayManager.cosmic-greeter;
cfg = config.services.displayManager.cosmic-greeter;
in
{
meta.maintainers = with lib.maintainers; [ nyanbinary lilyinstarlight ];

options.services.xserver.displayManager.cosmic-greeter = {
options.services.displayManager.cosmic-greeter = {
enable = lib.mkEnableOption (lib.mdDoc "COSMIC greeter");
};

Expand Down
8 changes: 4 additions & 4 deletions nixos/cosmic/module.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{ config, pkgs, lib, utils, ... }:

let
cfg = config.services.xserver.desktopManager.cosmic;
cfg = config.services.desktopManager.cosmic;
in
{
meta.maintainers = with lib.maintainers; [ nyanbinary lilyinstarlight ];

options = {
services.xserver.desktopManager.cosmic = {
services.desktopManager.cosmic = {
enable = lib.mkEnableOption (lib.mdDoc "COSMIC desktop environment");
};

Expand All @@ -23,8 +23,8 @@ in
# seed configuration in nixos-generate-config
system.nixos-generate-config.desktopConfiguration = [''
# Enable the COSMIC Desktop Environment.
services.xserver.displayManager.cosmic-greeter.enable = true;
services.xserver.desktopManager.cosmic.enable = true;
services.displayManager.cosmic-greeter.enable = true;
services.desktopManager.cosmic.enable = true;
''];

# environment packages
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ If you have an existing `configuration.nix`, you can use the `nixos-cosmic` flak
}
```

After rebuilding with that configuration to get the binary cache substituters set up, enable COSMIC with `services.xserver.desktopManager.cosmic.enable = true` and `services.xserver.displayManager.cosmic-greeter.enable = true` in your NixOS configuration
After rebuilding with that configuration to get the binary cache substituters set up, enable COSMIC with `services.desktopManager.cosmic.enable = true` and `services.displayManager.cosmic-greeter.enable = true` in your NixOS configuration

0 comments on commit 9332bcd

Please sign in to comment.