Skip to content

Commit

Permalink
More fixes and options
Browse files Browse the repository at this point in the history
  • Loading branch information
vlinkz committed Oct 30, 2023
1 parent aab48d5 commit d0ed77a
Show file tree
Hide file tree
Showing 8 changed files with 210 additions and 67 deletions.
144 changes: 117 additions & 27 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions modules/nixos/biosboot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ let
cfg = config.modules.biosboot;
in
{
options.modules.biosboot = with types; {
};

config = {
boot.loader = {
systemd-boot.enable = false;
Expand Down
10 changes: 6 additions & 4 deletions modules/nixos/gnome/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ let
in
{
options.modules.gnome = with types; {
gsconnect =
gsconnect.enable =
mkEnableOption "Enable KDE Connect integration";
removeUtils =
removeUtils.enable =
mkEnableOption "Remove non-essential GNOME utilities";
};

Expand All @@ -24,12 +24,14 @@ in
systemd.services."getty@tty1".enable = false;
systemd.services."autovt@tty1".enable = false;

programs.kdeconnect = mkIf cfg.gsconnect {
programs.gnupg.agent.pinentryFlavor = mkDefault "gnome3";

programs.kdeconnect = mkIf cfg.gsconnect.enable {
package = pkgs.gnomeExtensions.gsconnect;
enable = true;
};

environment.gnome.excludePackages = mkIf cfg.removeUtils (with pkgs.gnome; [
environment.gnome.excludePackages = mkIf cfg.removeUtils.enable (with pkgs.gnome; [
baobab
cheese
eog
Expand Down
8 changes: 7 additions & 1 deletion modules/nixos/networking/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
{ config, lib, ... }:
{ config, lib, pkgs, ... }:
with lib;
{
config = {
networking.networkmanager.enable = mkDefault true;
networking.wireless.enable = mkDefault false;
# Workaround for https://github.com/NixOS/nixpkgs/issues/180175
systemd.services.NetworkManager-wait-online = {
serviceConfig = {
ExecStart = [ "" "${pkgs.networkmanager}/bin/nm-online -q" ];
};
};
};
}
4 changes: 2 additions & 2 deletions modules/nixos/packagemanagers/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ let
in
{
options.modules.packagemanagers = with types; {
appimage =
appimage.enable =
mkEnableOption "Enable AppImage";
};

config = mkIf cfg.appimage {
config = mkIf cfg.appimage.enable {
environment.systemPackages = [ pkgs.appimage-run ];
};
}
2 changes: 1 addition & 1 deletion modules/nixos/packagemanagers/module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ options:
type: !switch
default: false
- label: "AppImage"
id: modules.packagemanagers.appimage
id: modules.packagemanagers.appimage.enable
description: "Enable AppImage support by installing the \"appimage-run\" package. For AppImages to work, you must run them with the \"appimage-run\" command."
type: !switch
default: false
Loading

0 comments on commit d0ed77a

Please sign in to comment.