configs/nixos-config/home-manager.nix

128 lines
2.8 KiB
Nix
Raw Normal View History

2023-05-01 16:48:53 +02:00
{ config, pkgs, ... }:
2023-04-16 19:29:38 +02:00
let
user = "exu";
hostname = "nixos";
in
{
imports = [
<home-manager/nixos>
];
# root home
home-manager.users.root = { pkgs, ... }: {
home.username = "root";
home.homeDirectory = "/root";
home.stateVersion = "22.11";
2023-04-17 21:52:24 +02:00
home.packages = with pkgs; [
kitty # terminfo support
];
2023-04-18 17:02:45 +02:00
imports = [
2023-05-01 09:47:30 +02:00
./home-manager/hyprland.nix
2023-05-01 09:48:31 +02:00
./home-manager/fish.nix
2023-04-18 17:02:45 +02:00
];
};
2023-04-17 21:02:17 +02:00
# keep everything using home manager within this block
2023-04-16 19:29:38 +02:00
home-manager.users.${user} = { pkgs, ... }: {
2023-04-17 21:02:17 +02:00
home.username = "${user}";
home.homeDirectory = "/home/${user}";
2023-04-16 19:29:38 +02:00
home.stateVersion = "22.11";
home.packages = with pkgs; [
firefox # browser
kitty # terminal
pciutils # lspci command
git # git
emacs # emacs editor
emacsPackages.doom # doom emacs configuration
acpilight # controlling laptop monitor backlight
networkmanagerapplet # network configuration
wofi # app launcher (wayland replacement for rofi)
fish # fish shell
2023-04-18 18:07:19 +02:00
libnotify # notifications
2023-04-18 18:05:33 +02:00
mako # notification daemon
xdg-desktop-portal-hyprland # desktop portal (hyprland fork)
2023-05-01 12:49:53 +02:00
#neovim # text editor
2023-05-01 12:33:34 +02:00
yt-dlp # video downloader
2023-05-01 14:59:04 +02:00
#sweet # gtk theme
2023-05-01 16:23:51 +02:00
waybar # status bar
2023-05-01 17:39:08 +02:00
playerctl # mpris
2023-04-16 19:29:38 +02:00
];
2023-04-17 20:31:22 +02:00
2023-04-18 17:11:04 +02:00
imports = [
2023-05-01 09:39:08 +02:00
./home-manager/hyprland.nix
2023-05-01 09:48:31 +02:00
./home-manager/fish.nix
2023-04-18 17:11:04 +02:00
];
systemd.user = {
# user services
services = {
# ssh-agent user service
ssh-agent = {
Unit = {
Description = "SSH key agent";
};
Service = {
Type = "simple";
Environment = "SSH_AUTH_SOCK=%t/ssh-agent.socket";
ExecStart = "/run/current-system/sw/bin/ssh-agent -D -a $SSH_AUTH_SOCK";
};
Install = {
WantedBy = [ "default.target" ];
};
2023-05-01 11:38:22 +02:00
};
};
# user environment variables
sessionVariables = {
SSH_AUTH_SOCK = "/run/user/1000/ssh-agent.socket";
};
2023-05-01 11:38:22 +02:00
};
2023-05-01 13:32:34 +02:00
# git configuration
2023-05-01 13:36:03 +02:00
programs.git = {
enable = true;
extraConfig = {
init = {
defaultBranch = "main";
};
user = {
name = "RealStickman";
email = "mrc@frm01.net";
};
gitlab = {
user = "RealStickman";
};
github = {
user = "RealStickman";
};
2023-05-01 13:32:34 +02:00
};
};
2023-05-01 16:23:51 +02:00
programs.waybar = {
enable = true;
2023-05-01 16:52:08 +02:00
settings = {
2023-05-01 17:03:05 +02:00
mainBar = (builtins.fromJSON (builtins.readFile ./home-manager/config/waybar/config.json));
2023-05-01 16:52:08 +02:00
};
2023-05-01 16:23:51 +02:00
};
2023-05-01 13:52:14 +02:00
# gtk theming
2023-05-01 14:59:04 +02:00
#gtk = {
# enable = true;
# theme = {
# name = "Sweet-Dark";
# };
# iconTheme = {
# name = "Sweet-Rainbow";
# };
# font = {
# name = "Fira Sans";
# size = 12;
# };
#};
2023-05-01 13:52:14 +02:00
2023-04-18 18:05:33 +02:00
services.mako.enable = true;
2023-04-17 20:31:22 +02:00
};
2023-04-16 19:29:38 +02:00
}