mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
profiles/gnome: init from legacy
This commit is contained in:
parent
93de5f66bd
commit
96880cc7b7
4 changed files with 38 additions and 20 deletions
34
profiles/gnome/default.nix
Normal file
34
profiles/gnome/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.my.profiles.gnome;
|
||||
in
|
||||
{
|
||||
options.my.profiles.gnome = with lib; {
|
||||
enable = mkEnableOption "gnome profile";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.gnome-disks.enable = true;
|
||||
services.udisks2.enable = true;
|
||||
|
||||
xdg.mime.enable = true;
|
||||
|
||||
# make gnome settings persistent
|
||||
programs.dconf.enable = true;
|
||||
|
||||
# gnome services
|
||||
services.dbus.packages = [ pkgs.dconf ];
|
||||
services.udev.packages = [ pkgs.gnome.gnome-settings-daemon ];
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
glib
|
||||
gnome.adwaita-icon-theme
|
||||
gnome.dconf-editor
|
||||
gnome.eog
|
||||
gnome.file-roller
|
||||
polkit_gnome
|
||||
xdg-utils
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue