2025-12-25

This commit is contained in:
Keisuke Hirata 2025-12-25 18:37:54 +09:00
parent 9ac4e308f6
commit 9875eaf309
9 changed files with 82 additions and 48 deletions

View File

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1759261733, "lastModified": 1766387499,
"narHash": "sha256-G104PUPKBgJmcu4NWs0LUaPpSOTD4jiq4mamLWu3Oc0=", "narHash": "sha256-AjK3/UKDzeXFeYNLVBaJ3+HLE9he1g5UrlNd4/BM3eA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "5a21f4819ee1be645f46d6b255d49f4271ef6723", "rev": "527ad07e6625302b648ed3b28c34b62a79bd103e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -22,11 +22,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1759261527, "lastModified": 1764440730,
"narHash": "sha256-wPd5oGvBBpUEzMF0kWnXge0WITNsITx/aGI9qLHgJ4g=", "narHash": "sha256-ZlJTNLUKQRANlLDomuRWLBCH5792x+6XUJ4YdFRjtO4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "e087756cf4abbe1a34f3544c480fc1034d68742f", "rev": "9154f4569b6cdfd3c595851a6ba51bfaa472d9f3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -37,11 +37,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1759036355, "lastModified": 1766309749,
"narHash": "sha256-0m27AKv6ka+q270dw48KflE0LwQYrO7Fm4/2//KCVWg=", "narHash": "sha256-3xY8CZ4rSnQ0NqGhMKAy5vgC+2IVK0NoVEzDoOh4DA4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "e9f00bd893984bc8ce46c895c3bf7cac95331127", "rev": "a6531044f6d0bef691ea18d4d4ce44d0daa6e816",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -80,11 +80,11 @@
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1754251351, "lastModified": 1761859251,
"narHash": "sha256-k9ZxAmwu7DfLGW6Z6910XsSyi5V9LEIdaYxe86PeEKE=", "narHash": "sha256-+Kxwwlis5m8b69DBQ42wxM0f7sKCa7RRy5ADCMEI1Ss=",
"owner": "xaragon", "owner": "xaragon",
"repo": "zen-browser-flake", "repo": "zen-browser-flake",
"rev": "0db16223c3dc3e9337051e440c305a85b4bc3437", "rev": "20dbd219c8238f297d53603b5f0001167a35ce51",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -3,8 +3,8 @@
settings = { settings = {
monitor = [ monitor = [
"DP-1, 5120x2880@60, 0x0, 2" "DP-1, 5120x2880@60, 0x0, 2"
"DP-2, 1920x1080@144, 2560x-240, 1, transform, 1" "DP-2, 2560x1440@144, 2560x0, 1, transform, 0"
"HDMI-A-1, 2560x1440@144, -1440x-240, 1, transform, 1" "DP-3, 1920x1080@144, -1080x-240, 1, transform, 1"
]; ];
}; };
}; };

View File

@ -51,8 +51,8 @@
libvdpau-va-gl libvdpau-va-gl
vulkan-loader vulkan-loader
vulkan-validation-layers vulkan-validation-layers
amdvlk # Optional: AMD's proprietary Vulkan driver
mesa.opencl # Enables Rusticl (OpenCL) support mesa.opencl # Enables Rusticl (OpenCL) support
rocmPackages.clr.icd
]; ];
}; };
} }

View File

@ -17,7 +17,6 @@
google-chrome google-chrome
discord discord
helvum helvum
superfile
plemoljp plemoljp
plemoljp-nf plemoljp-nf
prismlauncher prismlauncher
@ -28,20 +27,29 @@
inkscape inkscape
obsidian obsidian
zed-editor zed-editor
davinci-resolve # davinci-resolve
kdePackages.filelight kdePackages.filelight
inputs.zen-browser.packages."${system}".default inputs.zen-browser.packages."${system}".default
(deno.overrideAttrs (oldAttrs: { (deno.overrideAttrs (oldAttrs: {
doCheck = false; doCheck = false;
})) }))
nodejs_24 nodejs_24
pnpm
godot godot
unityhub
nixd nixd
rust-analyzer rust-analyzer
beeper beeper
aseprite aseprite
zrythm bambu-studio
orca-slicer
# voicevox-core
# voicevox-engine
# voicevox
vinegar
antigravity
]; ];
services.easyeffects = { services.easyeffects = {
enable = true; enable = true;
@ -49,8 +57,8 @@
programs.git = { programs.git = {
enable = true; enable = true;
userName = "Hare"; settings.user.name = "Hare";
userEmail = "kei.hiracchi.0928@gmail.com"; settings.user.email = "kei.hiracchi.0928@gmail.com";
}; };
fonts = { fonts = {

View File

@ -7,7 +7,7 @@ let
config.boot.kernelPackages = pkgs.linuxPackages_latest; config.boot.kernelPackages = pkgs.linuxPackages_latest;
in in
{ {
system.stateVersion = "25.05"; system.stateVersion = "25.11";
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
@ -48,6 +48,8 @@ in
bluez-tools bluez-tools
bluetuith bluetuith
obexftp obexftp
fzf
ghq
]; ];
environment.sessionVariables.NIXOS_OZONE_WL = "1"; environment.sessionVariables.NIXOS_OZONE_WL = "1";
@ -76,12 +78,14 @@ in
5173 5173
8000 8000
9001 9001
2222 # crtb server
11434 11434
]; ];
networking.firewall.allowedUDPPorts = [ ]; networking.firewall.allowedUDPPorts = [ ];
services.udev.extraRules = '' services.udev.extraRules = ''
ATTRS{idVendor}=="3151", ATTRS{idProduct}=="502d", MODE="0777" ATTRS{idVendor}=="3151", ATTRS{idProduct}=="502d", MODE="0777"
ATTRS{idVendor}=="414", ATTRS{idProduct}=="211a", MODE="0777"
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0660", GROUP="input" KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0660", GROUP="input"
''; '';
@ -116,4 +120,5 @@ in
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.initrd.kernelModules = [ "amdgpu" ]; boot.initrd.kernelModules = [ "amdgpu" ];
} }

View File

@ -8,6 +8,6 @@
./sound.nix ./sound.nix
./uwsm.nix ./uwsm.nix
./regreet.nix ./greeter.nix
]; ];
} }

View File

@ -4,7 +4,7 @@
packages = with pkgs; [ packages = with pkgs; [
noto-fonts noto-fonts
noto-fonts-cjk-sans noto-fonts-cjk-sans
noto-fonts-emoji noto-fonts-color-emoji
ibm-plex ibm-plex
]; ];
fontconfig = { fontconfig = {

45
system/core/greeter.nix Normal file
View File

@ -0,0 +1,45 @@
{ config, pkgs, ... }:
let
hyprGreetConf = pkgs.writeText "hyprland-greetd.conf" ''
monitor = DP-1, 5120x2880@60, 0x0, 2
monitor = DP-2, disable
monitor = DP-3, disable
exec-once = ${config.programs.regreet.package or pkgs.regreet}/bin/regreet; hyprctl dispatch exit
'';
in
{
services.greetd.enable = true;
services.greetd.settings.default_session = {
command = "${pkgs.hyprland}/bin/Hyprland --config ${hyprGreetConf}";
user = "greeter";
};
programs.regreet = {
# greetd を Hyprland で動かす
enable = true;
theme.name = "Adwaita-dark";
iconTheme.name = "Papirus-Dark";
cursorTheme.name = "Bibata-Modern-Ice";
settings = {
appearance = {
greeting_msg = "Welcome back!";
};
widget = {
clock = {
format = "%H:%M";
resolution = "100ms";
timezone = "Asia/Tokyo";
label_width = 150;
};
};
GTK = {
application_prefer_dark_theme = true;
};
background = {
path = "/usr/share/wallpaper/arknights-image-01.png";
};
};
};
}

View File

@ -1,24 +0,0 @@
{
programs.regreet = {
enable = true;
settings = {
appearance = {
greeting_msg = "Welcome back!";
};
widget = {
clock = {
format = "%H:%M";
resolution = "100ms";
timezone = "Asia/Tokyo";
label_width = 150;
};
};
GTK = {
application_prefer_dark_theme = true;
};
background = {
path = "/usr/share/wallpaper/arknights-image-01.png";
};
};
};
}