added home manager

This commit is contained in:
Emile Clark-Boman 2024-10-30 19:45:26 +10:00
parent 045f346d3c
commit 48fb5e798c
7 changed files with 203 additions and 175 deletions

View file

@ -2,10 +2,19 @@
pkgs,
inputs,
...
}: {
}:
let
home-manager = builtins.fetchTarball {
url = "https://github.com/nix-community/home-manager/archive/master.tar.gz";
sha256 = "0kg9iaixqygpncw7avgh1grwyjgnfc9i7k9pk8hc4xrvr8jv2l3c";
};
in
{
imports = [
./hardware-configuration.nix
];
./hardware-configuration.nix
(import "${home-manager}/nixos")
];
# Use the systemd-boot EFI boot loader.
# TODO: use GRUB2 instead
@ -69,41 +78,45 @@
};
};
users.users = {
# just me fr (personal account)
me = {
isNormalUser = true;
extraGroups = [ "wheel" ];
shell = pkgs.fish;
packages = with pkgs; [
firefox
nitch
starfetch
tldr
];
};
# programming/development account
dev = {
isNormalUser = true;
extraGroups = [ "wheel" ];
shell = pkgs.zsh;
packages = with pkgs; [
];
};
# user for my professional jobs and stuff
pro = {
isNormalUser = true;
extraGroups = [ "wheel" ];
shell = pkgs.fish;
packages = with pkgs; [
];
};
};
# new users will use zsh by default
users.defaultUserShell = pkgs.bash;
users = {
defaultUserShell = pkgs.bash;
users = {
# just me fr (personal account)
me = {
isNormalUser = true;
extraGroups = [ "wheel" ];
shell = pkgs.fish;
packages = with pkgs; [
firefox
nitch
starfetch
tldr
];
};
# programming/development account
dev = {
isNormalUser = true;
extraGroups = [ "wheel" ];
shell = pkgs.zsh;
packages = with pkgs; [
];
};
# user for my professional jobs and stuff
ae = {
isNormalUser = true;
extraGroups = [ "wheel" ];
shell = pkgs.fish;
packages = with pkgs; [
];
};
};
};
home-manager.users.me = import ../../homes/me;
# ---- SYSTEM PACKAGES -----
environment.systemPackages = with pkgs; [
# Personally I think these
@ -125,6 +138,8 @@
fish.enable = true;
zsh.enable = true;
git.enable = true;
neovim = {
enable = true;
defaultEditor = true;
@ -141,11 +156,12 @@
};
};
# ----- FONTS -----
fonts = {
enableDefaultPackages = true; # no clue what this line does tbh
fonts = with pkgs; [
packages = with pkgs; [
(nerdfonts.override { fonts = [ "Cousine" "Iosevka" "IosevkaTerm" ]; })
# texlive maintains a noto-emoji flake
@ -163,6 +179,8 @@
};
# Enable the new CLI commands and the flakes as experimental features
nix.settings.experimental-features = [
"nix-command"