♻️ refactor home-manager / dotfiles to use chezmoi
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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 = {
|
||||
|
Reference in New Issue
Block a user