mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 08:28:11 +09:00
fix
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -44,7 +44,7 @@ let
|
||||
name = "hadolint";
|
||||
publisher = "exiasr";
|
||||
version = "1.1.2";
|
||||
hash = "sha256-6GO1f8SP4CE8yYl87/tm60FdGHqHsJA4c2B6ukVdpgM=";
|
||||
hash = "sha256-6GO1f8SP4CE8yYl87/tm60FdGHqHsJA4c2B6UKVdpgM=";
|
||||
}
|
||||
{
|
||||
name = "chatgpt";
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
)
|
||||
];
|
||||
}
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
backupFileExtension = "backup";
|
||||
|
||||
users.${username} = {
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
home = {
|
||||
inherit username;
|
||||
homeDirectory = "/home/${username}";
|
||||
|
||||
@@ -13,7 +13,7 @@ in
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
boot.supportedFilesystems = [ "nfs" ];
|
||||
fuse.userAllowOther = true;
|
||||
programs.fuse.userAllowOther = true;
|
||||
services.rpcbind.enable = true;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user