Reset from zero

This commit is contained in:
41666 2023-12-11 18:18:41 -05:00
commit 7520235965
46 changed files with 1783 additions and 0 deletions

View file

@ -0,0 +1,13 @@
{ pkgs, lib, ... }: {
programs.direnv = {
enable = true;
enableBashIntegration = true;
#enableFishIntegration = lib.mkDefault true;
#enableZshIntegration = lib.mkDefault true;
nix-direnv.enable = true;
};
programs.zsh.enable = true;
programs.fish.enable = true;
programs.bash.enable = true;
}

View file

@ -0,0 +1,7 @@
{ pkgs, ... }: {
programs.git = {
enable = true;
userName = "noe";
userEmail = "git@kat.cafe";
};
}

View file

@ -0,0 +1,34 @@
{ inputs, outputs, lib, ... }:
{
imports = [
inputs.sops-nix.homeManagerModules.sops
../../features/direnv.nix
../../features/git.nix
] ++ (builtins.attrValues outputs.homeManagerModules);
nixpkgs = {
overlays = [
outputs.overlays.additions
outputs.overlays.modifications
outputs.overlays.unstable-packages
inputs.nur.overlay
];
config = {
allowUnfree = true;
allowUnfreePredicate = (_: true);
};
};
home = {
sessionVariables = {
EDITOR = "nvim";
TERMINAL = lib.mkDefault "kitty";
COLORTERM = lib.mkDefault "truecolor";
BROWSER = lib.mkDefault "firefox";
};
};
programs.home-manager.enable = true;
home.stateVersion = "24.05";
}

View file

@ -0,0 +1,10 @@
{ pkgs, ... }:
let
inherit (pkgs.stdenv) isDarwin;
in
{
home = {
username = "noe";
homeDirectory = if isDarwin then "/Users/noe" else "/home/noe";
};
}

View file

@ -0,0 +1,11 @@
{ pkgs, ... }:
let
inherit (pkgs.stdenv) isDarwin;
username = builtins.getEnv "USER";
in
{
home = {
inherit username;
homeDirectory = if isDarwin then "/Users/${username}" else "/home/${username}";
};
}

View file

@ -0,0 +1,6 @@
{ ... }: {
imports = [
../common
../common/home-user.nix
];
}

View file

@ -0,0 +1,6 @@
{ ... }: {
imports = [
../common
../common/home-user.nix
];
}

View file

@ -0,0 +1,6 @@
username: {
imports = [
../common
../common/work-user.nix
];
}