Compare commits

...

5 Commits

15 changed files with 127 additions and 27 deletions

View File

@@ -11,11 +11,11 @@ let
in in
{ {
imports = [ imports = [
../../modules/cloud
../../modules/comms
../../modules/desktop/niri ../../modules/desktop/niri
../../modules/3d ../../modules/3d
../../modules/git.nix ../../modules/git
# ../../modules/hetzner.nix
../../modules/k9s.nix ../../modules/k9s.nix
../../modules/kitty.nix ../../modules/kitty.nix
../../modules/ssh.nix ../../modules/ssh.nix
@@ -37,6 +37,9 @@ in
xdg.userDirs.download = "${config.home.homeDirectory}/dl"; xdg.userDirs.download = "${config.home.homeDirectory}/dl";
browser.primary = "librewolf"; browser.primary = "librewolf";
cloud.hetzner.enable = true;
comms.signal.enable = true;
github.enable = true;
shell.bash = { shell.bash = {
enable = true; enable = true;

View File

@@ -1,5 +1,4 @@
{ {
inputs,
config, config,
pkgs, pkgs,
... ...
@@ -12,9 +11,10 @@ in
imports = [ imports = [
../../modules/ai-tools.nix ../../modules/ai-tools.nix
../../modules/anki.nix ../../modules/anki.nix
../../modules/cloud
../../modules/comms
../../modules/desktop/niri ../../modules/desktop/niri
../../modules/git.nix ../../modules/git
# ../../modules/hetzner.nix
../../modules/k9s.nix ../../modules/k9s.nix
../../modules/kitty.nix ../../modules/kitty.nix
../../modules/ssh.nix ../../modules/ssh.nix
@@ -34,6 +34,9 @@ in
xdg.userDirs.download = "${config.home.homeDirectory}/dl"; xdg.userDirs.download = "${config.home.homeDirectory}/dl";
browser.primary = "librewolf"; browser.primary = "librewolf";
cloud.hetzner.enable = true;
comms.signal.enable = true;
github.enable = true;
shell.bash = { shell.bash = {
enable = true; enable = true;

View File

@@ -22,7 +22,6 @@ with pkgs;
pnpm pnpm
python3 python3
ripgrep ripgrep
signal-desktop
silver-searcher silver-searcher
sops sops
sshfs sshfs

View File

@@ -12,8 +12,10 @@ in
imports = [ imports = [
inputs.sops-nix.homeManagerModules.sops inputs.sops-nix.homeManagerModules.sops
../../modules/ai-tools.nix ../../modules/ai-tools.nix
../../modules/cloud
../../modules/comms
../../modules/dconf.nix ../../modules/dconf.nix
../../modules/git.nix ../../modules/git
../../modules/k9s.nix ../../modules/k9s.nix
../../modules/keepassxc.nix ../../modules/keepassxc.nix
../../modules/kitty.nix ../../modules/kitty.nix
@@ -59,6 +61,11 @@ in
browser.primary = "firefox"; browser.primary = "firefox";
browser.secondary = "chromium"; browser.secondary = "chromium";
cloud.azure.enable = true;
comms.signal.enable = true;
comms.teams.enable = true;
github.enable = true;
gitlab.enable = true;
shell.bash.enable = true; shell.bash.enable = true;
starship.enable = true; starship.enable = true;

View File

@@ -0,0 +1,12 @@
{
config,
lib,
pkgs,
...
}:
{
config = lib.mkIf config.cloud.azure.enable {
home.packages = with pkgs; [ azure-cli ];
};
}

View File

@@ -0,0 +1,17 @@
{ lib, ... }:
{
options.cloud = {
azure = {
enable = lib.mkEnableOption "azure CLI";
};
hetzner = {
enable = lib.mkEnableOption "hetzner CLI";
};
};
imports = [
./azure.nix
./hetzner.nix
];
}

View File

@@ -1,5 +1,7 @@
{ {
config,
lib, lib,
pkgs,
osConfig ? null, osConfig ? null,
... ...
}: }:
@@ -8,9 +10,12 @@ let
isNixOS = osConfig != null; isNixOS = osConfig != null;
in in
{ {
config = { config = lib.mkIf config.cloud.hetzner.enable {
warnings = warnings =
lib.optional (!isNixOS) lib.optional (!isNixOS)
"hcloud module requires NixOS host configuration. This module will not work with standalone home-manager."; "hcloud module requires NixOS host configuration. This module will not work with standalone home-manager.";
home = {
packages = with pkgs; [ hcloud ];
};
}; };
} }

View File

@@ -0,0 +1,17 @@
{ lib, ... }:
{
options.comms = {
signal = {
enable = lib.mkEnableOption "signal";
};
teams = {
enable = lib.mkEnableOption "teams";
};
};
imports = [
./signal.nix
./teams.nix
];
}

View File

@@ -0,0 +1,13 @@
{
config,
lib,
pkgs,
...
}:
{
config = lib.mkIf config.comms.signal.enable {
home.packages = with pkgs; [
(if config.lib ? nixGL then config.lib.nixGL.wrap signal-desktop else signal-desktop)
];
};
}

View File

@@ -0,0 +1,14 @@
{
config,
lib,
pkgs,
...
}:
{
config = lib.mkIf config.comms.teams.enable {
home.packages = with pkgs; [
(if config.lib ? nixGL then config.lib.nixGL.wrap teams-for-linux else teams-for-linux)
];
};
}

View File

@@ -1,10 +0,0 @@
{ dotsPath, ... }:
{
programs.git.enable = true;
home.file = {
".gitconfig".source = dotsPath + "/.gitconfig";
".gitconfig.work".source = dotsPath + "/.gitconfig.work";
".gitignore".source = dotsPath + "/.gitignore";
};
}

View File

@@ -0,0 +1,26 @@
{
config,
lib,
pkgs,
dotsPath,
...
}:
{
options = {
github.enable = lib.mkEnableOption "Github CLI";
gitlab.enable = lib.mkEnableOption "Gitlab CLI";
};
config = {
programs.git.enable = true;
home.file = {
".gitconfig".source = dotsPath + "/.gitconfig";
".gitconfig.work".source = dotsPath + "/.gitconfig.work";
".gitignore".source = dotsPath + "/.gitignore";
};
programs.gh.enable = config.github.enable;
home.packages = with pkgs; lib.optionals (config.gitlab.enable) [ glab ];
};
}

View File

@@ -1,7 +0,0 @@
{ pkgs, ... }:
{
home = {
packages = with pkgs; [ hcloud ];
};
}

View File

@@ -21,6 +21,7 @@ in
home.packages = with pkgs; [ home.packages = with pkgs; [
libnotify libnotify
taskopen
]; ];
home.file = { home.file = {

View File

@@ -33,7 +33,7 @@ in
../../modules/localization ../../modules/localization
../../modules/fonts ../../modules/fonts
../../modules/ssh/hardened-openssh.nix ../../modules/ssh/hardened-openssh.nix
../../modules/vpn/wireguard.nix # ../../modules/vpn/wireguard.nix
(import ../../modules/secrets { inherit lib inputs config; }) (import ../../modules/secrets { inherit lib inputs config; })
../../modules/docker ../../modules/docker
]; ];