Rearrange again to reduce complexity
Move collections to use default.nix in relevant directories Combine GUI elements into gui directory
This commit is contained in:
parent
816b839ab4
commit
8c7f8dba52
|
@ -27,7 +27,6 @@
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGAcvAQ8W71Bn8pdMYst1hoVCmVJ+0h4HBlJzu1C6dwy xenia@Northstar"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGAcvAQ8W71Bn8pdMYst1hoVCmVJ+0h4HBlJzu1C6dwy xenia@Northstar"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
||||||
users.users.xenia = {
|
users.users.xenia = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Evie Litherland-Smith";
|
description = "Evie Litherland-Smith";
|
||||||
|
@ -39,10 +38,9 @@
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGAcvAQ8W71Bn8pdMYst1hoVCmVJ+0h4HBlJzu1C6dwy xenia@Northstar"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGAcvAQ8W71Bn8pdMYst1hoVCmVJ+0h4HBlJzu1C6dwy xenia@Northstar"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.xenia = { ... }: {
|
home-manager.users.xenia = { ... }: {
|
||||||
imports = [ ./home/collections/personal ];
|
imports = [ ./home/personal.nix ];
|
||||||
# Home Manager needs a bit of information about you and the
|
|
||||||
# paths it should manage.
|
|
||||||
home.username = "xenia";
|
home.username = "xenia";
|
||||||
home.homeDirectory = "/home/xenia";
|
home.homeDirectory = "/home/xenia";
|
||||||
home.stateVersion = "22.11";
|
home.stateVersion = "22.11";
|
||||||
|
|
18
common.nix
18
common.nix
|
@ -8,17 +8,7 @@
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.users.root = { ... }: {
|
home-manager.users.root = { ... }: {
|
||||||
imports = [
|
imports = [ ./home/env ./home/tui ./home/git/personal.nix ./home/ssh/personal.nix ];
|
||||||
./home/env/bash.nix
|
|
||||||
./home/env/fish.nix
|
|
||||||
./home/env/bat.nix
|
|
||||||
./home/env/starship.nix
|
|
||||||
./home/tui/neovim.nix
|
|
||||||
./home/tui/lazygit.nix
|
|
||||||
./home/git/personal.nix
|
|
||||||
];
|
|
||||||
# Home Manager needs a bit of information about you and the
|
|
||||||
# paths it should manage.
|
|
||||||
home.username = "root";
|
home.username = "root";
|
||||||
home.homeDirectory = "/root";
|
home.homeDirectory = "/root";
|
||||||
home.stateVersion = "22.11";
|
home.stateVersion = "22.11";
|
||||||
|
@ -30,11 +20,7 @@
|
||||||
# Enable power-profiles
|
# Enable power-profiles
|
||||||
services.power-profiles-daemon.enable = true;
|
services.power-profiles-daemon.enable = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [ home-manager ];
|
||||||
dig
|
|
||||||
gnumake
|
|
||||||
home-manager
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.nix-ld = {
|
programs.nix-ld = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
{ ... }: {
|
|
||||||
imports = [
|
|
||||||
./env/xenia.nix
|
|
||||||
./tui
|
|
||||||
];
|
|
||||||
# Home Manager needs a bit of information about you and the
|
|
||||||
# paths it should manage.
|
|
||||||
home.username = "xenia";
|
|
||||||
home.homeDirectory = "/home/xenia";
|
|
||||||
home.stateVersion = "22.11";
|
|
||||||
}
|
|
|
@ -1,25 +1,12 @@
|
||||||
{ pkgs, ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [ ./personal.nix ];
|
||||||
./git/personal.nix
|
|
||||||
./env/zsh.nix
|
|
||||||
./env/fish.nix
|
|
||||||
./env/bat.nix
|
|
||||||
./env/direnv.nix
|
|
||||||
./env/keychain.nix
|
|
||||||
./env/starship.nix
|
|
||||||
./ssh/personal.nix
|
|
||||||
./terminal/wezterm.nix
|
|
||||||
./tui/neovim.nix
|
|
||||||
./tui/lazygit.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.
|
||||||
home.username = "tux";
|
home.username = "tux";
|
||||||
home.homeDirectory = "/Users/tux";
|
home.homeDirectory = "/Users/tux";
|
||||||
home.stateVersion = "22.11";
|
home.stateVersion = "22.11";
|
||||||
|
|
||||||
home.packages = with pkgs; [ silver-searcher ];
|
|
||||||
services.syncthing.enable = true;
|
services.syncthing.enable = true;
|
||||||
|
|
||||||
programs.zsh.shellAliases.update = "home-manager switch";
|
programs.zsh.shellAliases.update = "home-manager switch";
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
{ ... }: {
|
|
||||||
imports = [
|
|
||||||
./env
|
|
||||||
./env/git/personal.nix
|
|
||||||
./tui
|
|
||||||
];
|
|
||||||
# Home Manager needs a bit of information about you and the
|
|
||||||
# paths it should manage.
|
|
||||||
home.username = "xenia";
|
|
||||||
home.homeDirectory = "/home/xenia";
|
|
||||||
home.stateVersion = "22.11";
|
|
||||||
}
|
|
|
@ -1,4 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
programs.chromium.enable = true;
|
|
||||||
}
|
|
|
@ -1,8 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
imports = [ ./chromium.nix ];
|
|
||||||
programs.chromium.commandLineArgs = [
|
|
||||||
"--enable-features=UseOzonePlatform"
|
|
||||||
"--ozone-platform=wayland"
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -1,4 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
programs.firefox.enable = true;
|
|
||||||
}
|
|
|
@ -1,4 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
programs.librewolf.enable = true;
|
|
||||||
}
|
|
|
@ -1,26 +0,0 @@
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
../../browser/librewolf.nix
|
|
||||||
../../desktop/wayland/hyprland.nix
|
|
||||||
../../env/bash.nix
|
|
||||||
../../env/fish.nix
|
|
||||||
../../env/bat.nix
|
|
||||||
../../env/direnv.nix
|
|
||||||
../../env/keychain.nix
|
|
||||||
../../env/nix-index.nix
|
|
||||||
../../env/pypoetry.nix
|
|
||||||
../../env/starship.nix
|
|
||||||
../../terminal/wezterm.nix
|
|
||||||
../../tui/neovim.nix
|
|
||||||
../../tui/lazygit.nix
|
|
||||||
];
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
bitwarden
|
|
||||||
file
|
|
||||||
marktext
|
|
||||||
silver-searcher
|
|
||||||
signal-desktop
|
|
||||||
zotero
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -2,6 +2,4 @@
|
||||||
let
|
let
|
||||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||||
in
|
in
|
||||||
{
|
{ imports = [ (import "${home-manager}/nixos") ]; }
|
||||||
imports = [ (import "${home-manager}/nixos") ];
|
|
||||||
}
|
|
||||||
|
|
14
home/env/default.nix
vendored
Normal file
14
home/env/default.nix
vendored
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./bash.nix
|
||||||
|
./bat.nix
|
||||||
|
./direnv.nix
|
||||||
|
./fish.nix
|
||||||
|
./keychain.nix
|
||||||
|
./nix-index.nix
|
||||||
|
./readline.nix
|
||||||
|
./starship.nix
|
||||||
|
];
|
||||||
|
home.packages = with pkgs; [ dig file gnumake silver-searcher ];
|
||||||
|
}
|
4
home/env/pypoetry.nix
vendored
4
home/env/pypoetry.nix
vendored
|
@ -1,4 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
xdg.configFile."pypoetry".source = ./config/pypoetry;
|
|
||||||
}
|
|
8
home/env/syncthing.nix
vendored
8
home/env/syncthing.nix
vendored
|
@ -1,8 +0,0 @@
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
services.syncthing = {
|
|
||||||
enable = true;
|
|
||||||
tray.enable = true;
|
|
||||||
};
|
|
||||||
home.packages = with pkgs; [ syncthing-cli ];
|
|
||||||
}
|
|
12
home/gui/default.nix
Normal file
12
home/gui/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
imports = [ ./wezterm.nix ];
|
||||||
|
programs.firefox.enable = true;
|
||||||
|
programs.librewolf.enable = true;
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
bitwarden
|
||||||
|
marktext
|
||||||
|
signal-desktop
|
||||||
|
zotero
|
||||||
|
];
|
||||||
|
}
|
13
home/gui/wezterm.nix
Normal file
13
home/gui/wezterm.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
programs.wezterm = {
|
||||||
|
enable = true;
|
||||||
|
extraConfig = builtins.readFile ./config/wezterm/wezterm.lua;
|
||||||
|
};
|
||||||
|
xdg.configFile = {
|
||||||
|
"wezterm/tab_bar_style.lua".source = ./config/wezterm/tab_bar_style.lua;
|
||||||
|
"wezterm/navigator.lua".source = ./config/wezterm/navigator.lua;
|
||||||
|
"wezterm/keys.lua".source = ./config/wezterm/keys.lua;
|
||||||
|
"wezterm/key_tables.lua".source = ./config/wezterm/key_tables.lua;
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,9 +1,11 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../common/desktop.nix
|
./env
|
||||||
../../git/personal.nix
|
./gui
|
||||||
../../ssh/personal.nix
|
./tui
|
||||||
|
./git/personal.nix
|
||||||
|
./ssh/personal.nix
|
||||||
];
|
];
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
discord
|
discord
|
|
@ -1,16 +1,11 @@
|
||||||
{ ... }:
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
imports = [ ./common.nix ];
|
imports = [ ./common.nix ];
|
||||||
programs.ssh.matchBlocks = {
|
programs.ssh.matchBlocks = {
|
||||||
"legion xenia xenia.me.uk" = {
|
"legion" = { port = 30; };
|
||||||
|
"vanguard" = { hostname = "192.168.1.166"; port = 22; };
|
||||||
|
"legion vanguard xenia.me.uk" = lib.hm.dag.entryAfter [ "legion" "vanguard" ] {
|
||||||
user = "root";
|
user = "root";
|
||||||
hostname = "xenia.me.uk";
|
|
||||||
port = 30;
|
|
||||||
forwardAgent = true;
|
|
||||||
};
|
|
||||||
"vanguard" = {
|
|
||||||
user = "root";
|
|
||||||
hostname = "192.168.1.166";
|
|
||||||
forwardAgent = true;
|
forwardAgent = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
programs.wezterm.enable = true;
|
|
||||||
xdg.configFile."wezterm".source = ./config/wezterm;
|
|
||||||
}
|
|
7
home/tui/default.nix
Normal file
7
home/tui/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./neovim.nix
|
||||||
|
./lazygit.nix
|
||||||
|
];
|
||||||
|
}
|
|
@ -4,6 +4,7 @@
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
|
extraLuaConfig = builtins.readFile ./config/nvim/init.lua;
|
||||||
viAlias = true;
|
viAlias = true;
|
||||||
vimAlias = true;
|
vimAlias = true;
|
||||||
vimdiffAlias = true;
|
vimdiffAlias = true;
|
||||||
|
@ -40,5 +41,5 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
home.packages = with pkgs; [ tree-sitter ];
|
home.packages = with pkgs; [ tree-sitter ];
|
||||||
xdg.configFile."nvim".source = ./config/nvim;
|
xdg.configFile."nvim/lua".source = ./config/nvim/lua;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../common/desktop.nix
|
./env
|
||||||
../../git/work.nix
|
./gui
|
||||||
../../ssh/work.nix
|
./tui
|
||||||
|
./git/work.nix
|
||||||
|
./ssh/work.nix
|
||||||
];
|
];
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
libreoffice-fresh
|
libreoffice-fresh
|
Loading…
Reference in a new issue