Reset from zero
This commit is contained in:
commit
7520235965
46 changed files with 1783 additions and 0 deletions
13
home-manager/features/direnv.nix
Normal file
13
home-manager/features/direnv.nix
Normal 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;
|
||||
}
|
7
home-manager/features/git.nix
Normal file
7
home-manager/features/git.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ pkgs, ... }: {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "noe";
|
||||
userEmail = "git@kat.cafe";
|
||||
};
|
||||
}
|
34
home-manager/noe/common/default.nix
Normal file
34
home-manager/noe/common/default.nix
Normal 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";
|
||||
}
|
10
home-manager/noe/common/home-user.nix
Normal file
10
home-manager/noe/common/home-user.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
inherit (pkgs.stdenv) isDarwin;
|
||||
in
|
||||
{
|
||||
home = {
|
||||
username = "noe";
|
||||
homeDirectory = if isDarwin then "/Users/noe" else "/home/noe";
|
||||
};
|
||||
}
|
11
home-manager/noe/common/work-user.nix
Normal file
11
home-manager/noe/common/work-user.nix
Normal 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}";
|
||||
};
|
||||
}
|
6
home-manager/noe/hosts/noe-air.nix
Normal file
6
home-manager/noe/hosts/noe-air.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ ... }: {
|
||||
imports = [
|
||||
../common
|
||||
../common/home-user.nix
|
||||
];
|
||||
}
|
6
home-manager/noe/hosts/thonkpad.nix
Normal file
6
home-manager/noe/hosts/thonkpad.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ ... }: {
|
||||
imports = [
|
||||
../common
|
||||
../common/home-user.nix
|
||||
];
|
||||
}
|
6
home-manager/noe/hosts/work-mac.nix
Normal file
6
home-manager/noe/hosts/work-mac.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
username: {
|
||||
imports = [
|
||||
../common
|
||||
../common/work-user.nix
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue