nixos-config/home-manager/default.nix

297 lines
5.8 KiB
Nix
Raw Normal View History

{ config, pkgs, lib, ... }:
2022-01-25 00:31:56 +00:00
let
home-manager = (import ../nix/sources.nix).home-manager;
unstable = import <nixos-unstable> {};
2022-02-06 23:01:27 +00:00
in
{
2022-01-25 00:31:56 +00:00
imports = [
"${home-manager}/nixos"
];
2022-02-06 22:31:17 +00:00
2022-01-25 00:31:56 +00:00
home-manager.users.fleaz = { pkgs, ... }: {
imports = [
2022-02-06 23:01:27 +00:00
modules/neovim.nix
modules/vscode.nix
2022-02-07 00:09:06 +00:00
modules/sway.nix
2022-03-01 22:59:14 +00:00
modules/git.nix
modules/gpg.nix
] ++ lib.optionals (config.networking.hostName == "jimbo") [
modules/kanshi.nix
2022-03-16 22:24:33 +00:00
../secrets/codemonauts.nix
2022-01-25 00:31:56 +00:00
];
2022-02-06 22:31:17 +00:00
gtk = {
enable = true;
theme.name = "Adwaita";
};
xdg = {
enable = true;
};
2022-02-06 22:31:17 +00:00
services.gnome-keyring.enable = true;
2022-02-16 16:10:37 +00:00
# e.g. for 1password
2022-01-25 00:31:56 +00:00
nixpkgs.config.allowUnfree = true;
2022-02-16 16:10:37 +00:00
2022-03-16 22:24:33 +00:00
2022-01-25 00:31:56 +00:00
home.packages = with pkgs; [
httpie
wdisplays
albert
firefox
2022-01-28 14:34:35 +00:00
evince
2022-01-25 00:31:56 +00:00
chromium
discord
gnome.gnome-keyring
via
nextcloud-client
deluge
gnupg
gpicview
2022-01-25 00:31:56 +00:00
docker-compose
hicolor-icon-theme
gnome3.adwaita-icon-theme
cinnamon.nemo
element-desktop
signal-desktop
2022-03-16 22:24:33 +00:00
nix-output-monitor
gvfs
samba
2022-01-25 00:31:56 +00:00
dnsutils
mtr
tig
ncdu
fd
fzf
silver-searcher
thunderbird-wayland
mosh
mpv
poetry
go
python3Minimal
2022-02-07 00:09:06 +00:00
pavucontrol
playerctl
jq
2022-03-01 23:00:03 +00:00
psmisc
zip
nmap
vnstat
2022-01-25 00:31:56 +00:00
swaylock
swayidle
brightnessctl
2022-01-25 00:31:56 +00:00
wl-clipboard
mako
sway-contrib.grimshot
albert
foot
wofi
unzip
whois
sublime-music
unstable.prusa-slicer
2022-01-25 00:31:56 +00:00
htop
xdg-utils
2022-03-29 14:58:31 +00:00
# for coc
nodejs
] ++ lib.optionals (config.networking.hostName == "jimbo") [
networkmanager
# Stuff only needed for work
networkmanager-openvpn
packer
chefdk
awscli
2022-03-16 22:24:33 +00:00
shared-2fa
igproxy-access
2022-01-25 00:31:56 +00:00
];
2022-01-25 00:31:56 +00:00
programs.zsh = {
enable = true;
sessionVariables = {
EDITOR = "vim";
XDG_SCREENSHOTS_DIR = "/home/fleaz/screenshots/";
PATH = "$PATH:/home/fleaz/bin";
2022-02-23 22:42:42 +00:00
DEFAULT_BROWSER = "${pkgs.firefox}/bin/firefox";
};
2022-01-25 00:31:56 +00:00
oh-my-zsh = {
enable = true;
plugins = [ "git" "fzf" ];
theme = "robbyrussell";
};
history.size = 10000;
};
programs.git = {
enable = true;
userName = "fleaz";
userEmail = "mail@felixbreidenstein.de";
};
programs.waybar = {
enable = true;
settings = [ {
layer = "top";
position = "bottom";
height = 28;
modules-left = [
"sway/workspaces"
"sway/mode"
"sway/window"
];
modules-center = [
];
modules-right = [
"pulseaudio"
"network"
"memory"
"cpu"
"temperature"
"battery"
"tray"
"clock"
];
modules = {
"battery" = {
states = {
warning = 30;
critical = 15;
};
format = " {capacity}%";
format-discharging = "{icon} {capacity}%";
format-icons = [
""
""
""
""
""
""
""
""
""
""
];
};
"cpu" = {
format = " {}";
};
"clock" = {
format = "{:%H:%M}";
tooltip = false;
};
"memory" = {
interval = 5;
format = " {}%";
tooltip-format = "{used:0.1f}/{total:0.1f} GB";
states = {
warning = 70;
critical = 90;
};
};
"network" = {
interface = "wl*";
format-wifi = " {essid}";
format-icons = [
""
];
tooltip-format-wifi = "{frequency} MHz, {signaldBm} dBm";
};
"pulseaudio" = {
scroll-step = 1;
format = "{icon} {volume}%";
format-bluetooth = "{icon} {volume}% ";
format-muted = "";
format-icons = {
headphones = "";
handsfree = "";
headset = "";
phone = "";
portable = "";
car = "";
default = ["" ""];
};
on-click ="pavucontrol";
};
"sway/workspaces" = {
all-outputs = false;
disable-scroll = false;
format = "{name}";
};
"temperature" = {
format = " {temperatureC}°C";
};
};
} ];
style = builtins.readFile ./waybar.css;
};
2022-01-25 00:31:56 +00:00
programs.mako = {
enable = true;
groupBy = "app-name";
defaultTimeout = 5000;
};
services.kanshi = {
enable = true;
};
services.gammastep = {
2022-01-25 00:31:56 +00:00
enable = true;
tray = true;
2022-01-25 00:31:56 +00:00
latitude = "49.8";
longitude = "8.6";
temperature = {
day = 5500;
night = 3300;
};
2022-02-23 22:42:42 +00:00
2022-01-25 00:31:56 +00:00
};
2022-03-01 23:02:03 +00:00
services.blueman-applet.enable = config.networking.hostName == "jimbo";
2022-01-25 00:31:56 +00:00
programs.foot = {
enable = true;
settings = {
main = {
term = "xterm-256color";
font = "FiraCode:size=14";
};
scrollback = { lines = 100000; };
colors = {
alpha = "0.98";
foreground = "B3B1AD";
background = "0A0E14";
regular0 = "01060E";
regular1 = "EA6C73";
regular2 = "91B362";
regular3 = "F9AF4F";
regular4 = "53BDFA";
regular5 = "FAE994";
regular6 = "90E1C6";
regular7 = "C7C7C7";
bright0 = "686868";
bright1 = "F07178";
bright2 = "C2D94C";
bright3 = "FFB454";
bright4 = "59C2FF";
bright5 = "FFEE99";
bright6 = "95E6CB";
bright7 = "FFFFFF";
};
};
};
2022-01-26 19:45:40 +00:00
};
}