more home-manager

This commit is contained in:
minish 2024-12-31 22:20:02 -05:00
parent a4b2b405c0
commit cde9b046be
Signed by: min
SSH Key Fingerprint: SHA256:NFjjdbkd6u7aoMlcrDCVvz6o2UBtlAuPm8IQ2vhZ3Fg
10 changed files with 74 additions and 9 deletions

View File

@ -1,8 +1,12 @@
{pkgs, ...}: {
home.packages = [pkgs.fastfetch];
imports = [
./git.nix
./helix.nix
./nh.nix
./shell.nix
];
programs.zsh.enable = true;
home.packages = [pkgs.fastfetch];
home.stateVersion = "24.11";
}

17
homes/min/git.nix Normal file
View File

@ -0,0 +1,17 @@
_: {
programs.git = {
enable = true;
userName = "min";
userEmail = "minish@riseup.net";
aliases = {
lol = "log --pretty=oneline --reverse";
};
extraConfig = {
gpg.format = "ssh";
init.defaultBranch = "main";
core.pager = "";
};
};
}

14
homes/min/helix.nix Normal file
View File

@ -0,0 +1,14 @@
_: {
programs.helix = {
enable = true;
defaultEditor = true;
settings = {
theme = "autumn";
editor = {
cursor-shape.insert = "bar";
file-picker.hidden = "false";
};
};
};
}

5
homes/min/nh.nix Normal file
View File

@ -0,0 +1,5 @@
_: {
programs.nh = {
enable = true;
};
}

18
homes/min/shell.nix Normal file
View File

@ -0,0 +1,18 @@
_: {
programs = {
zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
};
direnv = {
enable = true;
enableZshIntegration = true;
};
zoxide.enable = true;
tmux.enable = true;
};
}

View File

@ -1,4 +1,4 @@
{...}: {
_: {
# Enable sound.
services.pipewire = {
enable = true;

View File

@ -1,4 +1,4 @@
{...}: {
_: {
# TODO: lanzaboote
boot = {
loader = {

View File

@ -1,4 +1,8 @@
{config, ...}: {
{
inputs,
config,
...
}: {
imports = [
./audio.nix
./bootloader.nix
@ -49,7 +53,10 @@
services.pcscd.enable = true;
# Home-manager
home-manager.users.${config.users.users.min.name} = import ../../homes/min;
home-manager = {
extraSpecialArgs = {inherit inputs;};
users.${config.users.users.min.name} = import ../../homes/min;
};
system.stateVersion = "24.11";
}

View File

@ -1,4 +1,4 @@
{...}: {
_: {
sops = {
defaultSopsFile = ../../secrets/mpl.yaml;
age.sshKeyPaths = ["/persist/etc/ssh/ssh_host_ed25519_key"];

View File

@ -1,3 +1,3 @@
{...}: {
_: {
networking.nameservers = ["1.1.1.1" "1.0.0.1"];
}