wow
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 00:45:07 +09:00
commit bbac123a8d
144 changed files with 7059 additions and 0 deletions

View file

@ -0,0 +1,64 @@
{ pkgs, inputs, ... }:
{
imports = [
./hardware-configuration.nix
"${inputs.self}/modules/nixos/base"
"${inputs.self}/modules/nixos/features/boot.nix"
"${inputs.self}/modules/nixos/features/fonts.nix"
"${inputs.self}/modules/nixos/features/packages.nix"
"${inputs.self}/modules/nixos/features/plasma.nix"
"${inputs.self}/modules/nixos/features/sound.nix"
"${inputs.self}/modules/nixos/features/catppuccin.nix"
"${inputs.self}/modules/nixos/features/ssh.nix"
"${inputs.self}/modules/nixos/features/steam.nix"
"${inputs.self}/modules/nixos/features/sunshine.nix"
];
networking = {
hostName = "mafuyu";
networkmanager.enable = true;
firewall.enable = false;
};
services.caddy = {
enable = true;
virtualHosts."http://broadcast.epc.mizuki.arpa".extraConfig = ''
@preflight method OPTIONS
header {
Access-Control-Allow-Origin *
Access-Control-Allow-Methods "GET, POST, PUT, PATCH, DELETE, OPTIONS"
Access-Control-Allow-Headers *
}
respond @preflight "" 204
reverse_proxy 127.0.0.1:6769
'';
virtualHosts."http://broadcast.epc.mizuki.arpa:8027".extraConfig = ''
@preflight method OPTIONS
header {
Access-Control-Allow-Origin *
Access-Control-Allow-Methods "GET, POST, PUT, PATCH, DELETE, OPTIONS"
Access-Control-Allow-Headers *
}
respond @preflight "" 204
reverse_proxy 127.0.0.1:1108
'';
};
services.displayManager = {
plasma-login-manager.enable = true;
autoLogin.user = "imnyang";
};
users.users.imnyang.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOHP3Z+AYrRh9f8TYyqChKfeyNm3lOe0F75AwRHTTaxD imnyang@mizuki"
];
system.stateVersion = "26.05";
}

View file

@ -0,0 +1,37 @@
{
inputs,
overlays,
}:
let
inherit (inputs)
nixpkgs
home-manager
catppuccin
plasma-manager
spicetify-nix
;
in
nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hardware-configuration.nix
./configuration.nix
catppuccin.nixosModules.catppuccin
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "backup";
home-manager.sharedModules = [
plasma-manager.homeModules.plasma-manager
spicetify-nix.homeManagerModules.default
];
home-manager.extraSpecialArgs = { inherit inputs; };
home-manager.users.imnyang = import ./home;
}
];
specialArgs = {
inherit inputs;
inherit overlays;
};
}

View file

@ -0,0 +1,79 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"usb_storage"
"usbhid"
"uas"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
boot.kernelParams = [
# 가상 디스플레이(해상도) 1개 생성
"video=virtual:1920x1080@60"
];
fileSystems."/" = {
device = "/dev/disk/by-uuid/223889e0-caa4-4dc5-a7b3-e5260230896f";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/7233-6B3C";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = true;
powerManagement.finegrained = false; # 이슈 있으면 비활하기
open = false;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
services.xserver.videoDrivers = [ "nvidia" ];
hardware.graphics = {
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
libva-vdpau-driver
libvdpau-va-gl
vulkan-loader
nvidia-vaapi-driver
vulkan-validation-layers
vulkan-extension-layer
];
extraPackages32 = with pkgs.pkgsi686Linux; [
libva-vdpau-driver
libvdpau-va-gl
];
};
}

View file

@ -0,0 +1,16 @@
{ inputs, ... }:
let
assets = "${inputs.self}/assets";
in
{
imports = [ "${inputs.self}/modules/home/plasma.nix" ];
services.kdeconnect.enable = true;
programs.plasma.workspace.cursor = {
theme = "pjsk-cursor-n25-mafuyu-ani";
};
programs.plasma.workspace.wallpaper = "${assets}/wallpaper/wallpaper3.png";
programs.plasma.kscreenlocker.appearance.wallpaper = "${assets}/wallpaper/wallpaper3.png";
}

View file

@ -0,0 +1,54 @@
{
programs.fish = {
enable = true;
shellAliases = {
".." = "cd ..";
"..." = "cd ../..";
ls = "eza --icons=always";
ll = "eza --icons=always -l";
la = "eza --icons=always -a";
lla = "eza --icons=always -la";
rebuild = "nr";
update = "nix flake update";
clean = "sudo nix-collect-garbage -d";
};
interactiveShellInit = ''
set -g fish_greeting ""
set -g fish_color_command blue
set -g fish_color_error red
set -g fish_color_param cyan
'';
};
programs.starship = {
enable = true;
settings = {
format = " $directory:$character";
add_newline = false;
# username = {
# style_user = "purple";
# style_root = "purple";
# format = "[$user]($style)";
# show_always = true;
# };
# hostname = {
# style = "green";
# format = "[$hostname]($style)";
# ssh_only = false;
# };
directory = {
style = "fg:#fbb6c4";
format = "[$path]($style)";
truncation_length = 3;
};
character = {
success_symbol = " 💕";
error_symbol = " ";
};
};
};
}

View file

@ -0,0 +1,44 @@
{
config,
pkgs,
inputs,
...
}:
{
xdg.enable = true;
home.stateVersion = "25.05";
home.username = "imnyang";
home.homeDirectory = "/home/imnyang";
home.packages = import ./packages.nix { inherit pkgs inputs; };
home.sessionVariables = {
EDITOR = "nvim";
VISUAL = "nvim";
};
xdg.configFile."fontconfig/conf.d/10-hm-fonts.conf".force = true;
programs.git = {
enable = true;
settings = {
user = {
name = "imnyang";
email = "imnyang@pm.me";
};
commit.gpgsign = false;
init.defaultBranch = "main";
pull.rebase = false;
};
};
imports = [
"${inputs.self}/modules/home/firefox.nix"
"${inputs.self}/modules/home/neovim.nix"
"${inputs.self}/modules/home/ghostty.nix"
"${inputs.self}/modules/home/zed.nix"
"${inputs.self}/modules/home/discord/linux.nix"
./config/shell.nix
./config/plasma.nix
];
}

View file

@ -0,0 +1,7 @@
{ pkgs, inputs }:
with pkgs;
[
pjsk-cursor.n25.ani
codex
inputs.codex-app.packages.${stdenv.buildPlatform.system}.codex-desktop
]