Compare commits

..
36 Commits
Author SHA1 Message Date
Hare 4c8e9f809a hyprland lua dispatch 2026-07-21 20:07:19 +09:00
Hare 5ea08b009d yoi 2026-06-05 14:42:36 +09:00
Hare 50901f6810 bump home.stateVersion to 26.05 2026-05-29 10:10:37 +09:00
Hare b8523d9cc2 hyprland lua 2026-05-29 10:02:38 +09:00
Hare 8341ffcfcd x1carbon config 2026-04-19 08:27:56 +09:00
Hare 69b8ac60b8 swww -> awww 2026-04-19 08:26:43 +09:00
Hare 583fa01873 flake update 2026-04-19 06:43:30 +09:00
Hare 2285edc35b monitor settings 2026-03-24 18:57:34 +09:00
Hare 9f22a82d4a update monitor settings 2026-03-01 00:07:03 +09:00
Hare b65beb218d Update greeter.nix 2026-02-28 23:52:23 +09:00
Hare d9039467b2 Update flake.lock 2026-02-28 23:19:42 +09:00
Hare 61fb43ab75 update: change mkHost field name 2026-02-28 22:23:37 +09:00
Hare 18cba8e35f feat: user nixos 2026-02-28 21:26:07 +09:00
Hare 35623910b0 feat: multiple user 2026-02-28 19:42:36 +09:00
Hare 2acc8a1e67 Update structure 2026-02-28 19:06:35 +09:00
Hare e3de591a27 Update Hyprland settings 2026-02-19 09:30:42 +09:00
Hare 0762ccc9bc greeter config 2026-01-10 18:21:38 +09:00
Hare 69aefb5297 default wallpaper 2026-01-04 14:22:14 +09:00
Hare 2bb37281ac rose-pine-hyprcursor, fnott修正 2026-01-04 12:18:59 +09:00
Hare a3fd436314 fix 2026-01-04 01:54:21 +09:00
Hare 9129863969 fish and wezterm 2026-01-04 01:49:46 +09:00
Hare d9d7402234 hypr設定とhome-manager管理 2026-01-04 01:32:32 +09:00
Hare 5c2ed26f69 hypr config 2026-01-04 00:30:45 +09:00
Hare 8cacd2eea4 x1carbon 2026-01-03 22:04:35 +09:00
Hare 9875eaf309 2025-12-25 2025-12-25 18:37:54 +09:00
Hare 9ac4e308f6 20205-10-04 2025-10-04 02:58:56 +09:00
Hare 92bd37ab71 fungus: change boot settings 2025-02-22 00:10:29 +09:00
Hare 94dcf0a93c add new host: fungus 2025-02-21 19:56:38 +09:00
Hare fd6281b9a0 add: obs and firefox, fix: desktop and greeter QoL 2025-02-21 19:44:52 +09:00
Hare a4ff711bc3 add: theme-switcher 2025-02-16 14:41:48 +09:00
Hare d40fbe7eed enable Steam 2025-02-02 16:40:00 +09:00
Hare 0336d754d1 update: change terminal from kitty to wezterm and clean up hyprland configuration 2025-01-31 16:54:46 +09:00
Hare 784e002847 fix: remove unused overriding 2025-01-30 22:48:39 +09:00
Hare 9d9e5e758a add new host: arcadia 2025-01-30 22:06:21 +09:00
Hare 6015a2a09e update: README.md 2025-01-30 21:59:22 +09:00
Hare d725ad06a7 Init 2025-01-30 21:55:28 +09:00
32 changed files with 1079 additions and 338 deletions
+1 -1
View File
@@ -3,5 +3,5 @@
``` ```
sudo nixos-rebuild switch --flake .#<host> sudo nixos-rebuild switch --flake .#<host>
nix run .#home-manager -- switch --flake .#<host> nix run .#home-manager -- switch --flake .#<username>@<host>
``` ```
Generated
+170 -15
View File
@@ -18,6 +18,42 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils_2": {
"inputs": {
"systems": "systems_2"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_3": {
"inputs": {
"systems": "systems_3"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@@ -25,11 +61,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1772218752, "lastModified": 1784489491,
"narHash": "sha256-G8nArvOTZXU8DRvrzAdz3Elcj6kA/vMtvY9mrGLATtA=", "narHash": "sha256-j9maqjx1T8+ljAVntAdSI5hSGCm77QNZz64JF1rJNu0=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "f3a30376bb9eb2f6f61816be7d6ed954b6d2a3b9", "rev": "3139deb8cafbe73b39b24451255b2fdd3426077e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -45,11 +81,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1771734689, "lastModified": 1784440659,
"narHash": "sha256-/phvMgr1yutyAMjKnZlxkVplzxHiz60i4rc+gKzpwhg=", "narHash": "sha256-Q5kNLlWngt7TaIIZoxDKWMHjiSaNRVqr70FqWCRRfr4=",
"owner": "Mic92", "owner": "Mic92",
"repo": "nix-index-database", "repo": "nix-index-database",
"rev": "8f590b832326ab9699444f3a48240595954a4b10", "rev": "4f8d52a3598b0dc7db7a5e7b419e3edd9d1ecfdb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -59,12 +95,15 @@
} }
}, },
"nixos-hardware": { "nixos-hardware": {
"inputs": {
"nixpkgs": "nixpkgs"
},
"locked": { "locked": {
"lastModified": 1771969195, "lastModified": 1784310968,
"narHash": "sha256-qwcDBtrRvJbrrnv1lf/pREQi8t2hWZxVAyeMo7/E9sw=", "narHash": "sha256-rkSPTePrKqs4dg+i7ZFCq93+HrClac6oSwXX927SVjA=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "41c6b421bdc301b2624486e11905c9af7b8ec68e", "rev": "779c32a00155994c86cde8213a8dd4df139d4355",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -75,11 +114,24 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1771848320, "lastModified": 1767892417,
"narHash": "sha256-0MAd+0mun3K/Ns8JATeHT1sX28faLII5hVLq0L3BdZU=", "narHash": "sha256-8bW3q88CEg2u4hSP66Vf4lpbLonHz7hqDNBMcCY7E9U=",
"rev": "3497aa5c9457a9d88d71fa93a4a8368816fbeeba",
"type": "tarball",
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.05pre924538.3497aa5c9457/nixexprs.tar.xz"
},
"original": {
"type": "tarball",
"url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1784356753,
"narHash": "sha256-12KrbMiWLcf8m7pCvAtZh1ZrgF85ZXDXvfR/fWTKy84=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "2fc6539b481e1d2569f25f8799236694180c0993", "rev": "61b7c44c4073f0b827768aff0049561b5110ea5a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -89,7 +141,39 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_2": { "nixpkgs_3": {
"locked": {
"lastModified": 1781577229,
"narHash": "sha256-lrp67w8AulE9Ks53n27I45ADSzbOCn4H+CNW1Ck8B+8=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "567a49d1913ce81ac6e9582e3553dd90a955875f",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_4": {
"locked": {
"lastModified": 1779560665,
"narHash": "sha256-tpyBcxPpcQb8ukyNF7DoCwfSY3VPsxHoYwj00Cayv5o=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "64c08a7ca051951c8eae34e3e3cb1e202fe36786",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1727348695, "lastModified": 1727348695,
"narHash": "sha256-J+PeFKSDV+pHL7ukkfpVzCOO7mBSrrpJ3svwBFABbhI=", "narHash": "sha256-J+PeFKSDV+pHL7ukkfpVzCOO7mBSrrpJ3svwBFABbhI=",
@@ -111,7 +195,9 @@
"home-manager": "home-manager", "home-manager": "home-manager",
"nix-index-database": "nix-index-database", "nix-index-database": "nix-index-database",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs_2",
"tourbox-linux": "tourbox-linux",
"yoi": "yoi",
"zen-browser": "zen-browser" "zen-browser": "zen-browser"
} }
}, },
@@ -130,9 +216,78 @@
"type": "github" "type": "github"
} }
}, },
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"systems_3": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"tourbox-linux": {
"inputs": {
"flake-utils": "flake-utils_2",
"nixpkgs": "nixpkgs_3"
},
"locked": {
"lastModified": 1782109395,
"narHash": "sha256-5b11NT4jgnTrZj8O94MbqiWjslgeKoiqnlfmZ4eJu3s=",
"owner": "HareK02",
"repo": "TourBox-Linux",
"rev": "d5d5055514576701c05d177186bba2ed2f65cc91",
"type": "github"
},
"original": {
"owner": "HareK02",
"repo": "TourBox-Linux",
"type": "github"
}
},
"yoi": {
"inputs": {
"flake-utils": "flake-utils_3",
"nixpkgs": "nixpkgs_4"
},
"locked": {
"lastModified": 1784328575,
"narHash": "sha256-4LdSQBnOPZ82otj2go33qAtDUcVtWFRmMvfgKdQO9Ys=",
"ref": "develop",
"rev": "37c44a7942776ce43d21f0aa55e55006de1aa6a4",
"revCount": 3343,
"type": "git",
"url": "ssh://git@gitea.hareworks.net/Hare/yoi.git"
},
"original": {
"ref": "develop",
"type": "git",
"url": "ssh://git@gitea.hareworks.net/Hare/yoi.git"
}
},
"zen-browser": { "zen-browser": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_5"
}, },
"locked": { "locked": {
"lastModified": 1761859251, "lastModified": 1761859251,
+5
View File
@@ -10,6 +10,8 @@
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
nixos-hardware.url = "github:NixOS/nixos-hardware"; nixos-hardware.url = "github:NixOS/nixos-hardware";
zen-browser.url = "github:xaragon/zen-browser-flake"; zen-browser.url = "github:xaragon/zen-browser-flake";
yoi.url = "git+ssh://git@gitea.hareworks.net/Hare/yoi.git?ref=develop";
tourbox-linux.url = "github:HareK02/TourBox-Linux";
nix-index-database.url = "github:Mic92/nix-index-database"; nix-index-database.url = "github:Mic92/nix-index-database";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs"; nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
@@ -34,6 +36,9 @@
apps.home-manager = { apps.home-manager = {
type = "app"; type = "app";
program = "${hm}/bin/home-manager"; program = "${hm}/bin/home-manager";
meta = {
description = "Home Manager for Nix";
};
}; };
} }
)); ));
+3 -2
View File
@@ -1,5 +1,6 @@
{ {
programs.firefox = { programs.firefox = {
enable = true; enable = true;
}; configPath = ".mozilla/firefox";
};
} }
+204 -77
View File
@@ -12,6 +12,39 @@ let
optionals optionals
; ;
rosePineHyprcursor = pkgs.callPackage ./rose-pine-hyprcursor.nix { }; rosePineHyprcursor = pkgs.callPackage ./rose-pine-hyprcursor.nix { };
mkLua = lib.generators.mkLuaInline;
mkEnv = name: value: {
_args = [
name
value
];
};
mkBind = keys: dispatcher: {
_args = [
keys
(mkLua dispatcher)
];
};
mkMouseBind = keys: dispatcher: {
_args = [
keys
(mkLua dispatcher)
{ mouse = true; }
];
};
mkStartHook = commands: {
_args = [
"hyprland.start"
(mkLua ''
function()
${lib.concatMapStrings (command: " hl.exec_cmd(${builtins.toJSON command})\n") commands}end
'')
];
};
defaultInput = { defaultInput = {
kb_layout = "us"; kb_layout = "us";
@@ -23,20 +56,19 @@ 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;
}; };
wallpaperCommand = config.hare.hyprland.wallpaperCommand; wallpaperCommand = config.hare.hyprland.wallpaperCommand;
baseSettings = { startupCommands = [
exec-once = [
# "/usr/lib/polkit-kde-authentication-agent-1" # "/usr/lib/polkit-kde-authentication-agent-1"
# "dunst" # "dunst"
"swww-daemon" "awww-daemon"
# "copyq --start-server" # "copyq --start-server"
# "wl-paste --type text --watch cliphist store" # "wl-paste --type text --watch cliphist store"
# "wl-paste --type image --watch cliphist store" # "wl-paste --type image --watch cliphist store"
@@ -44,7 +76,8 @@ let
"eww open bar" "eww open bar"
"eww open roundedEdge" "eww open roundedEdge"
]; ];
exec =
reloadCommands =
optionals (wallpaperCommand != null) [ optionals (wallpaperCommand != null) [
wallpaperCommand wallpaperCommand
] ]
@@ -55,12 +88,8 @@ let
"dconf write /org/gnome/desktop/interface/font-name 'Noto Sans Medium 11'" "dconf write /org/gnome/desktop/interface/font-name 'Noto Sans Medium 11'"
"dconf write /org/gnome/desktop/interface/monospace-font-name 'Noto Sans Mono Medium 11'" "dconf write /org/gnome/desktop/interface/monospace-font-name 'Noto Sans Mono Medium 11'"
]; ];
env = [
"XDG_CURRENT_DESKTOP,Hyprland"
"XDG_SESSION_TYPE,wayland"
"XDG_SESSION_DESKTOP,Hyprland"
];
baseConfig = {
ecosystem.no_update_news = true; ecosystem.no_update_news = true;
input = defaultInput; input = defaultInput;
@@ -71,7 +100,6 @@ let
}; };
dwindle = { dwindle = {
pseudotile = true;
preserve_split = true; preserve_split = true;
}; };
@@ -80,78 +108,124 @@ let
disable_hyprland_logo = true; disable_hyprland_logo = true;
disable_splash_rendering = true; disable_splash_rendering = true;
}; };
xwayland = {
force_zero_scaling = true;
};
};
windowrule = [ baseSettings = {
"animation windowsIn 0, match:title ^(.*wofi.*)$" menu = {
"float on, match:title ^(.*feh.*)$" _var = "uwsm app -- $(tofi-drun)";
"center on, match:title ^(.*feh.*)$" };
"float on, match:title ^(Picture.*)$" terminal = {
"pin on, match:title ^(Picture.*)$" _var = "wezterm";
"immediate on, match:class ^(Terraria)$" };
lock = {
_var = "hyprlock";
};
env = [
(mkEnv "XDG_CURRENT_DESKTOP" "Hyprland")
(mkEnv "XDG_SESSION_TYPE" "wayland")
(mkEnv "XDG_SESSION_DESKTOP" "Hyprland")
# "GDK_SCALE,2"
# "XCURSOR_SIZE,32"
]; ];
workspace = [ exec_cmd = reloadCommands;
"1, monitor:DP-2, default:true"
"r[2-9], monitor:DP-2" on = mkStartHook startupCommands;
"name:sub, monitor:DP-1, default:true"
window_rule = [
{
match.title = "^(.*wofi.*)$";
animation = "windowsIn 0";
}
{
match.title = "^(.*feh.*)$";
float = true;
}
{
match.title = "^(.*feh.*)$";
center = true;
}
{
match.title = "^(Picture.*)$";
float = true;
}
{
match.title = "^(Picture.*)$";
pin = true;
}
]; ];
"$menu" = "uwsm app -- $(tofi-drun)"; workspace_rule = [
"$terminal" = "wezterm"; {
"$lock" = "hyprlock"; workspace = "r[1-9]";
bindm = [ monitor = "DP-1";
# Window Movement & Resizing }
"SUPER, mouse:272, movewindow" {
"SUPER, mouse:273, resizewindow" workspace = "101";
monitor = "DP-2";
default = true;
}
{
workspace = "102";
monitor = "DP-3";
default = true;
}
]; ];
bind = [ bind = [
# Window Movement & Resizing
(mkMouseBind "SUPER + mouse:272" "hl.dsp.window.drag()")
(mkMouseBind "SUPER + mouse:273" "hl.dsp.window.resize()")
# basic # basic
"SUPER, return, exec, $menu" (mkBind "SUPER + RETURN" "hl.dsp.exec_cmd(menu)")
"SUPER, E, exec, $terminal" (mkBind "SUPER + E" "hl.dsp.exec_cmd(terminal)")
"SUPER, Q, killactive," (mkBind "SUPER + Q" "hl.dsp.window.close()")
"SUPER, L, exec, $lock" (mkBind "SUPER + L" "hl.dsp.exec_cmd(lock)")
"SUPER_SHIFT, M, exec, loginctl terminate-user $USER" (mkBind "SUPER + SHIFT + L" ''hl.dsp.dpms({ action = "off" })'')
(mkBind "SUPER + SHIFT + M" ''hl.dsp.exec_cmd("loginctl terminate-user $USER")'')
# prsc # prsc
", Print, exec, hyprshot -m window -m active --clipboard-only" (mkBind "Print" ''hl.dsp.exec_cmd("hyprshot -m window -m active --clipboard-only")'')
# Clipboard # Clipboard
"SUPER, C, exec, copyq show" (mkBind "SUPER + C" ''hl.dsp.exec_cmd("copyq show")'')
"SUPER, V, exec, clipman pick -t dmenu" (mkBind "SUPER + V" ''hl.dsp.exec_cmd("clipman pick -t dmenu")'')
# Window navigation # Window navigation
"SUPER, F, fullscreen," (mkBind "SUPER + F" "hl.dsp.window.fullscreen()")
"SUPER, Y, pin" (mkBind "SUPER + Y" "hl.dsp.window.pin()")
"SUPER, I, togglefloating," (mkBind "SUPER + I" ''hl.dsp.window.float({ action = "toggle" })'')
"SUPER, O, togglesplit," # dwindle (mkBind "SUPER + O" ''hl.dsp.layout("togglesplit")'') # dwindle
"SUPER, P, pseudo," # dwindle (mkBind "SUPER + P" "hl.dsp.window.pseudo()") # dwindle
# Window focus # Window focus
"SUPER, mouse_down, cyclenext, next" (mkBind "SUPER + mouse_down" "hl.dsp.window.cycle_next()")
"SUPER, mouse_up, cyclenext, prev" (mkBind "SUPER + mouse_up" "hl.dsp.window.cycle_next({ next = false })")
"SUPER, left, movefocus, l" (mkBind "SUPER + left" ''hl.dsp.focus({ direction = "left" })'')
"SUPER, right, movefocus, r" (mkBind "SUPER + right" ''hl.dsp.focus({ direction = "right" })'')
"SUPER, up, movefocus, u" (mkBind "SUPER + up" ''hl.dsp.focus({ direction = "up" })'')
"SUPER, down, movefocus, d" (mkBind "SUPER + down" ''hl.dsp.focus({ direction = "down" })'')
"SUPER_SHIFT, left, movewindow, l" (mkBind "SUPER + SHIFT + left" ''hl.dsp.window.move({ direction = "left" })'')
"SUPER_SHIFT, right, movewindow, r" (mkBind "SUPER + SHIFT + right" ''hl.dsp.window.move({ direction = "right" })'')
"SUPER_SHIFT, up, movewindow, u" (mkBind "SUPER + SHIFT + up" ''hl.dsp.window.move({ direction = "up" })'')
"SUPER_SHIFT, down, movewindow, d" (mkBind "SUPER + SHIFT + down" ''hl.dsp.window.move({ direction = "down" })'')
# workspaces # workspaces
"SUPER, 1, workspace, 1" (mkBind "SUPER + 1" "hl.dsp.focus({ workspace = 1 })")
"SUPER, 2, workspace, 2" (mkBind "SUPER + 2" "hl.dsp.focus({ workspace = 2 })")
"SUPER, 3, workspace, 3" (mkBind "SUPER + 3" "hl.dsp.focus({ workspace = 3 })")
"SUPER_CTRL, left, workspace, m-1" (mkBind "SUPER + CTRL + left" ''hl.dsp.focus({ workspace = "m-1" })'')
"SUPER_CTRL, right, workspace, m+1" (mkBind "SUPER + CTRL + right" ''hl.dsp.focus({ workspace = "m+1" })'')
"SUPER_CTRL_SHIFT, left, workspace, r-1" (mkBind "SUPER + CTRL + SHIFT + left" ''hl.dsp.focus({ workspace = "r-1" })'')
"SUPER_CTRL_SHIFT, right, workspace, r+1" (mkBind "SUPER + CTRL + SHIFT + right" ''hl.dsp.focus({ workspace = "r+1" })'')
# screenshot
"SUPER_SHIFT, S, exec, hyprshot -m region --clipboard-only"
] ]
++ ( ++ (
# workspaces # workspaces
@@ -163,8 +237,8 @@ let
ws = i + 1; ws = i + 1;
in in
[ [
"SUPER, code:1${toString i}, workspace, ${toString ws}" (mkBind "SUPER + code:1${toString i}" "hl.dsp.focus({ workspace = ${toString ws} })")
"SUPER SHIFT, code:1${toString i}, movetoworkspace, ${toString ws}" (mkBind "SUPER + SHIFT + code:1${toString i}" "hl.dsp.window.move({ workspace = ${toString ws} })")
] ]
) 9 ) 9
) )
@@ -176,8 +250,16 @@ let
gaps_in = 4; gaps_in = 4;
gaps_out = 7; gaps_out = 7;
border_size = 3; border_size = 3;
"col.active_border" = "rgba(6e848cee) rgba(eeeeffee) 90deg"; col = {
"col.inactive_border" = "rgba(595959aa)"; active_border = {
colors = [
"rgba(6e848cee)"
"rgba(eeeeffee)"
];
angle = 90;
};
inactive_border = "rgba(595959aa)";
};
}; };
decoration = { decoration = {
rounding = 10; rounding = 10;
@@ -202,18 +284,59 @@ let
animations = { animations = {
enabled = true; enabled = true;
animation = [ animation = [
"windowsIn, 1, 1, default, popin 90%" {
"windowsOut, 1, 100, default, popin 80%" leaf = "windowsIn";
"windowsMove, 1, 3, default" enabled = true;
"border, 1, 10, default" speed = 1;
"borderangle, 1, 8, default" bezier = "default";
"fade, 1, 7, default" style = "popin 90%";
"workspaces, 1, 5, default, slidefade 10%" }
{
leaf = "windowsOut";
enabled = true;
speed = 100;
bezier = "default";
style = "popin 80%";
}
{
leaf = "windowsMove";
enabled = true;
speed = 3;
bezier = "default";
}
{
leaf = "border";
enabled = true;
speed = 10;
bezier = "default";
}
{
leaf = "borderangle";
enabled = true;
speed = 8;
bezier = "default";
}
{
leaf = "fade";
enabled = true;
speed = 7;
bezier = "default";
}
{
leaf = "workspaces";
enabled = true;
speed = 5;
bezier = "default";
style = "slidefade 10%";
}
]; ];
}; };
}; };
styleSettings = recursiveUpdate defaultStyle config.hare.hyprland.style; styleSettings = recursiveUpdate defaultStyle config.hare.hyprland.style;
styleConfig = recursiveUpdate (builtins.removeAttrs styleSettings [ "animations" ]) {
animations = builtins.removeAttrs styleSettings.animations [ "animation" ];
};
inputSettings = recursiveUpdate defaultInput config.hare.hyprland.input; inputSettings = recursiveUpdate defaultInput config.hare.hyprland.input;
in in
{ {
@@ -231,16 +354,20 @@ in
options.hare.hyprland.wallpaperCommand = mkOption { options.hare.hyprland.wallpaperCommand = mkOption {
type = types.nullOr types.str; type = types.nullOr types.str;
default = null; default = null;
description = "Command to set the wallpaper (e.g., \"swww img <path>\"); appended to Hyprland's exec list when provided."; description = "Command to set the wallpaper (e.g., \"awww img <path>\"); appended to Hyprland's exec list when provided.";
}; };
config = { config = {
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
configType = "lua";
systemd.enable = false; systemd.enable = false;
settings = recursiveUpdate (recursiveUpdate baseSettings styleSettings) { settings = recursiveUpdate baseSettings {
config = recursiveUpdate (recursiveUpdate baseConfig styleConfig) {
input = inputSettings; input = inputSettings;
}; };
animation = styleSettings.animations.animation;
};
plugins = [ plugins = [
]; ];
}; };
@@ -248,7 +375,7 @@ in
rosePineHyprcursor rosePineHyprcursor
] ]
++ (with pkgs; [ ++ (with pkgs; [
swww awww
eww eww
hyprshot hyprshot
]); ]);
+55 -9
View File
@@ -4,8 +4,16 @@
gaps_in = 0; gaps_in = 0;
gaps_out = 0; gaps_out = 0;
border_size = 2; border_size = 2;
"col.active_border" = "rgba(6e848cee) rgba(eeeeffee) 90deg"; col = {
"col.inactive_border" = "rgba(595959aa)"; active_border = {
colors = [
"rgba(6e848cee)"
"rgba(eeeeffee)"
];
angle = 90;
};
inactive_border = "rgba(595959aa)";
};
layout = "dwindle"; layout = "dwindle";
allow_tearing = true; allow_tearing = true;
}; };
@@ -31,13 +39,51 @@
animations = lib.mkForce { animations = lib.mkForce {
enabled = true; enabled = true;
animation = [ animation = [
"windowsIn, 1, 1, default, popin 90%" {
"windowsOut, 1, 100, default, popin 80%" leaf = "windowsIn";
"windowsMove, 1, 3, default" enabled = true;
"border, 1, 10, default" speed = 1;
"borderangle, 1, 8, default" bezier = "default";
"fade, 1, 7, default" style = "popin 90%";
"workspaces, 1, 5, default, slidefade 10%" }
{
leaf = "windowsOut";
enabled = true;
speed = 100;
bezier = "default";
style = "popin 80%";
}
{
leaf = "windowsMove";
enabled = true;
speed = 3;
bezier = "default";
}
{
leaf = "border";
enabled = true;
speed = 10;
bezier = "default";
}
{
leaf = "borderangle";
enabled = true;
speed = 8;
bezier = "default";
}
{
leaf = "fade";
enabled = true;
speed = 7;
bezier = "default";
}
{
leaf = "workspaces";
enabled = true;
speed = 5;
bezier = "default";
style = "slidefade 10%";
}
]; ];
}; };
} }
+3 -8
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.
-95
View File
@@ -1,95 +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
pnpm_9
notion-app
];
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"
];
}
-10
View File
@@ -1,10 +0,0 @@
{ pkgs, ... }:
{
extraGroups = [
"docker"
"i2c"
];
shell = pkgs.fish;
# openssh.authroizedKeys.keys = [
# ];
}
+19
View File
@@ -0,0 +1,19 @@
inputs:
let
mkHost = import ../mkHost.nix inputs;
in
mkHost {
system = "x86_64-linux";
hostname = "Arcadia";
users = [
{
username = "hare";
home = ./hare/home-manager.nix;
nixos = ./hare/nixos.nix;
}
];
systemModules = [
inputs.tourbox-linux.nixosModules.default
./nixos.nix
];
}
@@ -1,6 +1,3 @@
# 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, config,
lib, lib,
@@ -8,16 +5,15 @@
modulesPath, modulesPath,
... ...
}: }:
{ {
imports = [ imports = [
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci" "xhci_pci"
"ahci" "ahci"
"nvme"
"usb_storage" "usb_storage"
"usbhid" "usbhid"
"sd_mod" "sd_mod"
@@ -27,12 +23,12 @@
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = { fileSystems."/" = {
device = "/dev/disk/by-uuid/e8956bf9-0123-4caf-8a5d-abe77a33e83a"; device = "/dev/disk/by-uuid/f3934858-078f-463a-9dd3-d6ba220ced6d";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = { fileSystems."/boot" = {
device = "/dev/disk/by-uuid/6949-1506"; device = "/dev/disk/by-uuid/FFAC-0945";
fsType = "vfat"; fsType = "vfat";
options = [ options = [
"fmask=0077" "fmask=0077"
@@ -42,13 +38,21 @@
swapDevices = [ ]; swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
services.xserver.videoDrivers = [ "nvidia" ]; hardware.graphics = {
hardware.nvidia = { enable = true;
modesetting.enable = true; extraPackages = with pkgs; [
open = true; mesa
nvidiaSettings = true; libva
libvdpau-va-gl
vulkan-loader
vulkan-validation-layers
mesa.opencl # Enables Rusticl (OpenCL) support
rocmPackages.clr.icd
];
}; };
} }
+128
View File
@@ -0,0 +1,128 @@
{
pkgs,
inputs,
lib,
...
}:
{
home.stateVersion = "26.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/blender.nix
# ../../../home-manager/voicevox.nix
];
wayland.windowManager.hyprland.settings.monitor = [
{
output = "DP-1";
mode = "5120x2880@60";
position = "0x0";
scale = 2;
}
{
output = "DP-2";
mode = "2560x1440@144";
position = "2560x0";
scale = 1;
transform = 0;
}
# {
# output = "DP-3";
# mode = "1920x1080@60";
# position = "0x0";
# scale = 0.75;
# transform = 0;
# mirror = "DP-1";
# }
{
output = "DP-3";
mode = "1920x1080@144";
position = "-1080x-240";
scale = 1;
transform = 1;
}
];
hare.hyprland = {
input.sensitivity = -1.0;
wallpaperCommand = "awww img /usr/share/wallpaper/arknights-02.jpg";
};
programs.nix-index-database.comma.enable = true;
home.packages = with pkgs; [
vivaldi
google-chrome
discord
plemoljp
plemoljp-nf
prismlauncher
nodejs
scrcpy
tetrio-desktop
kicad
gimp
inkscape
obsidian
kdePackages.filelight
(deno.overrideAttrs (oldAttrs: {
doCheck = false;
}))
godot
unityhub
nixd
rust-analyzer
aseprite
bambu-studio
orca-slicer
davinci-resolve
inputs.zen-browser.packages."${stdenv.hostPlatform.system}".default
# inputs.yoi.packages.${stdenv.hostPlatform.system}.default
];
services.easyeffects = {
enable = true;
};
programs.git = {
enable = true;
settings.user.name = "Hare";
settings.user.email = "kei.hiracchi.0928@gmail.com";
signing = {
format = "ssh";
key = "~/.ssh/git-sign.pub";
signByDefault = true;
};
};
fonts = {
fontconfig = {
defaultFonts = {
serif = [ "Noto Serif" ];
sansSerif = [ "Noto Sans" ];
monospace = [ "PlemolJP NF Console" ];
};
};
};
xdg.mimeApps = {
enable = true;
defaultApplications = {
"text/html" = "vivaldi-stable.desktop";
"x-scheme-handler/http" = "vivaldi-stable.desktop";
"x-scheme-handler/https" = "vivaldi-stable.desktop";
"x-scheme-handler/about" = "vivaldi-stable.desktop";
"x-scheme-handler/unknown" = "vivaldi-stable.desktop";
"x-scheme-handler/vivaldi" = "vivaldi-stable.desktop";
};
};
}
+14
View File
@@ -0,0 +1,14 @@
{ pkgs, ... }:
{
extraGroups = [
"adbusers"
"docker"
];
shell = pkgs.fish;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIfql/a6ZtxOPgBhFzOfgTO6HGcy0Se9mgMLmOa40vMF"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIW2Yrqwi4YjIrdI8mygX5pTHDPmrUgbmpZ4WxoTqORi keihi@Vostro-LapTop"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICi8Cciepfs1ikPdfyHjc9qJX5z2QLFF9jBszsyEvCMA nix-on-droid@localhost"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID8Eo/QDJtXqluvjNx5ZpeIt0c/yf/Mgr7dKhNWAICZX hare@x1carbon"
];
}
+126
View File
@@ -0,0 +1,126 @@
{ pkgs, ... }:
let
config.boot.kernelPackages = pkgs.linuxPackages_latest;
in
{
system.stateVersion = "25.11";
cornflake.greeter.monitors = [
{
output = "DP-1";
mode = "5120x2880@60";
position = "0x0";
scale = 2;
}
{
output = "DP-2";
disabled = true;
}
{
output = "DP-3";
disabled = true;
}
];
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
rocmPackages.rocm-runtime
rocmPackages.rocminfo
rocmPackages.clr
rocmPackages.rocm-smi
qemu
(pkgs.writeShellScriptBin "qemu-system-x86_64-uefi" ''
qemu-system-x86_64 \
-bios ${pkgs.OVMF.fd}/FV/OVMF.fd \
"$@"
'')
wineWow64Packages.waylandFull
winetricks
bluez
bluez-tools
bluetuith
obexftp
fzf
ghq
gh
];
environment.sessionVariables.NIXOS_OZONE_WL = "1";
programs.nix-ld.enable = true;
services.openssh.enable = true;
services.udisks2.enable = true;
networking.firewall.allowedTCPPorts = [
8080
22
5173
8000
9001
25565
];
networking.firewall.allowedUDPPorts = [ ];
services.udev.extraRules = ''
ATTRS{idVendor}=="3151", ATTRS{idProduct}=="502d", MODE="0777"
ATTRS{idVendor}=="414", ATTRS{idProduct}=="211a", MODE="0777"
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0660", GROUP="input"
'';
services.tourbox-linux.enable = true;
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"
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.initrd.kernelModules = [ "amdgpu" ];
}
+3 -1
View File
@@ -1,7 +1,9 @@
inputs: inputs:
rec { rec {
hosts = { hosts = {
aqua = import ./aqua inputs; arcadia = import ./arcadia inputs;
x1carbon = import ./x1carbon 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) { } (map (h: h.home-manager) (builtins.attrValues hosts)); home-manager = builtins.foldl' (a: b: a // b) { } (map (h: h.home-manager) (builtins.attrValues hosts));
@@ -4,12 +4,12 @@ let
in in
mkHost { mkHost {
system = "x86_64-linux"; system = "x86_64-linux";
hostname = "AQUA"; hostname = "Fungus";
users = [ users = [
{ {
username = "umi"; username = "hare";
homeModule = [ ./umi/home-manager.nix ]; home = ./hare/home-manager.nix;
userNixos = ./umi/nixos.nix; nixos = ./hare/nixos.nix;
} }
]; ];
systemModules = [ ./nixos.nix ]; systemModules = [ ./nixos.nix ];
+44
View File
@@ -0,0 +1,44 @@
# 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"
"usbhid"
"usb_storage"
"sd_mod"
"sr_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/e4eb343c-d88f-4d63-99aa-c2c41d8580db";
fsType = "ext4";
};
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp3s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
+25
View File
@@ -0,0 +1,25 @@
{ pkgs, ... }:
{
home.stateVersion = "26.05";
imports = [
../../../home-manager/direnv.nix
../../../home-manager/wezterm
../../../home-manager/fish
];
home.packages = with pkgs; [ ];
programs.git = {
enable = true;
settings.user.name = "Hare";
settings.user.email = "kei.hiracchi.0928@gmail.com";
};
fonts = {
fontconfig = {
defaultFonts = {
serif = [ "Noto Serif" ];
sansSerif = [ "Noto Sans" ];
monospace = [ "PlemolJP NF Console" ];
};
};
};
}
+11
View File
@@ -0,0 +1,11 @@
{ pkgs, ... }:
{
extraGroups = [
"docker"
];
shell = pkgs.fish;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBd45JtvgM44KUqhp3Xl2Wtt6rmxU13c/84YLyGKigkG hare@nixos"
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDZTkjrLwH+jsSHF/LI23+WPQ9rff9vWBH1VaxSjNADIIKDY7vGkWWRUCImt8QTzied3mNFv+EyZ8igiJdm5tEO1KkrWUqTZk5Ut79LTQftB23SDNC8XzuHKxwaKHdwZIP065biRFUqNYHu8h0EHKbQ3Djj6cZYBcEL1JOc0wtm4jmuW6Fp3rCn/ZCo0g3Kg7SfY4cpf4fJTB97bIjPJzG7JSSOuTkJcDQzFrySUPOpgrt5+iSqKJ/tQtfxLHcNq8AMrh1fH6sUzaJLmMs/7V9LTbsbILTY4YQj5FF07dBqEJBwvZ9sRTPPzl/HSdVmp9OlCZnryPbjTKJmK1Nxx+tOZfh4IY3mWWnEegvDNCYwKJu+d+zeqDaSUMx0kpAnK9PLSI0By8FtboRVvSFSce6FouiUhEzJyKXAr3E1JCgQXdLcTTb66rbBcauuqhuieKDGPpz45EbFi83uHNeDodi5b75h5r1Nn+oJmzagwUAoyw4gCCbiYwTAe3GA79LK7kE= hare@hr-r620"
];
}
+31
View File
@@ -0,0 +1,31 @@
{ pkgs, ... }:
{
system.stateVersion = "25.05";
imports = [
./hardware-configuration.nix
../../system/core
../../programs/ssh.nix
../../programs/utility.nix
../../programs/shell.nix
../../programs/docker.nix
];
environment.systemPackages = with pkgs; [
];
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
boot.loader.grub.useOSProber = true;
boot.loader.efi.canTouchEfiVariables = true;
programs.nix-ld.enable = true;
services.openssh.enable = true;
networking.firewall.allowedTCPPorts = [
22
25565
];
networking.firewall.allowedUDPPorts = [ ];
}
+4 -3
View File
@@ -16,8 +16,8 @@ in
modules = modules =
systemModules systemModules
++ (map (u: { pkgs, ... }: { ++ (map (u: { pkgs, ... }: {
users.users.${u.username} = import u.userNixos { inherit pkgs; }; users.users.${u.username} = import u.nixos { inherit pkgs; };
}) (builtins.filter (u: u ? userNixos) users)) }) (builtins.filter (u: u ? nixos) users))
++ [ ++ [
{ {
users.users = builtins.listToAttrs (map (u: { users.users = builtins.listToAttrs (map (u: {
@@ -56,7 +56,8 @@ in
programs.home-manager.enable = true; programs.home-manager.enable = true;
} }
(import ../system/home-manager) (import ../system/home-manager)
] ++ u.homeModule; u.home
];
}; };
}) users); }) users);
} }
+16
View File
@@ -0,0 +1,16 @@
inputs:
let
mkHost = import ../mkHost.nix inputs;
in
mkHost {
system = "x86_64-linux";
hostname = "x1carbon";
users = [
{
username = "hare";
home = ./hare/home-manager.nix;
nixos = ./hare/nixos.nix;
}
];
systemModules = [ ./nixos.nix ];
}
+31
View File
@@ -0,0 +1,31 @@
# 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" "ehci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/92c8bab5-07b9-4394-888d-6cb481972018";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/1711-8E2B";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
+67
View File
@@ -0,0 +1,67 @@
{
pkgs,
inputs,
lib,
...
}:
{
home.stateVersion = "26.05";
imports = [
../../../home-manager/hyprland
../../../home-manager/tofi.nix
../../../home-manager/fnott.nix
../../../home-manager/direnv.nix
../../../home-manager/obs-studio.nix
../../../home-manager/wezterm
../../../home-manager/fish
];
hare.hyprland = {
style = import ../../../home-manager/hyprland/styles/thin.nix { inherit lib; };
input.sensitivity = -0.6;
wallpaperCommand = "awww img /usr/share/wallpaper/";
};
home.packages = with pkgs; [
vivaldi
discord
plemoljp
plemoljp-nf
prismlauncher
scrcpy
gimp
zed-editor
deno
nodejs_latest
# aseprite
];
services.easyeffects = {
enable = true;
};
programs.git = {
enable = true;
settings.user.name = "Hare";
settings.user.email = "kei.hiracchi.0928@gmail.com";
};
fonts = {
fontconfig = {
defaultFonts = {
serif = [ "Noto Serif" ];
sansSerif = [ "Noto Sans" ];
monospace = [ "PlemolJP NF Console" ];
};
};
};
xdg.mimeApps = {
enable = true;
defaultApplications = {
"text/html" = "vivaldi-stable.desktop";
"x-scheme-handler/http" = "vivaldi-stable.desktop";
"x-scheme-handler/https" = "vivaldi-stable.desktop";
"x-scheme-handler/about" = "vivaldi-stable.desktop";
"x-scheme-handler/unknown" = "vivaldi-stable.desktop";
};
};
}
+11
View File
@@ -0,0 +1,11 @@
{ pkgs, ... }:
{
extraGroups = [
"docker"
];
shell = pkgs.fish;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIfql/a6ZtxOPgBhFzOfgTO6HGcy0Se9mgMLmOa40vMF"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIW2Yrqwi4YjIrdI8mygX5pTHDPmrUgbmpZ4WxoTqORi keihi@Vostro-LapTop"
];
}
@@ -1,8 +1,4 @@
{ { pkgs, ... }:
pkgs,
username,
...
}:
let let
config.boot.kernelPackages = pkgs.linuxPackages_latest; config.boot.kernelPackages = pkgs.linuxPackages_latest;
in in
@@ -23,20 +19,16 @@ in
../../programs/steam.nix ../../programs/steam.nix
]; ];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
cargo
rustc
rustfmt
openssl openssl
vulkan-tools
android-tools
android-file-transfer
ddcutil
bluez
bluez-tools
bluetuith bluetuith
obexftp
brightnessctl
fzf fzf
ghq ghq
android-tools
]; ];
environment.sessionVariables.NIXOS_OZONE_WL = "1"; environment.sessionVariables.NIXOS_OZONE_WL = "1";
@@ -46,27 +38,22 @@ in
services.udisks2.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 = [ networking.firewall.allowedTCPPorts = [
22 22
19132
25565
]; ];
networking.firewall.allowedUDPPorts = [ ]; networking.firewall.allowedUDPPorts = [ ];
services.udev.extraRules = ""; services.openvpn.servers = {
homeVPN = {
config = ''config /root/nixos/openvpn/homeVPN.conf '';
};
};
services.udev.extraRules = ''
ATTRS{idVendor}=="3151", ATTRS{idProduct}=="502d", MODE="0777"
ATTRS{idVendor}=="414", ATTRS{idProduct}=="211a", MODE="0777"
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0660", GROUP="input"
'';
hardware.bluetooth = { hardware.bluetooth = {
enable = true; enable = true;
@@ -95,24 +82,6 @@ in
"v4l2loopback" "v4l2loopback"
]; ];
# Bootloader. boot.loader.systemd-boot.enable = true;
boot.loader.systemd-boot.enable = false;
boot.loader.efi.canTouchEfiVariables = true; 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"
];
} }
+1 -1
View File
@@ -11,7 +11,7 @@
services.hypridle.enable = true; services.hypridle.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
swww awww
eww eww
]; ];
} }
+4
View File
@@ -5,4 +5,8 @@
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
}; };
programs.gamescope = {
enable = true;
};
} }
+2 -1
View File
@@ -10,6 +10,7 @@
bat bat
wezterm wezterm
libsixel libsixel
nixfmt-rfc-style nixfmt
nil
]; ];
} }
+41 -29
View File
@@ -1,45 +1,60 @@
{ config, lib, pkgs, ... }: {
config,
lib,
pkgs,
...
}:
let let
rosePineHyprcursor = pkgs.callPackage ../../home-manager/hyprland/rose-pine-hyprcursor.nix { }; rosePineHyprcursor = pkgs.callPackage ../../home-manager/hyprland/rose-pine-hyprcursor.nix { };
monitorConf = lib.concatMapStrings (m: "monitor = ${m}\n") config.cornflake.greeter.monitors; toLua = lib.generators.toLua { };
hyprGreetConf = pkgs.writeText "hyprland-greetd.conf" '' monitorConf = lib.concatMapStrings (
m: "hl.monitor(${toLua m})\n"
) config.cornflake.greeter.monitors;
hyprGreetConf = pkgs.writeText "hyprland-greetd.lua" ''
${monitorConf} ${monitorConf}
env = HYPRCURSOR_THEME,rose-pine-hyprcursor hl.env("HYPRCURSOR_THEME", "rose-pine-hyprcursor")
env = HYPRCURSOR_SIZE,24 hl.env("HYPRCURSOR_SIZE", "24")
env = XCURSOR_SIZE,24 hl.env("XCURSOR_SIZE", "24")
hl.env("GTK_USE_PORTAL", "0")
hl.env("GDK_DEBUG", "no-portals")
env = XDG_CURRENT_DESKTOP,Hyprland hl.env("XDG_CURRENT_DESKTOP", "Hyprland")
env = XDG_SESSION_TYPE,wayland hl.env("XDG_SESSION_TYPE", "wayland")
env = XDG_SESSION_DESKTOP,Hyprland hl.env("XDG_SESSION_DESKTOP", "Hyprland")
general { hl.config({
border_size = 0 general = {
} border_size = 0,
},
animations = {
enabled = false,
},
misc = {
force_default_wallpaper = false,
disable_hyprland_logo = true,
disable_splash_rendering = true,
disable_hyprland_guiutils_check = true,
},
})
animations { hl.on("hyprland.start", function()
enabled = false hl.exec_cmd("${
} config.programs.regreet.package or pkgs.regreet
}/bin/regreet; ${pkgs.hyprland}/bin/hyprctl dispatch 'hl.dsp.exit()'")
misc { end)
force_default_wallpaper = false
disable_hyprland_logo = true
disable_splash_rendering = true
}
exec-once = ${config.programs.regreet.package or pkgs.regreet}/bin/regreet; hyprctl dispatch exit
''; '';
in in
{ {
options.cornflake.greeter.monitors = lib.mkOption { options.cornflake.greeter.monitors = lib.mkOption {
type = lib.types.listOf lib.types.str; type = lib.types.listOf lib.types.attrs;
default = [ ]; default = [ ];
description = "greetd Hyprland monitor "; description = "greetd Hyprland Lua monitor ";
}; };
config = { config = {
services.greetd.enable = true; services.greetd.enable = true;
services.greetd.settings.default_session = { services.greetd.settings.default_session = {
command = "${pkgs.hyprland}/bin/start-hyprland -- -c ${hyprGreetConf}"; command = "${pkgs.dbus}/bin/dbus-run-session ${pkgs.hyprland}/bin/start-hyprland -- -c ${hyprGreetConf}";
user = "greeter"; user = "greeter";
}; };
@@ -68,9 +83,6 @@ in
GTK = { GTK = {
application_prefer_dark_theme = true; application_prefer_dark_theme = true;
}; };
background = {
path = "/usr/share/wallpaper/arknights-image-01.png";
};
}; };
}; };
}; };
+1
View File
@@ -5,6 +5,7 @@
alsa.enable = true; alsa.enable = true;
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
jack.enable = true;
extraConfig.pipewire."92-low-latency" = { extraConfig.pipewire."92-low-latency" = {
context.properties = { context.properties = {
default.clock.rate = 48000; default.clock.rate = 48000;