mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 05:18:12 +09:00
fix
This commit is contained in:
+9
-1
@@ -32,11 +32,19 @@ let
|
|||||||
{
|
{
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
}
|
}
|
||||||
|
../modules
|
||||||
./${host}/default.nix
|
./${host}/default.nix
|
||||||
]
|
]
|
||||||
++ map (p: ../profiles/${p}.nix) profiles
|
++ map (p: ../profiles/${p}.nix) profiles
|
||||||
++ extraModules;
|
++ extraModules;
|
||||||
specialArgs = { inherit inputs username unstable; };
|
specialArgs = {
|
||||||
|
inherit
|
||||||
|
inputs
|
||||||
|
username
|
||||||
|
unstable
|
||||||
|
host
|
||||||
|
;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,8 +14,6 @@ in
|
|||||||
|
|
||||||
options.my.applications.gtk = {
|
options.my.applications.gtk = {
|
||||||
enable = lib.mkEnableOption "GTK theme configuration";
|
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 {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|||||||
@@ -14,8 +14,6 @@ in
|
|||||||
|
|
||||||
options.my.applications.java = {
|
options.my.applications.java = {
|
||||||
enable = lib.mkEnableOption "Java runtime";
|
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 {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|||||||
@@ -14,8 +14,6 @@ in
|
|||||||
|
|
||||||
options.my.applications.ssh = {
|
options.my.applications.ssh = {
|
||||||
enable = lib.mkEnableOption "OpenSSH client";
|
enable = lib.mkEnableOption "OpenSSH client";
|
||||||
system.enable = lib.mkEnableOption "SSH system configuration";
|
|
||||||
homeManager.enable = lib.mkEnableOption "SSH home-manager configuration";
|
|
||||||
|
|
||||||
defaultIdentityFile = lib.mkOption {
|
defaultIdentityFile = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
|
|||||||
@@ -30,6 +30,11 @@ in
|
|||||||
viAlias = true;
|
viAlias = true;
|
||||||
withNodeJs = true;
|
withNodeJs = true;
|
||||||
|
|
||||||
|
nixpkgs = {
|
||||||
|
source = pkgs.path;
|
||||||
|
config.allowUnfree = true;
|
||||||
|
};
|
||||||
|
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
git
|
git
|
||||||
ripgrep
|
ripgrep
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ let
|
|||||||
name = "hadolint";
|
name = "hadolint";
|
||||||
publisher = "exiasr";
|
publisher = "exiasr";
|
||||||
version = "1.1.2";
|
version = "1.1.2";
|
||||||
hash = "sha256-6GO1f8SP4CE8yYl87/tm60FdGHqHsJA4c2B6ukVdpgM=";
|
hash = "sha256-6GO1f8SP4CE8yYl87/tm60FdGHqHsJA4c2B6UKVdpgM=";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "chatgpt";
|
name = "chatgpt";
|
||||||
|
|||||||
@@ -14,8 +14,6 @@ in
|
|||||||
|
|
||||||
options.my.applications.zsh = {
|
options.my.applications.zsh = {
|
||||||
enable = lib.mkEnableOption "Zsh shell";
|
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 {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|||||||
@@ -13,19 +13,22 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config.home-manager.sharedModules = [
|
config.home-manager.sharedModules = [
|
||||||
{
|
(
|
||||||
config = lib.mkIf cfg.enable {
|
{ lib, ... }:
|
||||||
home.activation.generateSshKey = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
{
|
||||||
key="$HOME/.ssh/id_ed25519"
|
config = lib.mkIf cfg.enable {
|
||||||
if [ ! -f "$key" ]; then
|
home.activation.generateSshKey = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||||
umask 077
|
key="$HOME/.ssh/id_ed25519"
|
||||||
mkdir -p "$HOME/.ssh"
|
if [ ! -f "$key" ]; then
|
||||||
${pkgs.openssh}/bin/ssh-keygen -t ed25519 -N "" -f "$key" \
|
umask 077
|
||||||
-C "moons@$(${pkgs.hostname}/bin/hostname || echo host)"
|
mkdir -p "$HOME/.ssh"
|
||||||
echo "Generated SSH key at $key"
|
${pkgs.openssh}/bin/ssh-keygen -t ed25519 -N "" -f "$key" \
|
||||||
fi
|
-C "moons@$(${pkgs.hostname}/bin/hostname || echo host)"
|
||||||
'';
|
echo "Generated SSH key at $key"
|
||||||
};
|
fi
|
||||||
}
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
|
)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
backupFileExtension = "backup";
|
backupFileExtension = "backup";
|
||||||
|
|
||||||
users.${username} = {
|
users.${username} = {
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
inherit username;
|
inherit username;
|
||||||
homeDirectory = "/home/${username}";
|
homeDirectory = "/home/${username}";
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ in
|
|||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
boot.supportedFilesystems = [ "nfs" ];
|
boot.supportedFilesystems = [ "nfs" ];
|
||||||
fuse.userAllowOther = true;
|
programs.fuse.userAllowOther = true;
|
||||||
services.rpcbind.enable = true;
|
services.rpcbind.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,15 +12,11 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
hardware = {
|
hardware.bluetooth = {
|
||||||
bluetooth.enable = true;
|
enable = true;
|
||||||
bluetooth.powerOnBoot = true;
|
powerOnBoot = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services.blueman.enable = true;
|
||||||
bluetooth.enable = true;
|
|
||||||
bluetooth.startWhenNeeded = true;
|
|
||||||
blueman.enable = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user