restructuring #1
18
flake.lock
generated
18
flake.lock
generated
@ -7,11 +7,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1738188574,
|
"lastModified": 1739051380,
|
||||||
"narHash": "sha256-I1gh2Ho565SDmbonmzj7sWbEgTXYyERmMT5KwuuaSDo=",
|
"narHash": "sha256-p1QSLO8DJnANY+ppK7fjD8GqfCrEIDjso1CSRHsXL7Y=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "6aa38ffdf77fb4250f5d832fd5a09eb99226fba7",
|
"rev": "5af1b9a0f193ab6138b89a8e0af8763c21bbf491",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -28,11 +28,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1738033138,
|
"lastModified": 1739034224,
|
||||||
"narHash": "sha256-qlIM8A3bdL9c6PexhpS+QyZLO9y/8a3V75HVyJgDE5Q=",
|
"narHash": "sha256-Mj/8jDzh1KNmUhWqEeVlW3hO9MZkxqioJGnmR7rivaE=",
|
||||||
"owner": "LnL7",
|
"owner": "LnL7",
|
||||||
"repo": "nix-darwin",
|
"repo": "nix-darwin",
|
||||||
"rev": "349a74c66c596ef97ee97b4d80a3ca61227b6120",
|
"rev": "0b6f96a6b9efcfa8d3cc8023008bcbcd1b9bc1a4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -43,11 +43,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1738021509,
|
"lastModified": 1739020877,
|
||||||
"narHash": "sha256-JNUiceGsr7cVBUQxLBF1ILCe99E0qLxsVuet6GsZUuw=",
|
"narHash": "sha256-mIvECo/NNdJJ/bXjNqIh8yeoSjVLAuDuTUzAo7dzs8Y=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "9db269672dbdbb519e0bd3ea24f01506c135e46f",
|
"rev": "a79cfe0ebd24952b580b1cf08cd906354996d547",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -67,6 +67,9 @@
|
|||||||
extraSpecialArgs.user = "random";
|
extraSpecialArgs.user = "random";
|
||||||
modules = [
|
modules = [
|
||||||
./home/headful-nixos.nix
|
./home/headful-nixos.nix
|
||||||
|
./home/modules/development.nix
|
||||||
|
./home/modules/gui-apps.nix
|
||||||
|
./home/modules/hacking.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -83,6 +86,7 @@
|
|||||||
extraSpecialArgs.user = "sampledb";
|
extraSpecialArgs.user = "sampledb";
|
||||||
modules = [
|
modules = [
|
||||||
./home/headless-nixos.nix
|
./home/headless-nixos.nix
|
||||||
|
./home/modules/development.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./shared.nix
|
./shared.nix
|
||||||
|
./modules/utils.nix
|
||||||
|
./modules/development.nix
|
||||||
./modules/sketchybar.nix
|
./modules/sketchybar.nix
|
||||||
./modules/aerospace.nix
|
./modules/aerospace.nix
|
||||||
./modules/neovim.nix
|
./modules/neovim.nix
|
||||||
|
@ -7,56 +7,21 @@
|
|||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./shared.nix
|
./shared.nix
|
||||||
./modules/hacking.nix
|
./modules/utils.nix
|
||||||
|
./modules/linux-only-utils.nix
|
||||||
|
./modules/networking.nix
|
||||||
./modules/neovim.nix
|
./modules/neovim.nix
|
||||||
./modules/emacs.nix
|
./modules/emacs.nix
|
||||||
./modules/apps.nix
|
./modules/tmux.nix
|
||||||
./modules/zsh.nix
|
./modules/zsh.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
feh
|
|
||||||
ncdu
|
|
||||||
dconf
|
|
||||||
docker
|
|
||||||
barrier
|
|
||||||
firefox
|
|
||||||
flameshot
|
|
||||||
traceroute
|
|
||||||
pavucontrol
|
|
||||||
virt-viewer
|
|
||||||
bitwarden-cli
|
|
||||||
wireguard-tools
|
|
||||||
nextcloud-client
|
|
||||||
protonmail-desktop
|
|
||||||
nvtopPackages.full
|
|
||||||
];
|
|
||||||
|
|
||||||
services.emacs.enable = true;
|
services.emacs.enable = true;
|
||||||
|
|
||||||
dconf = {
|
home.packages = with pkgs; [
|
||||||
enable = true;
|
bitwarden-cli
|
||||||
settings = {
|
wireguard-tools
|
||||||
"org/gnome/desktop/interface" = {
|
|
||||||
color-scheme = "prefer-dark";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
gtk = {
|
|
||||||
enable = true;
|
|
||||||
theme = {
|
|
||||||
name = "Materia-dark";
|
|
||||||
package = pkgs.materia-theme;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.obs-studio = {
|
|
||||||
enable = true;
|
|
||||||
plugins = with pkgs.obs-studio-plugins; [
|
|
||||||
obs-backgroundremoval
|
|
||||||
];
|
];
|
||||||
};
|
|
||||||
|
|
||||||
home.file = {
|
home.file = {
|
||||||
".Xresources".source = ../dotfiles/.Xresources;
|
".Xresources".source = ../dotfiles/.Xresources;
|
||||||
|
@ -7,13 +7,11 @@
|
|||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./shared.nix
|
./shared.nix
|
||||||
|
./modules/utils.nix
|
||||||
|
./modules/linux-only-utils.nix
|
||||||
|
./modules/networking.nix
|
||||||
./modules/neovim.nix
|
./modules/neovim.nix
|
||||||
|
./modules/tmux.conf
|
||||||
./modules/zsh.nix
|
./modules/zsh.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
ncdu
|
|
||||||
traceroute
|
|
||||||
nvtopPackages.full
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
{pkgs, ... }: {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
vlc
|
|
||||||
typora
|
|
||||||
zoom-us
|
|
||||||
discord
|
|
||||||
libreoffice
|
|
||||||
bitwarden-desktop
|
|
||||||
];
|
|
||||||
}
|
|
10
home/modules/development.nix
Normal file
10
home/modules/development.nix
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{ pkgs, ... }: {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
clang
|
||||||
|
clang-tools
|
||||||
|
cargo
|
||||||
|
python3
|
||||||
|
gnumake
|
||||||
|
ansible
|
||||||
|
];
|
||||||
|
}
|
41
home/modules/gui-apps.nix
Normal file
41
home/modules/gui-apps.nix
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
{pkgs, ... }: {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
feh
|
||||||
|
vlc
|
||||||
|
firefox
|
||||||
|
zoom-us
|
||||||
|
discord
|
||||||
|
flameshot
|
||||||
|
libreoffice
|
||||||
|
pavucontrol
|
||||||
|
virt-viewer
|
||||||
|
nextcloud-client
|
||||||
|
protonmail-desktop
|
||||||
|
bitwarden-desktop
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.obs-studio = {
|
||||||
|
enable = true;
|
||||||
|
plugins = with pkgs.obs-studio-plugins; [
|
||||||
|
obs-backgroundremoval
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
dconf = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
"org/gnome/desktop/interface" = {
|
||||||
|
color-scheme = "prefer-dark";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
gtk = {
|
||||||
|
enable = true;
|
||||||
|
theme = {
|
||||||
|
name = "Materia-dark";
|
||||||
|
package = pkgs.materia-theme;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
6
home/modules/linux-only-utils.nix
Normal file
6
home/modules/linux-only-utils.nix
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{ pkgs, ... }: {
|
||||||
|
home.packages = with pkgs [
|
||||||
|
ncdu
|
||||||
|
nvtopPackages.full
|
||||||
|
];
|
||||||
|
}
|
13
home/modules/networking.nix
Normal file
13
home/modules/networking.nix
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
|
||||||
|
{ pkgs, ... }: {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
# Network tools
|
||||||
|
dig
|
||||||
|
iftop
|
||||||
|
iperf
|
||||||
|
tcpdump
|
||||||
|
ethtool
|
||||||
|
traceroute
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
9
home/modules/tmux.nix
Normal file
9
home/modules/tmux.nix
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{ pkgs, lib, config, ... }: let
|
||||||
|
mypkgs = import ../../packages/all-packages.nix { inherit pkgs lib config };
|
||||||
|
in {
|
||||||
|
home.packages = with pkgs [ tmux ];
|
||||||
|
home.file = {
|
||||||
|
"tmux/plugins/tpm".source = "${mypkgs.tpm}";
|
||||||
|
".tmux.conf".source = ../../dotfiles/.tmux.conf;
|
||||||
|
};
|
||||||
|
}
|
21
home/modules/utils.nix
Normal file
21
home/modules/utils.nix
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{ pkgs, ... }: {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
# Nix specific utilities
|
||||||
|
manix
|
||||||
|
nix-tree
|
||||||
|
|
||||||
|
# Utilities
|
||||||
|
jq
|
||||||
|
bc
|
||||||
|
file
|
||||||
|
wget
|
||||||
|
curl
|
||||||
|
btop
|
||||||
|
p7zip
|
||||||
|
sshpass
|
||||||
|
ripgrep
|
||||||
|
openvpn
|
||||||
|
pciutils
|
||||||
|
fastfetch
|
||||||
|
];
|
||||||
|
}
|
@ -4,7 +4,11 @@
|
|||||||
meslo-lgs-nf
|
meslo-lgs-nf
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.zsh = {
|
programs = {
|
||||||
|
zoxide.enable = true;
|
||||||
|
eza.enable = true;
|
||||||
|
fzf.enable = true;
|
||||||
|
zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
autosuggestion.enable = true;
|
autosuggestion.enable = true;
|
||||||
@ -78,6 +82,10 @@
|
|||||||
{ name = "romkatv/powerlevel10k"; tags = [ as:theme depth:1 ]; }
|
{ name = "romkatv/powerlevel10k"; tags = [ as:theme depth:1 ]; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
home.file = {
|
||||||
|
".functions.zsh".source = ../../dotfiles/.functions.zsh;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,55 +1,10 @@
|
|||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }: {
|
||||||
let
|
|
||||||
mypkgs = import ../packages/all-packages.nix {
|
|
||||||
inherit pkgs lib config;
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
# Nix specific utilities
|
|
||||||
manix
|
|
||||||
nix-tree
|
|
||||||
|
|
||||||
# Utilities
|
|
||||||
jq
|
|
||||||
bc
|
|
||||||
file
|
|
||||||
wget
|
|
||||||
curl
|
|
||||||
tmux
|
|
||||||
btop
|
|
||||||
iftop
|
|
||||||
p7zip
|
|
||||||
sshpass
|
|
||||||
ripgrep
|
|
||||||
openvpn
|
|
||||||
pciutils
|
|
||||||
fastfetch
|
|
||||||
|
|
||||||
# Network tools
|
|
||||||
dig
|
|
||||||
iperf
|
|
||||||
tcpdump
|
|
||||||
ethtool
|
|
||||||
|
|
||||||
# Dev tools
|
|
||||||
clang
|
|
||||||
clang-tools
|
|
||||||
cargo
|
|
||||||
python3
|
|
||||||
gnumake
|
|
||||||
ansible
|
|
||||||
];
|
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
home-manager.enable = true;
|
home-manager.enable = true;
|
||||||
zoxide.enable = true;
|
|
||||||
eza.enable = true;
|
|
||||||
fzf.enable = true;
|
|
||||||
|
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userName = "Random936";
|
userName = "Random936";
|
||||||
@ -57,11 +12,5 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file = {
|
|
||||||
".functions.zsh".source = ../dotfiles/.functions.zsh;
|
|
||||||
".tmux/plugins/tpm".source = "${mypkgs.tpm}";
|
|
||||||
".tmux.conf".source = ../dotfiles/.tmux.conf;
|
|
||||||
};
|
|
||||||
|
|
||||||
home.stateVersion = "24.05";
|
home.stateVersion = "24.05";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user