Use Home Manager

This commit is contained in:
Wekuz 2025-12-29 21:45:21 +02:00
parent 02085251d0
commit c53497dfd7
Signed by: Wekuz
GPG key ID: 2E502F2AABD32DF9
3 changed files with 67 additions and 24 deletions

View file

@ -4,17 +4,31 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
home-manager = {
url = "github:nix-community/home-manager/release-25.05";
inputs.nixpkgs.follows = "nixpkgs";
};
disko = {
url = "github:nix-community/disko/latest";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, disko, ... }: {
outputs = { nixpkgs, home-manager, disko, ... }: {
nixosConfigurations = {
opti = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ ./hosts/opti disko.nixosModules.disko ];
modules = [
./hosts/opti
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.wekuz = import ./opti/home.nix;
}
disko.nixosModules.disko
];
};
};
};

View file

@ -59,28 +59,6 @@
};
};
environment.systemPackages = with pkgs; [
git
neovim
btop
ncdu
tmux
wget
iperf3
dnsutils
file
which
zstd
zip
xz
unzip
ripgrep
smartmontools
lm_sensors
ethtool
fastfetch
];
environment.variables.EDITOR = "nvim";
users.users.wekuz = {

51
hosts/opti/home.nix Normal file
View file

@ -0,0 +1,51 @@
{ pkgs, ... }:
{
home.username = "wekuz";
home.homeDirectory = "/home/wekuz";
home.packages = with pkgs; [
neofetch
# Utilities
neovim
tmux
zip
xz
unzip
p7zip
zstd
ripgrep
file
which
btop
ncdu
lm_sensors
pciutils
usbutils
smartmontools
# Networking
mtr
iperf3
wget
dnsutils
ldns
ethtool
];
programs.git = {
enable = true;
settings = {
user = {
name = "Wekuz";
email = "wekuz@duck.com";
};
init.defaultBranch = "main";
};
};
programs.zsh = { enable = true; };
home.stateVersion = "25.05";
}