mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
nixos/gnome: Install GNOME Software using module
gnome-software now uses systemd instead of autostart so we need to add it to `systemd.packages`:
0880577507
This commit is contained in:
parent
cf7ed31fe1
commit
9890d02c0a
3 changed files with 60 additions and 32 deletions
28
nixos/modules/services/desktops/gnome/gnome-software.nix
Normal file
28
nixos/modules/services/desktops/gnome/gnome-software.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
meta = {
|
||||
maintainers = lib.teams.gnome.members;
|
||||
};
|
||||
|
||||
options = {
|
||||
services.gnome.gnome-software = {
|
||||
enable = lib.mkEnableOption "GNOME Software, package manager for GNOME";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.services.gnome.gnome-software.enable {
|
||||
environment.systemPackages = [
|
||||
pkgs.gnome-software
|
||||
];
|
||||
|
||||
systemd.packages = [
|
||||
pkgs.gnome-software
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue