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 = [
./common.nix
./packages
./packages/gui
./env/sway.nix
./packages/env
./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
# 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 = [
./env
./gui
./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;
}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,6 +1,7 @@
{ pkgs, ... }:
{
imports = [ ./common.nix ];
home.packages = with pkgs; [
teams
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 = [
./tmux.nix
./neovim.nix
./lazygit.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
./neovim.nix
./tmux.nix
];
}

View file

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

View file

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

View file

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

View file

@ -1,12 +1,17 @@
{ ... }: {
imports = [
./common.nix
./env
./env/hyprland.nix
./packages
./packages/gui
./packages/gui/ukaea.nix
./env/sway.nix
./packages/env
./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/ukaea.nix
];
# Home Manager needs a bit of information about you and the
# paths it should manage.

View file

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