Compare commits
5 Commits
a78af6529c
...
b22c5bc935
| Author | SHA1 | Date | |
|---|---|---|---|
| b22c5bc935 | |||
| 7c46bae3e2 | |||
| 8a1f51873e | |||
| e03c77cdbc | |||
| a64d153004 |
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ with pkgs;
|
|||||||
pnpm
|
pnpm
|
||||||
python3
|
python3
|
||||||
ripgrep
|
ripgrep
|
||||||
signal-desktop
|
|
||||||
silver-searcher
|
silver-searcher
|
||||||
sops
|
sops
|
||||||
sshfs
|
sshfs
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
12
home/modules/cloud/azure.nix
Normal file
12
home/modules/cloud/azure.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
config = lib.mkIf config.cloud.azure.enable {
|
||||||
|
home.packages = with pkgs; [ azure-cli ];
|
||||||
|
};
|
||||||
|
}
|
||||||
17
home/modules/cloud/default.nix
Normal file
17
home/modules/cloud/default.nix
Normal 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
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -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 ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
17
home/modules/comms/default.nix
Normal file
17
home/modules/comms/default.nix
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{ lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
options.comms = {
|
||||||
|
signal = {
|
||||||
|
enable = lib.mkEnableOption "signal";
|
||||||
|
};
|
||||||
|
teams = {
|
||||||
|
enable = lib.mkEnableOption "teams";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
./signal.nix
|
||||||
|
./teams.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
13
home/modules/comms/signal.nix
Normal file
13
home/modules/comms/signal.nix
Normal 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)
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
14
home/modules/comms/teams.nix
Normal file
14
home/modules/comms/teams.nix
Normal 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)
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
26
home/modules/git/default.nix
Normal file
26
home/modules/git/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
home = {
|
|
||||||
packages = with pkgs; [ hcloud ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -21,6 +21,7 @@ in
|
|||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
libnotify
|
libnotify
|
||||||
|
taskopen
|
||||||
];
|
];
|
||||||
|
|
||||||
home.file = {
|
home.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
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user