Use Home Manager
This commit is contained in:
parent
02085251d0
commit
a21240fd57
3 changed files with 63 additions and 24 deletions
18
flake.nix
18
flake.nix
|
|
@ -4,17 +4,31 @@
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
||||||
|
|
||||||
|
home-manager = {
|
||||||
|
url = "github:nix-community/home-manager/release-25.05";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
disko = {
|
disko = {
|
||||||
url = "github:nix-community/disko/latest";
|
url = "github:nix-community/disko/latest";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, disko, ... }: {
|
outputs = { nixpkgs, home-manager, disko, ... }: {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
opti = nixpkgs.lib.nixosSystem {
|
opti = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
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 ./hosts/opti/home.nix;
|
||||||
|
}
|
||||||
|
disko.nixosModules.disko
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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";
|
environment.variables.EDITOR = "nvim";
|
||||||
|
|
||||||
users.users.wekuz = {
|
users.users.wekuz = {
|
||||||
|
|
|
||||||
47
hosts/opti/home.nix
Normal file
47
hosts/opti/home.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
{ 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;
|
||||||
|
userName = "Wekuz";
|
||||||
|
userEmail = "wekuz@duck.com";
|
||||||
|
extraConfig = { init.defaultBranch = "main"; };
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.zsh = { enable = true; };
|
||||||
|
|
||||||
|
home.stateVersion = "25.05";
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue