Compare commits

..

No commits in common. "1985a07745041338342d21dfd6f9fc874713a238" and "9f22a82d4aec27bcb002d69559b6996440971cd1" have entirely different histories.

11 changed files with 50 additions and 366 deletions

View File

@ -5,12 +5,7 @@
... ...
}: }:
let let
inherit (lib) inherit (lib) mkOption recursiveUpdate types optionals;
mkOption
recursiveUpdate
types
optionals
;
rosePineHyprcursor = pkgs.callPackage ./rose-pine-hyprcursor.nix { }; rosePineHyprcursor = pkgs.callPackage ./rose-pine-hyprcursor.nix { };
defaultInput = { defaultInput = {
@ -23,10 +18,10 @@ let
follow_mouse = true; follow_mouse = true;
touchpad = { touchpad = {
natural_scroll = false; natural_scroll = true;
}; };
natural_scroll = false; natural_scroll = true;
sensitivity = 0.0; sensitivity = 0.0;
}; };
@ -149,9 +144,6 @@ let
"SUPER_CTRL, right, workspace, m+1" "SUPER_CTRL, right, workspace, m+1"
"SUPER_CTRL_SHIFT, left, workspace, r-1" "SUPER_CTRL_SHIFT, left, workspace, r-1"
"SUPER_CTRL_SHIFT, right, workspace, r+1" "SUPER_CTRL_SHIFT, right, workspace, r+1"
# screenshot
"SUPER_SHIFT, S, exec, hyprshot -m region --clipboard-only"
] ]
++ ( ++ (
# workspaces # workspaces

View File

@ -3,11 +3,7 @@
{ {
programs.zed-editor = { programs.zed-editor = {
enable = true; enable = true;
extensions = [ extensions = [ "nix" "toml" "rust" ];
"nix"
"toml"
"rust"
];
userSettings = { userSettings = {
theme = { theme = {
@ -16,12 +12,11 @@
light = "Kanagawa Lotus"; light = "Kanagawa Lotus";
}; };
hour_format = "hour24"; hour_format = "hour24";
vim_mode = false; vim_mode = true;
buffer_font_size = 12.0; buffer_font_size = 12.0;
buffer_font_family = "PlemolJP Console NF"; buffer_font_family = "PlemolJP Console NF";
}; };
}; };
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;
home.file.".local/share/fonts/plemoljp".source = home.file.".local/share/fonts/plemoljp".source = "${pkgs.plemoljp-nf}/share/fonts/truetype/plemoljp-nf-console";
"${pkgs.plemoljp-nf}/share/fonts/truetype/plemoljp-nf-console";
} }

Binary file not shown.

View File

@ -1,16 +0,0 @@
inputs:
let
mkHost = import ../mkHost.nix inputs;
in
mkHost {
system = "x86_64-linux";
hostname = "AQUA";
users = [
{
username = "umi";
homeModule = [ ./umi/home-manager.nix ];
userNixos = ./umi/nixos.nix;
}
];
systemModules = [ ./nixos.nix ];
}

View File

@ -1,54 +0,0 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"nvme"
"usb_storage"
"usbhid"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/e8956bf9-0123-4caf-8a5d-abe77a33e83a";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/6949-1506";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = {
modesetting.enable = true;
open = true;
nvidiaSettings = true;
};
}

View File

@ -1,118 +0,0 @@
{
pkgs,
username,
...
}:
let
config.boot.kernelPackages = pkgs.linuxPackages_latest;
in
{
system.stateVersion = "25.11";
imports = [
./hardware-configuration.nix
../../system/core
../../programs/ssh.nix
../../programs/utility.nix
../../programs/shell.nix
../../programs/docker.nix
../../programs/v4l2.nix
../../programs/desktop/hyprland.nix
../../programs/fcitx.nix
../../programs/steam.nix
];
environment.systemPackages = with pkgs; [
cargo
rustc
rustfmt
openssl
vulkan-tools
android-tools
android-file-transfer
ddcutil
bluez
bluez-tools
bluetuith
obexftp
fzf
ghq
];
environment.sessionVariables.NIXOS_OZONE_WL = "1";
programs.nix-ld.enable = true;
services.openssh.enable = true;
services.udisks2.enable = true;
services.keyd.enable = true;
hardware.i2c.enable = true;
services.keyd.keyboards.default = {
ids = [ "*" ];
settings = {
main = {
capslock = "C-space";
};
};
};
networking.firewall.allowedTCPPorts = [
22
19132
25565
];
networking.firewall.allowedUDPPorts = [ ];
services.udev.extraRules = "";
hardware.bluetooth = {
enable = true;
package = pkgs.bluez;
powerOnBoot = true;
settings = {
General = {
ControllerMode = "dual";
Experimental = true;
KernelExperimental = true;
FastConnectable = true;
# セキュリティレベルを調整
Class = "0x000100";
# ペアリングタイムアウトを延長
PairableTimeout = 0;
};
Policy = {
AutoEnable = true;
};
};
};
boot.kernelPackages = config.boot.kernelPackages;
boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
boot.kernelModules = [
"v4l2loopback"
];
# Bootloader.
boot.loader.systemd-boot.enable = false;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot";
boot.loader.grub = {
enable = true;
efiSupport = true;
devices = [ "nodev" ];
useOSProber = true;
copyKernels = true;
configurationLimit = 10;
};
cornflake.greeter.monitors = [
"DP-1, disable"
"DP-2, disable"
"DP-3, 1920x1080@240, 0x0"
];
}

View File

@ -1,93 +0,0 @@
{
pkgs,
inputs,
lib,
...
}:
{
home.stateVersion = "25.05";
imports = [
inputs.nix-index-database.homeModules.nix-index
../../../home-manager/tofi.nix
../../../home-manager/hyprland
../../../home-manager/fnott.nix
../../../home-manager/wezterm
../../../home-manager/fish
../../../home-manager/vscode.nix
../../../home-manager/direnv.nix
../../../home-manager/firefox.nix
../../../home-manager/obs-studio.nix
../../../home-manager/zeditor.nix
../../../home-manager/voicevox.nix
];
hare.hyprland = {
input.sensitivity = -0.85;
wallpaperCommand = "swww img /usr/share/wallpaper/arknights-02.jpg";
};
programs.nix-index-database.comma.enable = true;
home.packages = with pkgs; [
google-chrome
discord
discord-canary
discord-ptb
helvum
plemoljp
plemoljp-nf
prismlauncher
scrcpy
tetrio-desktop
gimp
inkscape
obsidian
kdePackages.filelight
(deno.overrideAttrs (oldAttrs: {
doCheck = false;
}))
bun
nodejs_24
nixd
rar
rust-analyzer
ytmdesktop
opencode
];
services.easyeffects = {
enable = true;
};
programs.git = {
enable = true;
settings.user.name = "Kariya";
settings.user.email = "kariya2298@gmail.com";
};
fonts = {
fontconfig = {
defaultFonts = {
serif = [ "Noto Serif" ];
sansSerif = [ "Noto Sans" ];
monospace = [ "PlemolJP NF Console" ];
};
};
};
xdg.mimeApps = {
enable = true;
defaultApplications = {
"text/html" = "google-chrome.desktop";
"x-scheme-handler/http" = "google-chrome.desktop";
"x-scheme-handler/https" = "google-chrome.desktop";
"x-scheme-handler/about" = "google-chrome.desktop";
"x-scheme-handler/unknown" = "google-chrome.desktop";
};
};
wayland.windowManager.hyprland.settings.monitor = [
"DP-1, 1920x1080@60, -1920x0, 1"
"DP-2, 1600x900@60, -3520x90, 1"
"DP-3, 1920x1080@240, 0x0, 1"
];
}

View File

@ -1,10 +0,0 @@
{ pkgs, ... }:
{
extraGroups = [
"docker"
"i2c"
];
shell = pkgs.fish;
# openssh.authroizedKeys.keys = [
# ];
}

View File

@ -1,12 +1,10 @@
inputs: rec { inputs:
rec {
hosts = { hosts = {
aqua = import ./aqua inputs;
arcadia = import ./arcadia inputs; arcadia = import ./arcadia inputs;
x1carbon = import ./x1carbon inputs; x1carbon = import ./x1carbon inputs;
fungus = import ./fungus inputs; fungus = import ./fungus inputs;
}; };
nixos = builtins.mapAttrs (_: host: host.nixos) hosts; nixos = builtins.mapAttrs (_: host: host.nixos) hosts;
home-manager = builtins.foldl' (a: b: a // b) { } ( home-manager = builtins.foldl' (a: b: a // b) { } (map (h: h.home-manager) (builtins.attrValues hosts));
map (h: h.home-manager) (builtins.attrValues hosts)
);
} }

View File

@ -15,19 +15,12 @@ in
nixos = inputs.nixpkgs.lib.nixosSystem { nixos = inputs.nixpkgs.lib.nixosSystem {
modules = modules =
systemModules systemModules
++ (map ( ++ (map (u: { pkgs, ... }: {
u: users.users.${u.username} = import u.nixos { inherit pkgs; };
{ pkgs, ... }: }) (builtins.filter (u: u ? nixos) users))
{
users.users.${u.username} = import (if u ? userNixos then u.userNixos else u.nixos) {
inherit pkgs;
};
}
) (builtins.filter (u: u ? userNixos || u ? nixos) users))
++ [ ++ [
{ {
users.users = builtins.listToAttrs ( users.users = builtins.listToAttrs (map (u: {
map (u: {
name = u.username; name = u.username;
value = { value = {
isNormalUser = true; isNormalUser = true;
@ -37,8 +30,7 @@ in
"wheel" "wheel"
]; ];
}; };
}) users }) users);
);
} }
]; ];
inherit system; inherit system;
@ -47,8 +39,7 @@ in
users = map (u: u.username) users; users = map (u: u.username) users;
}; };
}; };
home-manager = builtins.listToAttrs ( home-manager = builtins.listToAttrs (map (u: {
map (u: {
name = "${u.username}@${hostname}"; name = "${u.username}@${hostname}";
value = inputs.home-manager.lib.homeManagerConfiguration { value = inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs; inherit pkgs;
@ -65,9 +56,8 @@ in
programs.home-manager.enable = true; programs.home-manager.enable = true;
} }
(import ../system/home-manager) (import ../system/home-manager)
] u.home
++ (if u ? homeModule then u.homeModule else [ u.home ]); ];
}; };
}) users }) users);
);
} }

View File

@ -10,6 +10,6 @@
bat bat
wezterm wezterm
libsixel libsixel
nixfmt-rfc-style nixfmt
]; ];
} }