mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2024-12-29 18:16:52 +01:00
add gui option
This commit is contained in:
parent
24af8c82c1
commit
bdd527ddad
8 changed files with 14 additions and 11 deletions
|
@ -4,6 +4,7 @@ let cfg = config.jopejoe1.common;
|
|||
in {
|
||||
options.jopejoe1.common = {
|
||||
enable = lib.mkEnableOption "Enable Common Homanger settings";
|
||||
gui = lib.mkEnableOption "Graphical programms";
|
||||
fonts = {
|
||||
monospace = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
|
|
|
@ -6,13 +6,13 @@ in {
|
|||
|
||||
config = lib.mkIf cfg.enable {
|
||||
xdg = {
|
||||
sounds.enable = true;
|
||||
sounds.enable = config.jopejoe1.gui.enable;
|
||||
mime.enable = true;
|
||||
menus.enable = true;
|
||||
icons.enable = true;
|
||||
menus.enable = config.jopejoe1.gui.enable;
|
||||
icons.enable = config.jopejoe1.gui.enable;
|
||||
autostart.enable = true;
|
||||
portal = {
|
||||
enable = true;
|
||||
enable = config.jopejoe1.gui.enable;
|
||||
extraPortals = with pkgs; [ xdg-desktop-portal ];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
let cfg = config.jopejoe1.nix;
|
||||
in {
|
||||
options.jopejoe1.nix = { enable = lib.mkEnableOption "Enable Nix"; };
|
||||
options.jopejoe1.gui = { enable = lib.mkEnableOption "Enable GUI"; };
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
nix = {
|
||||
|
|
|
@ -21,7 +21,8 @@ in {
|
|||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFZDUoC+1lNR2JTY1Q+vhXpuLmKMdVl2OMFLVbQ3cGkw jopejoe1@kuraokami"
|
||||
];
|
||||
packages = with pkgs;
|
||||
[
|
||||
[]
|
||||
++ lib.optionals config.jopejoe1.gui.enable [
|
||||
libsForQt5.kate
|
||||
libsForQt5.ark
|
||||
element-desktop
|
||||
|
@ -32,8 +33,6 @@ in {
|
|||
catppuccin-kde
|
||||
#catppuccin-gtk
|
||||
localPkgs.tela-icon-theme-git
|
||||
]
|
||||
++ lib.optionals (config.system == "x86_64-linux") [
|
||||
discord
|
||||
lutris
|
||||
bottles
|
||||
|
@ -60,8 +59,9 @@ in {
|
|||
};
|
||||
nushell.enable = true;
|
||||
git.enable = true;
|
||||
gui.enable = config.jopejoe1.gui.enable;
|
||||
direnv.enable = true;
|
||||
firefox.enable = true;
|
||||
firefox.enable = config.jopejoe1.gui.enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -29,6 +29,7 @@ in {
|
|||
};
|
||||
git.enable = true;
|
||||
direnv.enable = true;
|
||||
gui.enable = config.jopejoe1.gui.enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -10,9 +10,7 @@ in {
|
|||
services.zerotierone.enable = true;
|
||||
services.zerotierone.joinNetworks = [ "9e1948db638e9f93" ] ++ lib.optional (config.networking.hostName == "kuraokami") "7c31a21e86f9a75c";
|
||||
services.zerotierone.port = 9993;
|
||||
environment.systemPackages = with pkgs; [
|
||||
moonlight-qt
|
||||
];
|
||||
environment.systemPackages = with pkgs; lib.optinal config.jopejoe1.gui.enable moonlight-qt;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
asf.enable = true;
|
||||
sway.enable = true;
|
||||
zerotierone.enable = true;
|
||||
gui.enable = true;
|
||||
keyboard = {
|
||||
enable = true;
|
||||
layout = "de";
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
root.enable = true;
|
||||
};
|
||||
ssh.enable = true;
|
||||
gui.enable = false;
|
||||
};
|
||||
|
||||
imports =
|
||||
|
|
Loading…
Reference in a new issue