2022-10-16 21:55:37 +00:00
|
|
|
{ pkgs, config, lib, ... }:
|
|
|
|
|
2022-10-19 14:27:22 +00:00
|
|
|
let
|
|
|
|
discord = pkgs.writeShellApplication {
|
|
|
|
name = "discord";
|
|
|
|
runtimeInputs = with pkgs; [ nodejs pkgs.unstable.electron ];
|
|
|
|
text = "cd ~/Projects/ArmCord/ && electron --force-device-scale-factor=1.5 ts-out/main.js";
|
|
|
|
};
|
|
|
|
in
|
2022-10-16 21:55:37 +00:00
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
# Common configuration
|
|
|
|
./common.nix
|
|
|
|
# We use our own firefox
|
|
|
|
# ./firefox.nix
|
|
|
|
# osu!
|
|
|
|
# ./osu.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
# Home Manager needs a bit of information about you and the
|
|
|
|
# paths it should manage.
|
|
|
|
home.username = "nki";
|
|
|
|
home.homeDirectory = "/home/nki";
|
|
|
|
|
2022-10-21 11:17:07 +00:00
|
|
|
# No gpu terminal renderers...
|
|
|
|
programs.my-sway.terminal = "${pkgs.mate.mate-terminal}/bin/mate-terminal";
|
|
|
|
|
2022-10-16 21:55:37 +00:00
|
|
|
# More packages
|
|
|
|
home.packages = (with pkgs; [
|
|
|
|
# CLI stuff
|
|
|
|
python
|
|
|
|
zip
|
|
|
|
# TeX
|
|
|
|
texlive.combined.scheme-full
|
2022-10-21 11:17:07 +00:00
|
|
|
mate.mate-terminal
|
2022-10-16 21:55:37 +00:00
|
|
|
|
2022-10-17 15:32:12 +00:00
|
|
|
firefox-wayland
|
2022-10-17 10:58:57 +00:00
|
|
|
|
2022-10-19 14:27:22 +00:00
|
|
|
discord
|
|
|
|
|
2022-10-16 21:55:37 +00:00
|
|
|
# Java & sbt
|
|
|
|
openjdk11
|
|
|
|
sbt
|
|
|
|
]);
|
|
|
|
|
|
|
|
# Graphical set up
|
2022-10-17 15:32:12 +00:00
|
|
|
linux.graphical.type = "wayland";
|
2022-10-17 08:25:38 +00:00
|
|
|
linux.graphical.wallpaper = ./images/wallpaper_0.png;
|
2022-10-16 21:55:37 +00:00
|
|
|
# Enable sway
|
2022-10-17 15:32:12 +00:00
|
|
|
programs.my-sway.enable = true;
|
|
|
|
programs.my-sway.fontSize = 20.0;
|
|
|
|
programs.my-sway.enableLaptopBars = true;
|
|
|
|
programs.my-sway.enableMpd = false;
|
2022-10-19 14:27:22 +00:00
|
|
|
programs.my-sway.discord = "${discord}/bin/discord";
|
2022-10-17 15:32:12 +00:00
|
|
|
# Keyboard options
|
|
|
|
wayland.windowManager.sway.config.input."type:keyboard".xkb_layout = "jp";
|
|
|
|
wayland.windowManager.sway.config.output."Unknown-1" = {
|
|
|
|
mode = "2560x1600@60Hz";
|
|
|
|
scale = "1";
|
|
|
|
subpixel = "vrgb";
|
|
|
|
};
|
|
|
|
wayland.windowManager.sway.config.input."1452:641:Apple_Internal_Keyboard_/_Trackpad" = {
|
|
|
|
# Keyboard stuff
|
|
|
|
xkb_layout = "jp";
|
|
|
|
repeat_delay = "300";
|
2022-10-19 14:27:22 +00:00
|
|
|
repeat_rate = "15";
|
2022-10-17 15:32:12 +00:00
|
|
|
# Trackpad stuff
|
|
|
|
accel_profile = "adaptive";
|
|
|
|
drag = "enabled";
|
|
|
|
dwt = "enabled";
|
|
|
|
middle_emulation = "enabled";
|
|
|
|
natural_scroll = "enabled";
|
|
|
|
pointer_accel = "0.5";
|
|
|
|
tap = "disabled";
|
|
|
|
};
|
|
|
|
|
2022-10-16 21:55:37 +00:00
|
|
|
# Kitty
|
2022-10-21 11:17:07 +00:00
|
|
|
# nki.programs.kitty = {
|
|
|
|
# enable = true;
|
|
|
|
# fontSize = 22;
|
|
|
|
# enableTabs = false;
|
|
|
|
# };
|
2022-10-17 08:25:38 +00:00
|
|
|
|
2022-10-17 15:32:12 +00:00
|
|
|
# Yellow light!
|
|
|
|
services.wlsunset = {
|
|
|
|
enable = true;
|
|
|
|
# # Waterloo
|
|
|
|
# latitude = "43.3";
|
|
|
|
# longitude = "-80.3";
|
|
|
|
|
|
|
|
# Lausanne
|
|
|
|
latitude = "46.31";
|
|
|
|
longitude = "6.38";
|
|
|
|
};
|
|
|
|
|
2022-10-17 08:25:38 +00:00
|
|
|
home.file.".gnupg/gpg-agent.conf" = {
|
|
|
|
text = ''
|
2022-10-17 13:58:13 +00:00
|
|
|
pinentry-program ${pkgs.pinentry-gnome}/bin/pinentry-gnome3
|
2022-10-17 08:25:38 +00:00
|
|
|
'';
|
|
|
|
onChange = ''
|
|
|
|
echo "Reloading gpg-agent"
|
|
|
|
echo RELOADAGENT | gpg-connect-agent
|
|
|
|
'';
|
2022-10-16 21:55:37 +00:00
|
|
|
};
|
|
|
|
|
2022-10-17 15:32:12 +00:00
|
|
|
# Autostart
|
|
|
|
xdg.configFile."autostart/polkit.desktop".text = ''
|
|
|
|
${builtins.readFile "${pkgs.pantheon.pantheon-agent-polkit}/etc/xdg/autostart/io.elementary.desktop.agent-polkit.desktop"}
|
|
|
|
OnlyShowIn=sway;
|
|
|
|
'';
|
|
|
|
|
2022-10-16 21:55:37 +00:00
|
|
|
# Multiple screen setup
|
|
|
|
# services.kanshi = {
|
2022-10-17 08:25:38 +00:00
|
|
|
# enable = true;
|
|
|
|
# profiles.undocked.outputs = [{ criteria = "LVDS-1"; }];
|
|
|
|
# profiles.docked-hdmi.outputs = [
|
|
|
|
# { criteria = "LVDS-1"; status = "disable"; }
|
|
|
|
# { criteria = "HDMI-A-1"; }
|
|
|
|
# ];
|
2022-10-16 21:55:37 +00:00
|
|
|
# };
|
|
|
|
|
|
|
|
# This value determines the Home Manager release that your
|
|
|
|
# configuration is compatible with. This helps avoid breakage
|
|
|
|
# when a new Home Manager release introduces backwards
|
|
|
|
# incompatible changes.
|
|
|
|
#
|
|
|
|
# You can update Home Manager without changing this value. See
|
|
|
|
# the Home Manager release notes for a list of state version
|
|
|
|
# changes in each release.
|
|
|
|
home.stateVersion = "21.05";
|
|
|
|
}
|
|
|
|
|