mirror of
https://github.com/artagaz/nix-config.git
synced 2026-06-23 02:05:45 +07:00
28 lines
897 B
Nix
28 lines
897 B
Nix
{ self, ... }:
|
|
{
|
|
flake.nixosModules.cinnamon = { pkgs, ... }:
|
|
{
|
|
services.xserver.desktopManager.cinnamon.enable = true;
|
|
services.xserver.displayManager.lightdm.enable = true;
|
|
services.xserver.enable = true;
|
|
services.power-profiles-daemon.enable = false;
|
|
# services.gnome.gnome-online-accounts.enable = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
# Convert dconf configs to Nix-compatable format.
|
|
# To convert your current configuration, run the following command:
|
|
# `dconf dump /org/cinnamon/ | dconf2nix --root org/cinnamon > ~/.nixos/modules/sessions/cinnamon/dconf.nix.temp`
|
|
dconf2nix
|
|
];
|
|
|
|
environment.sessionVariables = {
|
|
MOZ_USE_XINPUT2=1; # Fix Firefox-based browsers scroll on X11.
|
|
};
|
|
|
|
# Define dconf options.
|
|
home-manager.users.${self.user}.imports = [
|
|
self.homeModules.cinnamon-dconf
|
|
];
|
|
};
|
|
}
|