cleanup
This commit is contained in:
@@ -50,8 +50,9 @@
|
|||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
config = {
|
config = {
|
||||||
cudaSupport = lib.mkDefault config.${namespace}.hardware.nvidia.enable;
|
# CUDA and ROCm are not applicable on Darwin; those hardware modules are
|
||||||
rocmSupport = lib.mkDefault config.${namespace}.hardware.amd.enable;
|
# NixOS-only. Unfree allowance is handled globally via channels-config in
|
||||||
|
# the flake.
|
||||||
allowUnsupportedSystem = true;
|
allowUnsupportedSystem = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
46
modules/home/programs/common/default-apps.nix
Normal file
46
modules/home/programs/common/default-apps.nix
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
# Shared defaultApps submodule options, used by both the hyprland and
|
||||||
|
# nwg-panel modules. Import this file and pass the result as the `options`
|
||||||
|
# argument to types.submodule to avoid duplicating the definition.
|
||||||
|
{ pkgs, lib, ... }:
|
||||||
|
{
|
||||||
|
browser = lib.mkOption {
|
||||||
|
type = lib.types.package;
|
||||||
|
default = pkgs.firefox;
|
||||||
|
description = "Default web browser";
|
||||||
|
};
|
||||||
|
editor = lib.mkOption {
|
||||||
|
type = lib.types.package;
|
||||||
|
default = pkgs.micro;
|
||||||
|
description = "Default text editor";
|
||||||
|
};
|
||||||
|
fileExplorer = lib.mkOption {
|
||||||
|
type = lib.types.package;
|
||||||
|
default = pkgs.nautilus;
|
||||||
|
description = "Default file explorer";
|
||||||
|
};
|
||||||
|
visual = lib.mkOption {
|
||||||
|
type = lib.types.package;
|
||||||
|
default = pkgs.vscodium;
|
||||||
|
description = "Default visual/IDE editor";
|
||||||
|
};
|
||||||
|
terminal = lib.mkOption {
|
||||||
|
type = lib.types.package;
|
||||||
|
default = pkgs.kitty;
|
||||||
|
description = "Default terminal emulator";
|
||||||
|
};
|
||||||
|
office = lib.mkOption {
|
||||||
|
type = lib.types.package;
|
||||||
|
default = pkgs.onlyoffice-desktopeditors;
|
||||||
|
description = "Default office suite";
|
||||||
|
};
|
||||||
|
video = lib.mkOption {
|
||||||
|
type = lib.types.package;
|
||||||
|
default = pkgs.vlc;
|
||||||
|
description = "Default video player";
|
||||||
|
};
|
||||||
|
imageViewer = lib.mkOption {
|
||||||
|
type = lib.types.package;
|
||||||
|
default = pkgs.nomacs;
|
||||||
|
description = "Default image viewer";
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -158,50 +158,7 @@ with lib;
|
|||||||
};
|
};
|
||||||
|
|
||||||
defaultApps = mkOption {
|
defaultApps = mkOption {
|
||||||
type = types.submodule {
|
type = types.submodule (import ../common/default-apps.nix);
|
||||||
options = {
|
|
||||||
browser = mkOption {
|
|
||||||
type = types.package;
|
|
||||||
default = pkgs.firefox;
|
|
||||||
description = "Default browser";
|
|
||||||
};
|
|
||||||
editor = mkOption {
|
|
||||||
type = types.package;
|
|
||||||
default = pkgs.micro;
|
|
||||||
description = "Default text editor";
|
|
||||||
};
|
|
||||||
fileExplorer = mkOption {
|
|
||||||
type = types.package;
|
|
||||||
default = pkgs.nautilus;
|
|
||||||
description = "Default file explorer";
|
|
||||||
};
|
|
||||||
visual = mkOption {
|
|
||||||
type = types.package;
|
|
||||||
default = pkgs.vscodium;
|
|
||||||
description = "Default visual editor";
|
|
||||||
};
|
|
||||||
terminal = mkOption {
|
|
||||||
type = types.package;
|
|
||||||
default = pkgs.kitty;
|
|
||||||
description = "Default terminal";
|
|
||||||
};
|
|
||||||
office = mkOption {
|
|
||||||
type = types.package;
|
|
||||||
default = pkgs.onlyoffice-desktopeditors;
|
|
||||||
description = "Default office suite";
|
|
||||||
};
|
|
||||||
video = mkOption {
|
|
||||||
type = types.package;
|
|
||||||
default = pkgs.vlc;
|
|
||||||
description = "Default video player";
|
|
||||||
};
|
|
||||||
imageViewer = mkOption {
|
|
||||||
type = types.package;
|
|
||||||
default = pkgs.nomacs;
|
|
||||||
description = "Default image viewer";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
description = "Default applications used across the system";
|
description = "Default applications used across the system";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,51 +1,14 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
|
||||||
namespace,
|
namespace,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
|
||||||
{
|
{
|
||||||
options.${namespace}.programs.nwg-panel = {
|
options.${namespace}.programs.nwg-panel = {
|
||||||
enable = mkEnableOption "enable nwg-panel";
|
enable = lib.mkEnableOption "nwg-panel";
|
||||||
|
|
||||||
defaultApps = mkOption {
|
defaultApps = lib.mkOption {
|
||||||
type = types.submodule {
|
type = lib.types.submodule (import ../common/default-apps.nix);
|
||||||
options = {
|
|
||||||
browser = mkOption {
|
|
||||||
type = types.package;
|
|
||||||
default = pkgs.firefox;
|
|
||||||
};
|
|
||||||
editor = mkOption {
|
|
||||||
type = types.package;
|
|
||||||
default = pkgs.micro;
|
|
||||||
};
|
|
||||||
fileExplorer = mkOption {
|
|
||||||
type = types.package;
|
|
||||||
default = pkgs.nautilus;
|
|
||||||
};
|
|
||||||
visual = mkOption {
|
|
||||||
type = types.package;
|
|
||||||
default = pkgs.vscodium;
|
|
||||||
};
|
|
||||||
terminal = mkOption {
|
|
||||||
type = types.package;
|
|
||||||
default = pkgs.kitty;
|
|
||||||
};
|
|
||||||
office = mkOption {
|
|
||||||
type = types.package;
|
|
||||||
default = pkgs.onlyoffice-desktopeditors;
|
|
||||||
};
|
|
||||||
video = mkOption {
|
|
||||||
type = types.package;
|
|
||||||
default = pkgs.vlc;
|
|
||||||
};
|
|
||||||
imageViewer = mkOption {
|
|
||||||
type = types.package;
|
|
||||||
default = pkgs.gnome-photos;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
description = "Default applications used across the system.";
|
description = "Default applications used across the system.";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -5,8 +5,9 @@ with lib;
|
|||||||
enable = mkEnableOption "enable sops";
|
enable = mkEnableOption "enable sops";
|
||||||
|
|
||||||
defaultSopsFile = mkOption {
|
defaultSopsFile = mkOption {
|
||||||
type = types.str;
|
type = types.nullOr types.path;
|
||||||
default = null;
|
default = null;
|
||||||
|
description = "Path to the default sops secrets file.";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user