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