Move common package options into common.nix files, all files include common, all common include parent directory common. default.nix now includes everything in respective directories

This commit is contained in:
Evie Litherland-Smith 2023-04-12 13:18:03 +01:00
parent 3612ca49df
commit f370b79769
27 changed files with 159 additions and 112 deletions

View file

@ -1,8 +1,12 @@
{ ... }: { { ... }: {
imports = [ imports = [
./common.nix ./env/sway.nix
./packages ./packages/env
./packages/gui ./packages/tui
./packages/gui/browser.nix
./packages/gui/dunst.nix
./packages/gui/foot.nix
./packages/gui/kitty.nix
]; ];
# Home Manager needs a bit of information about you and the # Home Manager needs a bit of information about you and the
# paths it should manage. # paths it should manage.

View file

@ -0,0 +1,52 @@
{ ... }:
{
imports = [ ../common.nix ];
programs.ssh = {
enable = true;
includes = [ "config.d/*" ];
forwardAgent = true;
serverAliveInterval = 15;
serverAliveCountMax = 3;
controlMaster = "auto";
controlPersist = "5s";
};
programs.keychain = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
enableFishIntegration = true;
enableXsessionIntegration = true;
extraFlags = [
"--quiet"
"--ignore-missing"
];
keys = [
"id_rsa"
"id_ed25519"
];
};
programs.git = {
enable = true;
userName = "Evie Litherland-Smith";
delta.enable = true;
extraConfig = {
pull = {
rebase = false;
};
};
};
programs.starship = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
enableFishIntegration = true;
settings = builtins.fromTOML (builtins.readFile ./config/starship.toml);
};
programs.direnv = {
enable = true;
#enableBashIntegration = true;
#enableZshIntegration = true;
#enableFishIntegration = true;
};
}

View file

@ -1,55 +1,8 @@
{ ... }: { ... }:
{ {
imports = [ imports = [
./env ./env
./gui
./tui ./tui
]; ];
programs.ssh = {
enable = true;
includes = [ "config.d/*" ];
forwardAgent = true;
serverAliveInterval = 15;
serverAliveCountMax = 3;
controlMaster = "auto";
controlPersist = "5s";
};
programs.keychain = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
enableFishIntegration = true;
enableXsessionIntegration = true;
extraFlags = [
"--quiet"
"--ignore-missing"
];
keys = [
"id_rsa"
"id_ed25519"
];
};
programs.git = {
enable = true;
userName = "Evie Litherland-Smith";
delta.enable = true;
extraConfig = {
pull = {
rebase = false;
};
};
};
programs.starship = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
enableFishIntegration = true;
settings = builtins.fromTOML (builtins.readFile ./config/starship.toml);
};
programs.direnv = {
enable = true;
#enableBashIntegration = true;
#enableZshIntegration = true;
#enableFishIntegration = true;
};
} }

View file

@ -1,5 +1,6 @@
{ ... }: { ... }:
{ {
imports = [ ./common.nix ];
programs.bash.enable = true; programs.bash.enable = true;
} }

View file

@ -0,0 +1,4 @@
{ ... }:
{
imports = [ ../common.nix ];
}

View file

@ -1,6 +1,7 @@
{ ... }: { ... }:
{ {
imports = [ ./common.nix ];
programs.fish = { programs.fish = {
enable = true; enable = true;
shellAbbrs = { shellAbbrs = {

View file

@ -1,7 +1,6 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
home.packages = with pkgs; [ imports = [ ./common.nix ];
qemu home.packages = with pkgs; [ qemu ];
];
} }

View file

@ -1,6 +1,7 @@
{ config, ... }: { config, ... }:
{ {
imports = [ ./common.nix ];
programs.zsh = { programs.zsh = {
enable = true; enable = true;
shellAliases = { shellAliases = {

View file

@ -0,0 +1,5 @@
{ pkgs, ... }:
{
imports = [ ./common.nix ];
home.packages = with pkgs; [ firefox ];
}

View file

@ -1,11 +1,13 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
imports = [ ./common.nix ];
#services.nextcloud-client = { #services.nextcloud-client = {
# enable = true; # enable = true;
# startInBackground = true; # startInBackground = true;
#}; #};
home.packages = with pkgs; [ home.packages = with pkgs; [
bitwarden
zotero zotero
]; ];
} }

View file

@ -0,0 +1,4 @@
{ ... }:
{
imports = [ ../common.nix ];
}

View file

@ -2,12 +2,15 @@
{ {
imports = [ imports = [
./browser.nix
./cloud.nix
./dunst.nix ./dunst.nix
./foot.nix
./gaming.nix
./kitty.nix ./kitty.nix
./foot.nix ./foot.nix
]; ./messaging.nix
home.packages = with pkgs; [ ./nomachine.nix
firefox ./ukaea.nix
# bitwarden
]; ];
} }

View file

@ -1,5 +1,6 @@
{ ... }: { ... }:
{ {
imports = [ ./common.nix ];
services.dunst = { services.dunst = {
enable = true; enable = true;
settings = { settings = {

View file

@ -1,5 +1,6 @@
{ ... }: { ... }:
{ {
imports = [ ./common.nix ];
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;
programs.foot = { programs.foot = {
enable = true; enable = true;

View file

@ -1,6 +1,7 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
imports = [ ./common.nix ];
home.packages = with pkgs; [ home.packages = with pkgs; [
mesa mesa
steam steam

View file

@ -1,6 +1,7 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
imports = [ ./common.nix ];
programs.kitty = { programs.kitty = {
enable = true; enable = true;
font = { font = {

View file

@ -1,6 +1,7 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
imports = [ ./common.nix ];
home.packages = with pkgs; [ home.packages = with pkgs; [
signal-desktop signal-desktop
element-desktop element-desktop

View file

@ -1,6 +1,7 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = [ ./common.nix ];
home.packages = with pkgs; [ home.packages = with pkgs; [
nomachine-client nomachine-client
]; ];

View file

@ -1,6 +1,7 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
imports = [ ./common.nix ];
home.packages = with pkgs; [ home.packages = with pkgs; [
teams teams
zoom-us zoom-us

View file

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

View file

@ -0,0 +1,33 @@
{ pkgs, ... }:
{
imports = [ ../common.nix ];
programs.neovim.defaultEditor = true;
programs.bat = {
enable = true;
config = {
theme = "Catppuccin-macchiato";
};
themes = {
Catppuccin-macchiato = builtins.readFile (pkgs.fetchFromGitHub
{
owner = "catppuccin";
repo = "bat";
rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1";
sha256 = "6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw=";
} + "/Catppuccin-macchiato.tmTheme");
};
};
home.packages = with pkgs; [
fira-code
iosevka
(nerdfonts.override {
fonts = [
"FiraCode"
"Iosevka"
];
})
file
silver-searcher
];
}

View file

@ -1,37 +1,8 @@
{ pkgs, ... }: { ... }:
{ {
imports = [ imports = [
./tmux.nix
./neovim.nix
./lazygit.nix ./lazygit.nix
]; ./neovim.nix
programs.neovim.defaultEditor = true; ./tmux.nix
programs.bat = {
enable = true;
config = {
theme = "Catppuccin-macchiato";
};
themes = {
Catppuccin-macchiato = builtins.readFile (pkgs.fetchFromGitHub
{
owner = "catppuccin";
repo = "bat";
rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1";
sha256 = "6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw=";
} + "/Catppuccin-macchiato.tmTheme");
};
};
home.packages = with pkgs; [
fira-code
iosevka
(nerdfonts.override {
fonts = [
"FiraCode"
"Iosevka"
];
})
file
silver-searcher
]; ];
} }

View file

@ -1,6 +1,7 @@
{ ... }: { ... }:
{ {
imports = [ ./common.nix ];
programs.lazygit = { programs.lazygit = {
enable = true; enable = true;
settings = import ./config/lazygit.nix; settings = import ./config/lazygit.nix;

View file

@ -1,6 +1,7 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
imports = [ ./common.nix ];
programs.neovim = { programs.neovim = {
enable = true; enable = true;
defaultEditor = true; defaultEditor = true;

View file

@ -1,15 +1,17 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
imports = [ ./common.nix ];
programs.tmux = { programs.tmux = {
enable = true; enable = true;
clock24 = true; clock24 = true;
extraConfig = builtins.readFile (./config/tmux.conf) + "\n" + builtins.readFile ( extraConfig = builtins.readFile (./config/tmux.conf) + "\n" + builtins.readFile (
pkgs.fetchFromGitHub { pkgs.fetchFromGitHub
owner = "catppuccin"; {
repo = "tmux"; owner = "catppuccin";
rev = "4e48b09a76829edc7b55fbb15467cf0411f07931"; repo = "tmux";
sha256 = "bXEsxt4ozl3cAzV3ZyvbPsnmy0RAdpLxHwN82gvjLdU="; rev = "4e48b09a76829edc7b55fbb15467cf0411f07931";
} + "/catppuccin-macchiato.tmuxtheme" sha256 = "bXEsxt4ozl3cAzV3ZyvbPsnmy0RAdpLxHwN82gvjLdU=";
} + "/catppuccin-macchiato.tmuxtheme"
); );
}; };
} }

View file

@ -1,12 +1,17 @@
{ ... }: { { ... }: {
imports = [ imports = [
./common.nix
./env
./env/hyprland.nix ./env/hyprland.nix
./packages ./env/sway.nix
./packages/gui ./packages/env
./packages/gui/ukaea.nix ./packages/tui
./packages/gui/browser.nix
./packages/gui/cloud.nix
./packages/gui/dunst.nix
./packages/gui/foot.nix
./packages/gui/kitty.nix
./packages/gui/messaging.nix
./packages/gui/nomachine.nix ./packages/gui/nomachine.nix
./packages/gui/ukaea.nix
]; ];
# Home Manager needs a bit of information about you and the # Home Manager needs a bit of information about you and the
# paths it should manage. # paths it should manage.

View file

@ -1,10 +1,15 @@
{ pkgs, ... }: { { pkgs, ... }: {
imports = [ imports = [
./common.nix ./env/hyprland.nix
./env ./packages/env
./packages ./packages/tui
./packages/gui ./packages/gui/browser.nix
./packages/gui/cloud.nix
./packages/gui/dunst.nix
./packages/gui/foot.nix
./packages/gui/gaming.nix ./packages/gui/gaming.nix
./packages/gui/kitty.nix
./packages/gui/messaging.nix
./packages/gui/nomachine.nix ./packages/gui/nomachine.nix
]; ];
# Home Manager needs a bit of information about you and the # Home Manager needs a bit of information about you and the