Many changes by GLM
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
isEnabled =
|
||||
config.azos.chromium.enable;
|
||||
in {
|
||||
options.azos.chromium.enable = lib.mkOption {
|
||||
default = true;
|
||||
example = true;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
config = lib.mkIf isEnabled {
|
||||
home.packages = with pkgs; [
|
||||
chromium
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,26 +1,20 @@
|
||||
{
|
||||
imports = [
|
||||
./zoom.nix
|
||||
./ytdl.nix
|
||||
./mail.nix
|
||||
./encryption.nix
|
||||
./kubernetes.nix
|
||||
./git.nix
|
||||
./mpris-proxy.nix
|
||||
./qutebrowser-config.nix
|
||||
./audio.nix
|
||||
./reaper.nix
|
||||
./discord.nix
|
||||
./spotify.nix
|
||||
./encryption.nix
|
||||
./git.nix
|
||||
./headphones-whmx4000.nix
|
||||
./deluge.nix
|
||||
./lauretta-emacs.nix
|
||||
./gimp.nix
|
||||
# ./printing.nix
|
||||
./libreoffice.nix
|
||||
./chromium.nix
|
||||
./hyprland-suite.nix
|
||||
# ./gnuradio.nix
|
||||
./kubernetes.nix
|
||||
./lauretta-emacs.nix
|
||||
./mail.nix
|
||||
./mpris-proxy.nix
|
||||
./opencode.nix
|
||||
# ./printing.nix
|
||||
# ./gnuradio.nix
|
||||
./qutebrowser-config.nix
|
||||
./reaper.nix
|
||||
./snx-rs.nix
|
||||
./ytdl.nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
isEnabled =
|
||||
config.azos.deluged.enable;
|
||||
in {
|
||||
options.azos.deluged.enable = lib.mkOption {
|
||||
default = true;
|
||||
example = true;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
config = lib.mkIf isEnabled {
|
||||
home.packages = with pkgs; [
|
||||
deluged
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
isEnabled =
|
||||
config.azos.discord.enable;
|
||||
in {
|
||||
options.azos.discord.enable = lib.mkOption {
|
||||
default = true;
|
||||
example = true;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
config = lib.mkIf isEnabled {
|
||||
home.packages = with pkgs; [
|
||||
discord
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
isEnabled =
|
||||
config.azos.gimp.enable;
|
||||
in {
|
||||
options.azos.gimp.enable = lib.mkOption {
|
||||
default = true;
|
||||
example = true;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
config = lib.mkIf isEnabled {
|
||||
home.packages = with pkgs; [
|
||||
gimp3
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -26,14 +26,13 @@ in {
|
||||
|
||||
settings = {
|
||||
extraConfig = {
|
||||
credential.helper = "!pass-git-helper $@";
|
||||
credential.helper = "!pass-git-helper $@";
|
||||
};
|
||||
user = {
|
||||
name = "Aner Zakobar";
|
||||
email = "aner@zakobar.com";
|
||||
name = "Aner Zakobar";
|
||||
email = "aner@zakobar.com";
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
home.file.".config/pass-git-helper/git-pass-mapping.ini".source =
|
||||
./pass-git-mapping.ini;
|
||||
|
||||
@@ -15,9 +15,9 @@ in {
|
||||
|
||||
config = lib.mkIf isEnabled {
|
||||
home.packages = with pkgs; [
|
||||
( pkgs.writeShellScriptBin
|
||||
(pkgs.writeShellScriptBin
|
||||
"azos-connect-headphones-whmx4000"
|
||||
"echo \"connect AC:80:0A:AF:E1:C2\" | bluetoothctl" )
|
||||
"echo \"connect AC:80:0A:AF:E1:C2\" | bluetoothctl")
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -18,15 +18,15 @@ in {
|
||||
#TODO shutdown reboot commands
|
||||
config = lib.mkIf isEnabled {
|
||||
home.packages = with pkgs; [
|
||||
hyprland
|
||||
waybar # status bar
|
||||
wofi # application launcher
|
||||
kitty
|
||||
grim # screenshot utility
|
||||
slurp # region selector
|
||||
swappy # screenshot editor
|
||||
networkmanagerapplet
|
||||
xwayland
|
||||
hyprland
|
||||
waybar # status bar
|
||||
wofi # application launcher
|
||||
kitty
|
||||
grim # screenshot utility
|
||||
slurp # region selector
|
||||
swappy # screenshot editor
|
||||
networkmanagerapplet
|
||||
xwayland
|
||||
];
|
||||
|
||||
azos.emacs.enabledSuites = ["azos-emacs-hyprland"];
|
||||
@@ -54,6 +54,5 @@ in {
|
||||
# StandardError = "journal";
|
||||
# };
|
||||
# };
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -17,5 +17,7 @@ in {
|
||||
|
||||
#Base emacs suite definition
|
||||
azos.emacs.pkgs = [pkgs.azos-emacs-lauretta];
|
||||
|
||||
home.packages = with pkgs; [pkgs.nix-search-cli];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
isEnabled =
|
||||
config.azos.libreoffice.enable;
|
||||
in {
|
||||
options.azos.libreoffice.enable = lib.mkOption {
|
||||
default = true;
|
||||
example = true;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
config = lib.mkIf isEnabled {
|
||||
home.packages = with pkgs; [
|
||||
libreoffice
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -14,8 +14,6 @@ in {
|
||||
};
|
||||
|
||||
config = lib.mkIf isEnabled {
|
||||
home.packages = with pkgs; [
|
||||
opencode
|
||||
];
|
||||
programs.opencode.enable = true;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
isEnabled =
|
||||
config.azos.snx-rs.enable;
|
||||
cfg = config.azos.snx-rs;
|
||||
in {
|
||||
options.azos.snx-rs = {
|
||||
enable = lib.mkOption {
|
||||
default = true;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
server = lib.mkOption {
|
||||
default = "vpn.bgu.ac.il";
|
||||
type = lib.types.str;
|
||||
description = "VPN server address";
|
||||
};
|
||||
username = lib.mkOption {
|
||||
default = "anerz@vpn";
|
||||
type = lib.types.str;
|
||||
description = "VPN username";
|
||||
};
|
||||
loginType = lib.mkOption {
|
||||
default = "vpn";
|
||||
type = lib.types.str;
|
||||
description = "Login type (e.g., vpn, vpn_Microsoft_Authenticator)";
|
||||
};
|
||||
ignoreServerCert = lib.mkOption {
|
||||
default = true;
|
||||
type = lib.types.bool;
|
||||
description = "Ignore server certificate validation";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf isEnabled {
|
||||
home.packages = with pkgs; [
|
||||
snx-rs
|
||||
(pkgs.writeShellScriptBin "snx-connect" ''
|
||||
#!/bin/sh
|
||||
sudo ${pkgs.snx-rs}/bin/snx-rs -m command &
|
||||
sleep 1
|
||||
${pkgs.snx-rs}/bin/snxctl connect
|
||||
'')
|
||||
(pkgs.writeShellScriptBin "snx-disconnect" ''
|
||||
#!/bin/sh
|
||||
${pkgs.snx-rs}/bin/snxctl disconnect
|
||||
pkill -x snx-rs 2>/dev/null || true
|
||||
'')
|
||||
];
|
||||
|
||||
home.file.".config/snx-rs/snx-rs.conf" = {
|
||||
text = ''
|
||||
server-name = ${cfg.server}
|
||||
user-name = ${cfg.username}
|
||||
login-type = ${cfg.loginType}
|
||||
ignore-server-cert = ${lib.boolToString cfg.ignoreServerCert}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
isEnabled =
|
||||
config.azos.spotify.enable;
|
||||
in {
|
||||
options.azos.spotify.enable = lib.mkOption {
|
||||
default = true;
|
||||
example = true;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
config = lib.mkIf isEnabled {
|
||||
home.packages = with pkgs; [
|
||||
spotify
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -5,7 +5,7 @@
|
||||
...
|
||||
}: let
|
||||
isEnabled =
|
||||
config.azos.discord.enable;
|
||||
config.azos.ytdl.enable;
|
||||
in {
|
||||
options.azos.ytdl.enable = lib.mkOption {
|
||||
default = true;
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
isEnabled =
|
||||
config.azos.zoom.enable;
|
||||
in {
|
||||
options.azos.zoom.enable = lib.mkOption {
|
||||
default = true;
|
||||
example = true;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
config = lib.mkIf isEnabled {
|
||||
home.packages = with pkgs; [
|
||||
zoom-us
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user