Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 36 additions & 1 deletion flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@
inputs.nixpkgs.follows = "nixpkgs";
};

flake-utils.url = "github:numtide/flake-utils";
flake-utils = {
url = "github:numtide/flake-utils";
};

catppuccin = {
url = "github:catppuccin/nix";
};
};

outputs = {
Expand All @@ -21,6 +27,7 @@
nix-darwin,
home-manager,
flake-utils,
catppuccin,
} @ inputs:
let
systems = {
Expand Down Expand Up @@ -73,6 +80,7 @@
modules = [
./nix/home-manager/common
./nix/home-manager/nixos
catppuccin.homeModules.catppuccin
];
};
myHome-darwin = inputs.home-manager.lib.homeManagerConfiguration {
Expand All @@ -86,6 +94,7 @@
modules = [
./nix/home-manager/common
./nix/home-manager/darwin
catppuccin.homeModules.catppuccin
];
};
};
Expand Down
10 changes: 10 additions & 0 deletions nix/home-manager/common/bat/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
programs.bat = {
enable = true;
};

catppuccin.bat = {
enable = true;
flavor = "mocha";
};
}
10 changes: 10 additions & 0 deletions nix/home-manager/common/bottom/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
programs.bottom = {
enable = true;
};

catppuccin.bottom = {
enable = true;
flavor = "mocha";
};
}
6 changes: 3 additions & 3 deletions nix/home-manager/common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ in
imports = [
./zsh.nix
./zoxide.nix
./wezterm
./wezterm # alternative cat command
./starship.nix
./bat
./bottom # system monitor
neovim
];

Expand All @@ -17,14 +19,12 @@ in
# general
# ====================
fzf
bat # alternative cat command
eza # alternative ls command
ripgrep # alternative grep command
duf # alternative df command
fd # alternative find command
diff-so-fancy # alternative diff command
tldr # alternative man command
bottom # system monitor
unzip

# browser
Expand Down
4 changes: 3 additions & 1 deletion nix/home-manager/nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
imports = [
./niri
./waybar.nix
./fuzzel
./hyprlock
];

home = rec {
Expand All @@ -17,7 +19,7 @@

packages = with pkgs; [
niri
fuzzel
# fuzzel
swaybg
];
};
Expand Down
10 changes: 10 additions & 0 deletions nix/home-manager/nixos/fuzzel/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
programs.fuzzel = {
enable = true;
};

catppuccin.fuzzel = {
enable = true;
flavor = "mocha";
};
}
33 changes: 33 additions & 0 deletions nix/home-manager/nixos/hyprlock/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ config, ...}:
{
programs.hyprlock = {
enable = true;
settings = {
general = {
};
animations = {
enabled = true;
fade_in = {
duration = 300;
bezier = "easeOutQuint";
};
fade_out = {
duration = 300;
bezier = "easeOutQuint";
};
};
background = [
{
path = "${config.home.homeDirectory}/wallpaper/lock.png";
blur_passes = 3;
blur_size = 8;
}
];
};
};

catppuccin.hyprlock = {
enable = true;
flavor = "mocha";
};
}
6 changes: 6 additions & 0 deletions nix/home-manager/nixos/niri/config.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ layout {
}
}

window-rule {
geometry-corner-radius 12
clip-to-geometry true
}

// ウィンドウの透過設定(フォーカス状態に関係なく適用)
prefer-no-csd
window-rule {
Expand All @@ -41,6 +46,7 @@ binds {
// launch
Mod+T { spawn "wezterm"; }
Mod+D { spawn "fuzzel"; }
Mod+P { spawn "hyprlock"; }

// focus window
Mod+H { focus-column-left; }
Expand Down
Loading