diff options
| author | Soispha Peetz <soispha@b-peetz.de> | 2026-12-03 23:14:10 +0100 |
|---|---|---|
| committer | Soispha Peetz <soispha@b-peetz.de> | 2026-12-03 23:19:04 +0100 |
| commit | 63a13eec2e41ba8b1f3b117d3eb45db5c94781e5 (patch) | |
| tree | 30b73d0339a4fbb9d06d080dbc744c242dc1eb2e /modules | |
| parent | pkgs/fupdate-sys2: Re-implement in rust (diff) | |
| download | nixos-config-63a13eec2e41ba8b1f3b117d3eb45db5c94781e5.zip | |
modules/fupdate: Init
Migrate away from `legacy/pkgs/default.nix`.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/by-name/fu/fupdate/module.nix | 30 | ||||
| -rw-r--r-- | modules/common/soispha/default.nix | 1 | ||||
| -rw-r--r-- | modules/home.legacy/pkgs/default.nix | 6 |
3 files changed, 31 insertions, 6 deletions
diff --git a/modules/by-name/fu/fupdate/module.nix b/modules/by-name/fu/fupdate/module.nix new file mode 100644 index 00000000..2f02d125 --- /dev/null +++ b/modules/by-name/fu/fupdate/module.nix @@ -0,0 +1,30 @@ +# nixos-config - My current NixOS configuration +# +# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de> +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of my nixos-config. +# +# You should have received a copy of the License along with this program. +# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. +{ + config, + lib, + pkgs, + ... +}: let + cfg = config.soispha.programs.fupdate; +in { + options.soispha.programs.fupdate = { + enable = lib.mkEnableOption "fupdate"; + }; + + config = lib.mkIf cfg.enable { + environment.packages = [ + pkgs.fupdate + pkgs.fupdate-sys + pkgs.fupdate-sys2 + pkgs.fupdate-flake + ]; + }; +} diff --git a/modules/common/soispha/default.nix b/modules/common/soispha/default.nix index c847a316..13a4720a 100644 --- a/modules/common/soispha/default.nix +++ b/modules/common/soispha/default.nix @@ -124,6 +124,7 @@ programs = { hledger.enable = true; + fupdate.enable = true; python.enable = true; chipass.enable = true; starship.enable = true; diff --git a/modules/home.legacy/pkgs/default.nix b/modules/home.legacy/pkgs/default.nix index 04bd7896..83d79eb7 100644 --- a/modules/home.legacy/pkgs/default.nix +++ b/modules/home.legacy/pkgs/default.nix @@ -62,12 +62,6 @@ with pkgs; let ); }; - SystemUpdate = [ - fupdate # Generic update tool. - fupdate-sys # System update tool (meant to slot into `fupdate`). - fupdate-flake # Nix flake update tool (meant to slot into `fupdate`). - ]; - FileListers = [ tree # A directory listing program displaying a depth indented list of files fd # Simple, fast and user-friendly alternative to find |
