Initial commit
Some checks failed
CI / check (push) Has been cancelled
CI / ida (push) Has been cancelled
CI / cpt (push) Has been cancelled
CI / build-nixos (ena) (push) Has been cancelled
CI / build-nixos (hako) (push) Has been cancelled
CI / build-nixos (kazusa) (push) Has been cancelled
CI / build-nixos (mizuki) (push) Has been cancelled

This commit is contained in:
암냥 2026-07-03 16:53:49 +09:00
commit 70284509f3
No known key found for this signature in database
144 changed files with 7061 additions and 0 deletions

View file

@ -0,0 +1,9 @@
{ ... }:
{
imports = [
./nix.nix
./user.nix
./i18n.nix
./packages.nix
];
}

View file

@ -0,0 +1,62 @@
{ pkgs, ... }:
{
# 시간대 설정
time.timeZone = "Asia/Seoul";
# 로케일 설정 (영어 기본 + 한국 로케일)
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
};
i18n.inputMethod = {
enable = true;
type = "fcitx5";
fcitx5 = {
settings.globalOptions = {
"Hotkey/TriggerKeys" = {
"0" = "Hangul";
};
"Hotkey/ActivateKeys" = {
"0" = "Hangul_Hanja";
};
"Hotkey/DeactivateKeys" = {
"0" = "Hangul_Romaja";
};
"Hotkey/EnumerateGroupForwardKeys" = {
"0" = "Super+space";
};
"Hotkey/PrevPage" = {
"0" = "Up";
};
"Hotkey/NextPage" = {
"0" = "Down";
};
"Hotkey" = {
"AltTriggerKeys" = "";
"EnumerateForwardKeys" = "";
"EnumerateBackwardKeys" = "";
};
};
};
fcitx5.addons = with pkgs; [
fcitx5-hangul
];
};
environment.sessionVariables = {
GTK_IM_MODULE = "fcitx";
QT_IM_MODULE = "fcitx";
XMODIFIERS = "@im=fcitx";
};
}

View file

@ -0,0 +1,46 @@
{ overlays, ... }:
{
# Apply overlays
nixpkgs.overlays = overlays;
nixpkgs.config.allowUnfree = true;
# Nix 설정
nix.settings = {
sandbox = false;
experimental-features = [
"nix-command"
"flakes"
];
auto-optimise-store = true;
};
nix.settings.trusted-users = [
"root"
"imnyang"
];
nix.settings = {
substituters = [
"https://cache.mizuki.guru/public"
"https://cache.mizuki.guru/imnyang"
"https://nix.mizuki.my/public"
"https://vicinae.cachix.org"
];
trusted-public-keys = [
"public:IgipakDD/clr0XbuaIejPYMT5UkTVGKVTxtWXcsbiAg="
"imnyang:x8Oex2DLzZUBxS/3VvkVptT3DiugjsCbQ23VjsxMT5c="
"public:SnHrtrxbCPcZujbJdgsKFeObTfRKQl5KhrI+LljtZUE="
"vicinae.cachix.org-1:1kDrfienkGHPYbkpNj1mWTr7Fm1+zcenzgTizIcI3oc="
];
};
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
nixpkgs.config.permittedInsecurePackages = [
"openssl-1.1.1w"
];
}

View file

@ -0,0 +1,31 @@
{ pkgs, ... }:
{
programs.nix-ld.enable = true;
programs.nix-ld.libraries = with pkgs; [
glib
stdenv.cc.cc
zlib
];
# Unfree 패키지 허용
nixpkgs.config.allowUnfree = true;
programs.direnv.enable = true;
# 기본 시스템 패키지
environment.systemPackages = with pkgs; [
eza
btop
vim
wget
curl
git
tree
unzip
zip
file
attic-client
direnv
devenv
];
}

View file

@ -0,0 +1,34 @@
{ pkgs, inputs, ... }:
{
users.users.imnyang = {
isNormalUser = true;
linger = true;
description = "@imnya.ng";
extraGroups = [
"imnyang"
"networkmanager"
"wheel"
"docker"
"libvirtd"
"podman"
];
shell = pkgs.fish;
};
security.sudo.extraRules = [
{
users = [ "imnyang" ];
commands = [
{
command = "ALL";
options = [ "NOPASSWD" ];
}
];
}
];
system.activationScripts.createIcon = "ln -sfn ${inputs.self}/assets/avatar.webp /var/lib/AccountsService/icons/imnyang";
programs.fish.enable = true;
}