Initial commit
This commit is contained in:
12
home/axolotsh-server/home.nix
Normal file
12
home/axolotsh-server/home.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ ... } : {
|
||||
programs.home-manager.enable = true;
|
||||
home = {
|
||||
username = "axolotsh";
|
||||
homeDirectory = "/home/axolotsh";
|
||||
stateVersion = "25.05";
|
||||
};
|
||||
|
||||
imports = [
|
||||
./index.nix
|
||||
];
|
||||
}
|
||||
9
home/axolotsh-server/index.nix
Normal file
9
home/axolotsh-server/index.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ self, ... } : {
|
||||
imports = [
|
||||
"${self}/home/common/bash-aliases.nix"
|
||||
"${self}/home/common/git.nix"
|
||||
"${self}/home/common/fastfetch.nix"
|
||||
|
||||
./packages.nix
|
||||
];
|
||||
}
|
||||
3
home/axolotsh-server/packages.nix
Normal file
3
home/axolotsh-server/packages.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{ self, pkgs, ... } : {
|
||||
imports = [ "${self}/home/common/packages.nix" ];
|
||||
}
|
||||
12
home/axolotsh/home.nix
Normal file
12
home/axolotsh/home.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ ... } : {
|
||||
programs.home-manager.enable = true;
|
||||
home = {
|
||||
username = "axolotsh";
|
||||
homeDirectory = "/home/axolotsh";
|
||||
stateVersion = "25.05";
|
||||
};
|
||||
|
||||
imports = [
|
||||
./index.nix
|
||||
];
|
||||
}
|
||||
9
home/axolotsh/index.nix
Normal file
9
home/axolotsh/index.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ self, ... } : {
|
||||
imports = [
|
||||
"${self}/home/common/bash-aliases.nix"
|
||||
"${self}/home/common/git.nix"
|
||||
"${self}/home/common/fastfetch.nix"
|
||||
|
||||
./packages.nix
|
||||
];
|
||||
}
|
||||
3
home/axolotsh/packages.nix
Normal file
3
home/axolotsh/packages.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{ self, pkgs, ... } : {
|
||||
imports = [ "${self}/home/common/packages.nix" ];
|
||||
}
|
||||
21
home/common/bash-aliases.nix
Normal file
21
home/common/bash-aliases.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ self, ... } : {
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
editor = "nano";
|
||||
|
||||
sync = "cd ${self} && git pull && cd -";
|
||||
|
||||
rebuild = "sudo nixos-rebuild switch --flake ${self}";
|
||||
|
||||
nix-path = "cd ${self}";
|
||||
gen-list = "sudo nix-env -p /nix/var/nix/profiles/system --list-generations";
|
||||
clean = "sudo nix-collect-garbage -d";
|
||||
update = "sudo nix-channel --update";
|
||||
update-flake = "cd ${self} && nix flake update && cd -";
|
||||
upgrade = "sudo nixos-rebuild switch --upgrade --flake ${self}";
|
||||
|
||||
search = "nix search";
|
||||
};
|
||||
};
|
||||
}
|
||||
45
home/common/fastfetch.nix
Normal file
45
home/common/fastfetch.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{ pkgs, ... } : {
|
||||
home.packages = with pkgs; [
|
||||
fastfetch
|
||||
];
|
||||
|
||||
programs.fastfetch = {
|
||||
enable = true;
|
||||
settings = {
|
||||
logo = {
|
||||
source = "nixos";
|
||||
type = "auto";
|
||||
};
|
||||
display = {
|
||||
separator = " › ";
|
||||
};
|
||||
modules = [
|
||||
"title"
|
||||
"separator"
|
||||
"os"
|
||||
"kernel"
|
||||
"uptime"
|
||||
"packages"
|
||||
"shell"
|
||||
"terminal"
|
||||
"cpu"
|
||||
"gpu"
|
||||
"memory"
|
||||
"swap"
|
||||
"disk"
|
||||
"locale"
|
||||
"localip"
|
||||
"break"
|
||||
"colors"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
fetch = "fastfetch";
|
||||
};
|
||||
initExtra = "fetch";
|
||||
};
|
||||
}
|
||||
12
home/common/git.nix
Normal file
12
home/common/git.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ ... } : {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
user = {
|
||||
name = "AXOLOTsh";
|
||||
email = "96595812+AXOLOTsh@users.noreply.github.com";
|
||||
};
|
||||
init.defaultBranch = "main";
|
||||
};
|
||||
};
|
||||
}
|
||||
23
home/common/packages.nix
Normal file
23
home/common/packages.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ pkgs, ... } : {
|
||||
home.packages = with pkgs; [
|
||||
# region Tools
|
||||
git
|
||||
gh
|
||||
|
||||
screen
|
||||
|
||||
mc
|
||||
|
||||
btop
|
||||
|
||||
wget
|
||||
traceroute
|
||||
dnsutils
|
||||
|
||||
atool
|
||||
zip
|
||||
unzip
|
||||
p7zip
|
||||
# endregion
|
||||
];
|
||||
}
|
||||
8
home/jam/bash-aliases.nix
Normal file
8
home/jam/bash-aliases.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ self, ... } : {
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
editor = "nano";
|
||||
};
|
||||
};
|
||||
}
|
||||
12
home/jam/home.nix
Normal file
12
home/jam/home.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ ... } : {
|
||||
programs.home-manager.enable = true;
|
||||
home = {
|
||||
username = "jam";
|
||||
homeDirectory = "/home/jam";
|
||||
stateVersion = "25.05";
|
||||
};
|
||||
|
||||
imports = [
|
||||
./index.nix
|
||||
];
|
||||
}
|
||||
9
home/jam/index.nix
Normal file
9
home/jam/index.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ self, ... } : {
|
||||
imports = [
|
||||
"${self}/home/common/fastfetch.nix"
|
||||
|
||||
./bash-aliases.nix
|
||||
|
||||
./packages.nix
|
||||
];
|
||||
}
|
||||
3
home/jam/packages.nix
Normal file
3
home/jam/packages.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{ self, pkgs, ... } : {
|
||||
imports = [ "${self}/home/common/packages.nix" ];
|
||||
}
|
||||
8
home/mirsem/bash-aliases.nix
Normal file
8
home/mirsem/bash-aliases.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ self, ... } : {
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
editor = "nano";
|
||||
};
|
||||
};
|
||||
}
|
||||
12
home/mirsem/home.nix
Normal file
12
home/mirsem/home.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ ... } : {
|
||||
programs.home-manager.enable = true;
|
||||
home = {
|
||||
username = "mirsem";
|
||||
homeDirectory = "/home/mirsem";
|
||||
stateVersion = "25.05";
|
||||
};
|
||||
|
||||
imports = [
|
||||
./index.nix
|
||||
];
|
||||
}
|
||||
9
home/mirsem/index.nix
Normal file
9
home/mirsem/index.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ self, ... } : {
|
||||
imports = [
|
||||
"${self}/home/common/fastfetch.nix"
|
||||
|
||||
./bash-aliases.nix
|
||||
|
||||
./packages.nix
|
||||
];
|
||||
}
|
||||
3
home/mirsem/packages.nix
Normal file
3
home/mirsem/packages.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{ self, pkgs, ... } : {
|
||||
imports = [ "${self}/home/common/packages.nix" ];
|
||||
}
|
||||
Reference in New Issue
Block a user