mv basic gui utilities to module
This commit is contained in:
parent
168492c26b
commit
3864013e1a
@ -20,27 +20,17 @@
|
||||
font-awesome
|
||||
thunderbird
|
||||
lf
|
||||
qalculate-qt
|
||||
baobab
|
||||
arduino-ide
|
||||
piper
|
||||
calibre
|
||||
loupe
|
||||
gimp3
|
||||
base16-schemes
|
||||
tor
|
||||
wireshark
|
||||
tshark
|
||||
freecad-wayland
|
||||
aegisub
|
||||
audacity
|
||||
mpv
|
||||
fritzing
|
||||
networkmanagerapplet
|
||||
gparted
|
||||
gnome-disk-utility
|
||||
sl
|
||||
vlc
|
||||
];
|
||||
|
||||
services.ratbagd.enable = true;
|
||||
|
||||
@ -16,6 +16,7 @@
|
||||
./comm
|
||||
./displaymanager
|
||||
./vpn
|
||||
./utilities
|
||||
];
|
||||
|
||||
# Timzone and locales (same for all machines so I put it here)
|
||||
|
||||
@ -24,6 +24,7 @@ in
|
||||
webcord.enable = true;
|
||||
sddm.enable = true;
|
||||
mullvad.enable = true;
|
||||
gui-utilities.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@ -24,6 +24,7 @@ in
|
||||
element.enable = true;
|
||||
sddm.enable = true;
|
||||
mullvad.enable = true;
|
||||
gui-utilities.enable = true;
|
||||
};
|
||||
services.logind.lidSwitch = "ignore";
|
||||
};
|
||||
|
||||
6
modules/nix/utilities/default.nix
Normal file
6
modules/nix/utilities/default.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./gui-utilities.nix
|
||||
];
|
||||
}
|
||||
26
modules/nix/utilities/gui-utilities.nix
Normal file
26
modules/nix/utilities/gui-utilities.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
inherit (lib) mkIf mkOption types;
|
||||
in
|
||||
{
|
||||
options.smayzy.gui-utilities.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "basic gui-utilities";
|
||||
};
|
||||
|
||||
config = mkIf config.smayzy.gui-utilities.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
qalculate-qt
|
||||
baobab
|
||||
loupe
|
||||
gimp3
|
||||
wireshark
|
||||
audacity
|
||||
networkmanagerapplet
|
||||
gparted
|
||||
gnome-disk-utility
|
||||
vlc
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user