2022-04-19 23:36:11 +00:00
|
|
|
{ pkgs, config, lib, ... }:
|
2022-04-19 21:44:08 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
2022-04-19 23:36:11 +00:00
|
|
|
# Common configuration
|
|
|
|
./common.nix
|
|
|
|
# We use our own firefox
|
|
|
|
# ./firefox.nix
|
|
|
|
# osu!
|
|
|
|
# ./osu.nix
|
2022-04-19 21:44:08 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Home Manager needs a bit of information about you and the
|
|
|
|
# paths it should manage.
|
|
|
|
home.username = "nki";
|
|
|
|
home.homeDirectory = "/home/nki";
|
|
|
|
|
|
|
|
# More packages
|
|
|
|
home.packages = (with pkgs; [
|
2022-04-19 23:36:11 +00:00
|
|
|
# CLI stuff
|
|
|
|
python
|
|
|
|
zip
|
|
|
|
# TeX
|
|
|
|
texlive.combined.scheme-full
|
2022-04-19 21:44:08 +00:00
|
|
|
|
2022-04-19 23:36:11 +00:00
|
|
|
# Java & sbt
|
|
|
|
openjdk11
|
|
|
|
sbt
|
2022-04-19 21:44:08 +00:00
|
|
|
]);
|
|
|
|
|
2022-04-20 17:05:02 +00:00
|
|
|
# Graphical set up
|
|
|
|
linux.graphical.type = "wayland";
|
|
|
|
linux.graphical.wallpaper = ./images/wallpaper_0.png;
|
2022-04-19 23:36:11 +00:00
|
|
|
# Enable sway
|
|
|
|
programs.my-sway.enable = true;
|
|
|
|
programs.my-sway.fontSize = 14.0;
|
2022-06-11 15:59:56 +00:00
|
|
|
programs.my-sway.terminal = "${config.programs.kitty.package}/bin/kitty";
|
2022-04-20 17:21:08 +00:00
|
|
|
# Keyboard support
|
|
|
|
wayland.windowManager.sway.config = {
|
2022-05-05 13:52:36 +00:00
|
|
|
input."1278:34:HHKB-Hybrid_3_Keyboard".xkb_layout = "jp";
|
2022-04-20 17:21:08 +00:00
|
|
|
input."1:1:AT_Translated_Set_2_keyboard" = {
|
|
|
|
xkb_options = "ctrl:swapcaps";
|
2022-05-05 13:52:36 +00:00
|
|
|
xkb_layout = "us";
|
2022-04-20 17:21:08 +00:00
|
|
|
};
|
|
|
|
};
|
2022-06-11 15:59:56 +00:00
|
|
|
# Kitty
|
|
|
|
nki.programs.kitty = {
|
|
|
|
enable = true;
|
|
|
|
fontSize = 16;
|
|
|
|
};
|
2022-04-19 23:36:11 +00:00
|
|
|
|
2022-05-05 13:52:50 +00:00
|
|
|
# Multiple screen setup
|
|
|
|
services.kanshi = {
|
|
|
|
enable = true;
|
|
|
|
profiles.undocked.outputs = [{ criteria = "LVDS-1"; }];
|
|
|
|
profiles.docked-hdmi.outputs = [
|
|
|
|
{ criteria = "LVDS-1"; status = "disable"; }
|
|
|
|
{ criteria = "HDMI-A-1"; }
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2022-04-19 21:44:08 +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";
|
|
|
|
}
|
|
|
|
|