2022-02-03 10:09:29 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
2022-01-25 00:31:56 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
home-manager = (import ../nix/sources.nix).home-manager;
|
2022-03-30 18:31:33 +00:00
|
|
|
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-05-20 08:39:10 +00:00
|
|
|
modules/direnv.nix
|
2022-02-07 00:09:06 +00:00
|
|
|
modules/sway.nix
|
2022-03-01 22:59:14 +00:00
|
|
|
modules/git.nix
|
2022-03-03 16:10:43 +00:00
|
|
|
modules/gpg.nix
|
2022-05-31 12:09:15 +00:00
|
|
|
modules/udiskie.nix
|
2022-06-15 19:35:24 +00:00
|
|
|
modules/discord.nix
|
2022-02-23 19:55:25 +00:00
|
|
|
] ++ lib.optionals (config.networking.hostName == "jimbo") [
|
|
|
|
modules/kanshi.nix
|
2022-03-16 22:24:33 +00:00
|
|
|
../secrets/codemonauts.nix
|
2022-06-03 21:50:49 +00:00
|
|
|
] ++ lib.optionals (config.networking.hostName == "milhouse") [
|
|
|
|
modules/kanshi.nix
|
2022-01-25 00:31:56 +00:00
|
|
|
];
|
2022-02-06 22:31:17 +00:00
|
|
|
|
2022-02-21 22:43:31 +00:00
|
|
|
gtk = {
|
|
|
|
enable = true;
|
2022-06-15 09:36:48 +00:00
|
|
|
theme = {
|
|
|
|
name = "Adwaita";
|
|
|
|
package = pkgs.gnome3.adwaita-icon-theme;
|
|
|
|
};
|
2022-02-21 22:43:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
xdg = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
2022-02-06 22:31:17 +00:00
|
|
|
services.gnome-keyring.enable = true;
|
|
|
|
|
2022-09-09 14:00:54 +00:00
|
|
|
# e.g. for vscode
|
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
|
|
|
|
via
|
2022-02-06 13:21:22 +00:00
|
|
|
nextcloud-client
|
|
|
|
deluge
|
|
|
|
gnupg
|
|
|
|
gpicview
|
2022-01-25 00:31:56 +00:00
|
|
|
hicolor-icon-theme
|
|
|
|
cinnamon.nemo
|
|
|
|
element-desktop
|
|
|
|
signal-desktop
|
2022-03-16 22:24:33 +00:00
|
|
|
nix-output-monitor
|
2022-04-11 12:27:53 +00:00
|
|
|
gvfs
|
|
|
|
samba
|
2022-01-25 00:31:56 +00:00
|
|
|
|
|
|
|
dnsutils
|
|
|
|
mtr
|
|
|
|
tig
|
|
|
|
ncdu
|
|
|
|
fd
|
|
|
|
silver-searcher
|
|
|
|
thunderbird-wayland
|
|
|
|
mosh
|
|
|
|
mpv
|
|
|
|
poetry
|
|
|
|
go
|
|
|
|
python3Minimal
|
2022-02-07 00:09:06 +00:00
|
|
|
pavucontrol
|
|
|
|
playerctl
|
2022-02-09 10:35:47 +00:00
|
|
|
jq
|
2022-03-01 23:00:03 +00:00
|
|
|
psmisc
|
2022-04-11 12:27:53 +00:00
|
|
|
zip
|
|
|
|
nmap
|
|
|
|
vnstat
|
2022-01-25 00:31:56 +00:00
|
|
|
|
|
|
|
swaylock
|
|
|
|
swayidle
|
2022-03-01 23:00:53 +00:00
|
|
|
brightnessctl
|
2022-01-25 00:31:56 +00:00
|
|
|
wl-clipboard
|
|
|
|
mako
|
|
|
|
sway-contrib.grimshot
|
|
|
|
albert
|
|
|
|
foot
|
|
|
|
wofi
|
2022-03-23 15:31:23 +00:00
|
|
|
unzip
|
|
|
|
whois
|
|
|
|
sublime-music
|
2022-08-05 12:23:29 +00:00
|
|
|
fzf
|
2022-02-03 10:11:08 +00:00
|
|
|
|
2022-03-30 18:31:33 +00:00
|
|
|
unstable.prusa-slicer
|
2022-01-25 00:31:56 +00:00
|
|
|
htop
|
2022-03-01 23:01:30 +00:00
|
|
|
xdg-utils
|
2022-06-21 13:38:11 +00:00
|
|
|
moreutils
|
2022-07-22 09:25:59 +00:00
|
|
|
insomnia
|
2022-02-03 10:09:29 +00:00
|
|
|
|
2022-03-29 14:58:31 +00:00
|
|
|
# for coc
|
|
|
|
nodejs
|
2022-04-25 12:26:15 +00:00
|
|
|
rnix-lsp
|
2022-03-29 14:58:31 +00:00
|
|
|
|
2022-02-03 10:09:29 +00:00
|
|
|
] ++ lib.optionals (config.networking.hostName == "jimbo") [
|
|
|
|
networkmanager
|
2022-03-29 14:59:08 +00:00
|
|
|
|
|
|
|
# Stuff only needed for work
|
2022-02-03 10:09:29 +00:00
|
|
|
networkmanager-openvpn
|
2022-02-03 16:41:04 +00:00
|
|
|
packer
|
2022-03-29 14:59:08 +00:00
|
|
|
chefdk
|
2022-02-03 16:41:04 +00:00
|
|
|
awscli
|
2022-03-16 22:24:33 +00:00
|
|
|
shared-2fa
|
|
|
|
igproxy-access
|
2022-05-03 14:14:30 +00:00
|
|
|
sqlstrip
|
2022-06-03 21:51:36 +00:00
|
|
|
pwgen
|
|
|
|
mysql-client
|
2022-06-03 21:50:49 +00:00
|
|
|
] ++ lib.optionals (config.networking.hostName == "milhouse") [
|
|
|
|
networkmanager
|
2022-01-25 00:31:56 +00:00
|
|
|
];
|
|
|
|
|
2022-02-03 10:09:29 +00:00
|
|
|
|
2022-01-25 00:31:56 +00:00
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
oh-my-zsh = {
|
|
|
|
enable = true;
|
|
|
|
plugins = [ "git" "fzf" ];
|
|
|
|
theme = "robbyrussell";
|
|
|
|
};
|
2022-06-03 21:51:47 +00:00
|
|
|
history = {
|
|
|
|
share = false; # every terminal has it's own history
|
|
|
|
size = 10000;
|
|
|
|
};
|
2022-01-25 00:31:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
userName = "fleaz";
|
|
|
|
userEmail = "mail@felixbreidenstein.de";
|
|
|
|
};
|
|
|
|
|
2022-03-23 19:06:24 +00:00
|
|
|
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 = {
|
2022-06-21 13:38:11 +00:00
|
|
|
warning = 20;
|
|
|
|
critical = 10;
|
2022-03-23 19:06:24 +00:00
|
|
|
};
|
|
|
|
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 = {
|
2022-06-21 13:38:11 +00:00
|
|
|
warning = 80;
|
2022-03-23 19:06:24 +00:00
|
|
|
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";
|
2022-06-14 15:58:21 +00:00
|
|
|
hwmon-path = "/sys/class/hwmon/hwmon3/temp1_input";
|
|
|
|
critical-threshold = 75;
|
2022-03-23 19:06:24 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
} ];
|
|
|
|
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;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2022-02-03 16:41:47 +00:00
|
|
|
services.gammastep = {
|
2022-01-25 00:31:56 +00:00
|
|
|
enable = true;
|
2022-02-03 16:41:47 +00:00
|
|
|
tray = true;
|
2022-01-25 00:31:56 +00:00
|
|
|
latitude = "49.8";
|
|
|
|
longitude = "8.6";
|
2022-02-07 23:18:05 +00:00
|
|
|
temperature = {
|
|
|
|
day = 5500;
|
|
|
|
night = 3300;
|
|
|
|
};
|
2022-02-23 22:42:42 +00:00
|
|
|
|
2022-01-25 00:31:56 +00:00
|
|
|
};
|
|
|
|
|
2022-06-21 13:34:34 +00:00
|
|
|
# Enable blueman-applet when the machine has bluetooth enabled
|
|
|
|
services.blueman-applet.enable = config.hardware.bluetooth.enable == true;
|
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
|
|
|
};
|
|
|
|
}
|