♻️ refactor home-manager / dotfiles to use chezmoi

This commit is contained in:
2024-09-14 18:12:01 -04:00
parent 6321f08230
commit d9173abb79
15 changed files with 76 additions and 211 deletions

View File

@ -1,13 +1,6 @@
{ pkgs, ... }:
_:
{
environment.systemPackages = with pkgs; [
dogdns
htop
inetutils
vim
];
nix = {
extraOptions = ''
experimental-features = nix-command flakes
@ -30,10 +23,5 @@
};
};
programs = {
zsh = {
enable = true;
promptInit = "";
};
};
programs.zsh.enable = true;
}

View File

@ -1,6 +1,6 @@
{ pkgs, dotfiles, ... }: {
{ ... }: {
imports = [ ./common.nix ];
imports = [ ./common.nix ../../users ];
nix = {
configureBuildUsers = true;
@ -42,16 +42,5 @@
};
};
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.walkah = import "${dotfiles}/home.nix";
};
users.users.walkah = {
home = "/Users/walkah";
shell = pkgs.zsh;
};
system.stateVersion = 4;
}

View File

@ -1,6 +1,12 @@
{ config, ... }: {
{ config, pkgs, ... }: {
imports = [ ./common.nix ../monitoring ];
imports = [ ./common.nix ../monitoring ../../users ];
environment.systemPackages = with pkgs; [
htop
inetutils
vim
];
nix = {
gc = {

View File

@ -32,8 +32,5 @@
nixd
nixf
nixpkgs-fmt
# My stuff
workon
];
}