This commit is contained in:
2026-05-31 14:07:26 +09:00
parent b9dd5bb6bb
commit 4044c52c7a
11 changed files with 39 additions and 33 deletions
-2
View File
@@ -14,8 +14,6 @@ in
options.my.applications.gtk = {
enable = lib.mkEnableOption "GTK theme configuration";
system.enable = lib.mkEnableOption "GTK system configuration";
homeManager.enable = lib.mkEnableOption "GTK home-manager configuration";
};
config = lib.mkIf cfg.enable {
-2
View File
@@ -14,8 +14,6 @@ in
options.my.applications.java = {
enable = lib.mkEnableOption "Java runtime";
system.enable = lib.mkEnableOption "Java system configuration";
homeManager.enable = lib.mkEnableOption "Java home-manager configuration";
};
config = lib.mkIf cfg.enable {
-2
View File
@@ -14,8 +14,6 @@ in
options.my.applications.ssh = {
enable = lib.mkEnableOption "OpenSSH client";
system.enable = lib.mkEnableOption "SSH system configuration";
homeManager.enable = lib.mkEnableOption "SSH home-manager configuration";
defaultIdentityFile = lib.mkOption {
type = lib.types.str;
@@ -30,6 +30,11 @@ in
viAlias = true;
withNodeJs = true;
nixpkgs = {
source = pkgs.path;
config.allowUnfree = true;
};
extraPackages = with pkgs; [
git
ripgrep
+1 -1
View File
@@ -44,7 +44,7 @@ let
name = "hadolint";
publisher = "exiasr";
version = "1.1.2";
hash = "sha256-6GO1f8SP4CE8yYl87/tm60FdGHqHsJA4c2B6ukVdpgM=";
hash = "sha256-6GO1f8SP4CE8yYl87/tm60FdGHqHsJA4c2B6UKVdpgM=";
}
{
name = "chatgpt";
-2
View File
@@ -14,8 +14,6 @@ in
options.my.applications.zsh = {
enable = lib.mkEnableOption "Zsh shell";
system.enable = lib.mkEnableOption "Zsh system configuration";
homeManager.enable = lib.mkEnableOption "Zsh home-manager configuration";
};
config = lib.mkIf cfg.enable {
+17 -14
View File
@@ -13,19 +13,22 @@ in
};
config.home-manager.sharedModules = [
{
config = lib.mkIf cfg.enable {
home.activation.generateSshKey = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
key="$HOME/.ssh/id_ed25519"
if [ ! -f "$key" ]; then
umask 077
mkdir -p "$HOME/.ssh"
${pkgs.openssh}/bin/ssh-keygen -t ed25519 -N "" -f "$key" \
-C "moons@$(${pkgs.hostname}/bin/hostname || echo host)"
echo "Generated SSH key at $key"
fi
'';
};
}
(
{ lib, ... }:
{
config = lib.mkIf cfg.enable {
home.activation.generateSshKey = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
key="$HOME/.ssh/id_ed25519"
if [ ! -f "$key" ]; then
umask 077
mkdir -p "$HOME/.ssh"
${pkgs.openssh}/bin/ssh-keygen -t ed25519 -N "" -f "$key" \
-C "moons@$(${pkgs.hostname}/bin/hostname || echo host)"
echo "Generated SSH key at $key"
fi
'';
};
}
)
];
}
+2
View File
@@ -15,6 +15,8 @@
backupFileExtension = "backup";
users.${username} = {
nixpkgs.config.allowUnfree = true;
home = {
inherit username;
homeDirectory = "/home/${username}";
+1 -1
View File
@@ -13,7 +13,7 @@ in
config = lib.mkIf cfg.enable {
boot.supportedFilesystems = [ "nfs" ];
fuse.userAllowOther = true;
programs.fuse.userAllowOther = true;
services.rpcbind.enable = true;
};
}
+4 -8
View File
@@ -12,15 +12,11 @@ in
};
config = lib.mkIf cfg.enable {
hardware = {
bluetooth.enable = true;
bluetooth.powerOnBoot = true;
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
};
services = {
bluetooth.enable = true;
bluetooth.startWhenNeeded = true;
blueman.enable = true;
};
services.blueman.enable = true;
};
}