I'll create a comprehensive NixOS configuration with Home Manager for a minimalist cyberpunk Tokyo aesthetic. This setup will be optimized for flow state with dark themes and clean interfaces.
flake.nix
{
description = "Cyberpunk Tokyo Minimalist NixOS";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland.url = "github:hyprwm/Hyprland";
};
outputs = { self, nixpkgs, home-manager, hyprland, ... }@inputs: {
nixosConfigurations.cyberpunk = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
./hardware-configuration.nix
./configuration.nix
hyprland.nixosModules.default
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.cyber = import ./home.nix;
home-manager.extraSpecialArgs = { inherit inputs; };
}
];
};
};
}
configuration.nix
{ config, pkgs, inputs, ... }:
{
imports = [ ./hardware-configuration.nix ];
# Boot
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Networking
networking.hostName = "cyberpunk-tokyo";
networking.networkmanager.enable = true;
# Time zone
time.timeZone = "Asia/Tokyo";
# Internationalization
i18n.defaultLocale = "en_US.UTF-8";
# Display Manager - ly
services.xserver.enable = false;
services.displayManager.ly = {
enable = true;
settings = {
animation = "matrix";
bigclock = "%H:%M";
clockstr = "%a %d %b %Y";
hide_borders = true;
hide_f1_commands = true;
mcookie_cmd = "mcookie";
save_file = "/tmp/ly-save";
term_reset_cmd = "tput reset";
tty = 2;
waylandsessions = "/run/current-system/sw/share/wayland-sessions";
x11sessions = "/run/current-system/sw/share/xsessions";
xinitrc = ".xinitrc";
xsessions = "/run/current-system/sw/share/xsessions";
};
};
# Hyprland
programs.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
};
# Audio
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
# Users
users.users.cyber = {
isNormalUser = true;
description = "Cyber User";
extraGroups = [ "networkmanager" "wheel" "audio" "video" ];
shell = pkgs.zsh;
};
# System packages
environment.systemPackages = with pkgs; [
git
curl
wget
unzip
ripgrep
fd
bat
eza
fzf
neofetch
htop
btop
tree
jq
wl-clipboard
grim
slurp
swappy
brightnessctl
pamixer
playerctl
];
# Fonts
fonts.packages = with pkgs; [
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
fira-code
fira-code-symbols
jetbrains-mono
(nerdfonts.override { fonts = [ "FiraCode" "JetBrainsMono" ]; })
];
# Shell
programs.zsh.enable = true;
# Nix settings
nix.settings.experimental-features = [ "nix-command" "flakes" ];
system.stateVersion = "24.05";
}
home.nix
{ config, pkgs, inputs, ... }:
{
home.username = "cyber";
home.homeDirectory = "/home/cyber";
home.stateVersion = "24.05";
# Packages
home.packages = with pkgs; [
firefox
discord
spotify
obsidian
gimp
vlc
libreoffice
thunderbird
];
# Hyprland configuration
wayland.windowManager.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
settings = {
monitor = ",preferred,auto,1";
exec-once = [
"waybar"
"mako"
"hyprpaper"
];
general = {
gaps_in = 8;
gaps_out = 16;
border_size = 2;
"col.active_border" = "rgba(ff0080ff) rgba(8000ffff) 45deg";
"col.inactive_border" = "rgba(1a1a1aaa)";
layout = "dwindle";
allow_tearing = false;
};
decoration = {
rounding = 8;
blur = {
enabled = true;
size = 8;
passes = 3;
new_optimizations = true;
xray = true;
ignore_opacity = true;
};
drop_shadow = true;
shadow_range = 20;
shadow_render_power = 3;
"col.shadow" = "rgba(ff008080)";
"col.shadow_inactive" = "rgba(1a1a1a80)";
};
animations = {
enabled = true;
bezier = [
"wind, 0.05, 0.9, 0.1, 1.05"
"winIn, 0.1, 1.1, 0.1, 1.1"
"winOut, 0.3, -0.3, 0, 1"
"liner, 1, 1, 1, 1"
];
animation = [
"windows, 1, 6, wind, slide"
"windowsIn, 1, 6, winIn, slide"
"windowsOut, 1, 5, winOut, slide"
"windowsMove, 1, 5, wind, slide"
"border, 1, 1, liner"
"borderangle, 1, 30, liner, loop"
"fade, 1, 10, default"
"workspaces, 1, 5, wind"
];
};
dwindle = {
pseudotile = true;
preserve_split = true;
};
input = {
kb_layout = "us";
follow_mouse = 1;
touchpad = {
natural_scroll = false;
};
sensitivity = 0;
};
gestures = {
workspace_swipe = false;
};
misc = {
force_default_wallpaper = 0;
disable_hyprland_logo = true;
};
# Keybindings
"$mainMod" = "SUPER";
bind = [
"$mainMod, Q, exec, alacritty"
"$mainMod, C, killactive,"
"$mainMod, M, exit,"
"$mainMod, E, exec, thunar"
"$mainMod, V, togglefloating,"
"$mainMod, R, exec, fuzzel"
"$mainMod, P, pseudo,"
"$mainMod, J, togglesplit,"
"$mainMod, F, fullscreen,"
# Move focus
"$mainMod, left, movefocus, l"
"$mainMod, right, movefocus, r"
"$mainMod, up, movefocus, u"
"$mainMod, down, movefocus, d"
# Switch workspaces
"$mainMod, 1, workspace, 1"
"$mainMod, 2, workspace, 2"
"$mainMod, 3, workspace, 3"
"$mainMod, 4, workspace, 4"
"$mainMod, 5, workspace, 5"
"$mainMod, 6, workspace, 6"
"$mainMod, 7, workspace, 7"
"$mainMod, 8, workspace, 8"
"$mainMod, 9, workspace, 9"
"$mainMod, 0, workspace, 10"
# Move active window to workspace
"$mainMod SHIFT, 1, movetoworkspace, 1"
"$mainMod SHIFT, 2, movetoworkspace, 2"
"$mainMod SHIFT, 3, movetoworkspace, 3"
"$mainMod SHIFT, 4, movetoworkspace, 4"
"$mainMod SHIFT, 5, movetoworkspace, 5"
"$mainMod SHIFT, 6, movetoworkspace, 6"
"$mainMod SHIFT, 7, movetoworkspace, 7"
"$mainMod SHIFT, 8, movetoworkspace, 8"
"$mainMod SHIFT, 9, movetoworkspace, 9"
"$mainMod SHIFT, 0, movetoworkspace, 10"
# Screenshots
", Print, exec, grim -g \"$(slurp)\" - | wl-copy"
"$mainMod, Print, exec, grim - | wl-copy"
# Media keys
", XF86AudioRaiseVolume, exec, pamixer -i 5"
", XF86AudioLowerVolume, exec, pamixer -d 5"
", XF86AudioMute, exec, pamixer -t"
", XF86AudioPlay, exec, playerctl play-pause"
", XF86AudioNext, exec, playerctl next"
", XF86AudioPrev, exec, playerctl previous"
", XF86MonBrightnessUp, exec, brightnessctl set +5%"
", XF86MonBrightnessDown, exec, brightnessctl set 5%-"
];
bindm = [
"$mainMod, mouse:272, movewindow"
"$mainMod, mouse:273, resizewindow"
];
windowrulev2 = [
"suppressevent maximize, class:.*"
"float, class:^(pavucontrol)$"
"float, class:^(blueman-manager)$"
"opacity 0.9 0.9, class:^(Alacritty)$"
];
};
};
# Waybar
programs.waybar = {
enable = true;
settings = {
mainBar = {
layer = "top";
position = "top";
height = 40;
spacing = 4;
modules-left = [ "hyprland/workspaces" "hyprland/mode" ];
modules-center = [ "hyprland/window" ];
modules-right = [ "pulseaudio" "network" "cpu" "memory" "battery" "clock" "tray" ];
"hyprland/workspaces" = {
disable-scroll = true;
all-outputs = true;
format = "{icon}";
format-icons = {
"1" = "一";
"2" = "二";
"3" = "三";
"4" = "四";
"5" = "五";
"6" = "六";
"7" = "七";
"8" = "八";
"9" = "九";
"10" = "十";
};
};
"hyprland/window" = {
format = "{}";
max-length = 50;
};
clock = {
timezone = "Asia/Tokyo";
tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
format = "{:%H:%M 東京}";
format-alt = "{:%Y-%m-%d}";
};
cpu = {
format = "CPU {usage}%";
tooltip = false;
};
memory = {
format = "RAM {}%";
};
battery = {
states = {
warning = 30;
critical = 15;
};
format = "BAT {capacity}%";
format-charging = "CHG {capacity}%";
format-plugged = "PWR {capacity}%";
format-alt = "{time}";
};
network = {
format-wifi = "NET {essid}";
format-ethernet = "ETH Connected";
tooltip-format = "{ifname} via {gwaddr}";
format-linked = "ETH (No IP)";
format-disconnected = "NET Disconnected";
format-alt = "{ifname}: {ipaddr}/{cidr}";
};
pulseaudio = {
format = "VOL {volume}%";
format-bluetooth = "BT {volume}%";
format-bluetooth-muted = "BT MUTE";
format-muted = "VOL MUTE";
on-click = "pavucontrol";
};
tray = {
spacing = 10;
};
};
};
style = ''
* {
border: none;
border-radius: 0;
font-family: 'JetBrains Mono', monospace;
font-size: 13px;
min-height: 0;
}
window#waybar {
background-color: rgba(26, 26, 26, 0.9);
border-bottom: 2px solid rgba(255, 0, 128, 0.8);
color: #ffffff;
transition-property: background-color;
transition-duration: .5s;
}
button {
box-shadow: inset 0 -3px transparent;
border: none;
border-radius: 0;
}
#workspaces button {
padding: 0 8px;
background-color: transparent;
color: #ffffff;
}
#workspaces button:hover {
background: rgba(255, 0, 128, 0.2);
}
#workspaces button.active {
background-color: rgba(255, 0, 128, 0.3);
color: #ff0080;
}
#workspaces button.urgent {
background-color: #eb4d4b;
}
#mode {
background-color: #64727D;
border-bottom: 3px solid #ffffff;
}
#clock,
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#network,
#pulseaudio,
#wireplumber,
#custom-media,
#tray,
#mode,
#idle_inhibitor,
#scratchpad,
#mpd {
padding: 0 10px;
color: #ffffff;
}
#window,
#workspaces {
margin: 0 4px;
}
#clock {
color