Compare commits
25 Commits
70c865fd72
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| fda312ccc3 | |||
| 71afc50ab0 | |||
| eb4532175e | |||
| 23b3801a60 | |||
| 6995ae2461 | |||
| dece224b2a | |||
| 3d913f6915 | |||
| 2be1db1075 | |||
| e6842b86f2 | |||
| dc7c56b81d | |||
| 053cbe7ee3 | |||
| a1cfce2743 | |||
| ea8df341e6 | |||
| 1f73e1ff9d | |||
| 74501adfca | |||
| 6ee7bfb78a | |||
| 5fcfd51b4a | |||
| 20e97efe95 | |||
| cc8299c5f5 | |||
| 1763871dda | |||
| 3d0484222e | |||
| bc9b620733 | |||
| f028201829 | |||
| d45c47d157 | |||
| 749ba8fc25 |
@@ -49,23 +49,48 @@ in {
|
|||||||
|
|
||||||
security.sudo = {
|
security.sudo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraRules = [{
|
extraRules = [
|
||||||
|
{
|
||||||
|
users = ["allen"];
|
||||||
|
commands = [{
|
||||||
|
command = "/run/current-system/sw/bin/systemctl reboot --force";
|
||||||
|
options = [ "NOPASSWD" ];
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
commands = [{
|
commands = [{
|
||||||
command = "${pkgs.grub2}/bin/grub-reboot";
|
command = "${pkgs.grub2}/bin/grub-reboot";
|
||||||
options = [ "NOPASSWD" ];
|
options = [ "NOPASSWD" ];
|
||||||
}];
|
}];
|
||||||
groups = [ "wheel" ];
|
groups = [ "wheel" ];
|
||||||
}];
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
security.pam.loginLimits = [
|
||||||
|
{
|
||||||
|
domain = "*";
|
||||||
|
type = "soft";
|
||||||
|
item = "nofile";
|
||||||
|
value = "32768";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
domain = "*";
|
||||||
|
type = "hard";
|
||||||
|
item = "nofile";
|
||||||
|
value = "65537";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
networking.hostName = "haskell"; # Define your hostname.
|
networking.hostName = "haskell"; # Define your hostname.
|
||||||
|
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
|
|
||||||
programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
programs.nix-ld = {
|
programs.nix-ld = {
|
||||||
enable = false;
|
enable = true;
|
||||||
libraries = [ ]; # import ./modules/ld.nix { inherit pkgs; };
|
libraries = import ./modules/ld.nix { inherit pkgs; };
|
||||||
};
|
};
|
||||||
|
|
||||||
time.timeZone = "Asia/Seoul";
|
time.timeZone = "Asia/Seoul";
|
||||||
@@ -121,7 +146,6 @@ in {
|
|||||||
gnome-tweaks
|
gnome-tweaks
|
||||||
xf86_input_wacom
|
xf86_input_wacom
|
||||||
glfw
|
glfw
|
||||||
wacomtablet
|
|
||||||
libimobiledevice
|
libimobiledevice
|
||||||
ifuse
|
ifuse
|
||||||
git
|
git
|
||||||
@@ -133,6 +157,7 @@ in {
|
|||||||
openal
|
openal
|
||||||
myRizin
|
myRizin
|
||||||
libgit2
|
libgit2
|
||||||
|
ntfs3g
|
||||||
inputs.helix.packages."${pkgs.system}".helix
|
inputs.helix.packages."${pkgs.system}".helix
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -154,3 +179,5 @@ in {
|
|||||||
system.stateVersion = "25.05"; # Did you read the comment?
|
system.stateVersion = "25.05"; # Did you read the comment?
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
16
flake.lock
generated
16
flake.lock
generated
@@ -98,16 +98,16 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1748665073,
|
"lastModified": 1767780135,
|
||||||
"narHash": "sha256-RMhjnPKWtCoIIHiuR9QKD7xfsKb3agxzMfJY8V9MOew=",
|
"narHash": "sha256-5SbmsLMgxzPd9YMbFR4IHfOXv6bjWs+dfl6IbSq3r7s=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "282e1e029cb6ab4811114fc85110613d72771dea",
|
"rev": "c08430923ed417abc653884328a39e98496cfd0f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"ref": "release-25.05",
|
"ref": "release-25.11",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@@ -471,16 +471,16 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1748889542,
|
"lastModified": 1767634882,
|
||||||
"narHash": "sha256-Hb4iMhIbjX45GcrgOp3b8xnyli+ysRPqAgZ/LZgyT5k=",
|
"narHash": "sha256-2GffSfQxe3sedHzK+sTKlYo/NTIAGzbFCIsNMUPAAnk=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "10d7f8d34e5eb9c0f9a0485186c1ca691d2c5922",
|
"rev": "3c9db02515ef1d9b6b709fc60ba9a540957f661c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"ref": "nixos-25.05",
|
"ref": "nixos-25.11",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
description = "A simple NixOS flake";
|
description = "A simple NixOS flake";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
||||||
helix.url = "github:helix-editor/helix/master";
|
helix.url = "github:helix-editor/helix/master";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-25.05";
|
url = "github:nix-community/home-manager/release-25.11";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -54,10 +54,16 @@
|
|||||||
options = [ "fmask=0022" "dmask=0022" ];
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/mnt/hdd1" = {
|
# fileSystems."/mnt/hdd1" = {
|
||||||
device = "/dev/disk/by-uuid/EC40940C4093DC20";
|
# device = "/dev/disk/by-uuid/EC40940C4093DC20";
|
||||||
fsType = "ntfs-3g";
|
# fsType = "ntfs-3g";
|
||||||
options = [ "rw" "uid=1000" "umask=0022" "noauto" ];
|
# options = [ "rw" "uid=1000" "umask=0022" "noauto" ];
|
||||||
|
# };
|
||||||
|
|
||||||
|
fileSystems."/mnt/ssd1" = {
|
||||||
|
device = "/dev/disk/by-uuid/4e1710bb-2cc9-41c3-909c-34f24bd1f63e";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "defaults" "ssd" "noatime" "noauto" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ with pkgs; [
|
|||||||
zlib.dev
|
zlib.dev
|
||||||
gdk-pixbuf
|
gdk-pixbuf
|
||||||
glib
|
glib
|
||||||
|
#glibc
|
||||||
gtk3
|
gtk3
|
||||||
icu
|
icu
|
||||||
wayland
|
wayland
|
||||||
@@ -64,5 +65,5 @@ with pkgs; [
|
|||||||
pkg-config
|
pkg-config
|
||||||
haskellPackages.zlib
|
haskellPackages.zlib
|
||||||
stdenv.cc.cc
|
stdenv.cc.cc
|
||||||
clang
|
imagemagick
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -4,14 +4,14 @@
|
|||||||
|
|
||||||
with pkgs; [
|
with pkgs; [
|
||||||
radare2
|
radare2
|
||||||
(python3.withPackages (python-pkgs: with python-pkgs; [ jupyter-client ]))
|
# (python3.withPackages (python-pkgs: with python-pkgs; [ jupyter-client ]))
|
||||||
# gdb
|
# gdb
|
||||||
zap
|
zap
|
||||||
lldb
|
lldb
|
||||||
clang-tools
|
clang-tools
|
||||||
tokio-console
|
tokio-console
|
||||||
deno
|
deno
|
||||||
iaito
|
#iaito
|
||||||
clang
|
clang
|
||||||
valgrind
|
valgrind
|
||||||
ghidra-bin
|
ghidra-bin
|
||||||
@@ -19,16 +19,15 @@ with pkgs; [
|
|||||||
buf
|
buf
|
||||||
uv
|
uv
|
||||||
unityhub
|
unityhub
|
||||||
python313Packages.r2pipe
|
|
||||||
python312Packages.r2pipe
|
|
||||||
gh
|
gh
|
||||||
platformio
|
platformio
|
||||||
python312Packages.pip
|
python313Packages.r2pipe
|
||||||
|
(python313.withPackages(ps: with ps; [ jupyter-client pynvim wand ipykernel ]))
|
||||||
|
python313Packages.pip
|
||||||
nodejs
|
nodejs
|
||||||
go
|
go
|
||||||
ninja
|
ninja
|
||||||
binwalk
|
binwalk
|
||||||
dotnet-sdk_9
|
|
||||||
csharp-ls
|
csharp-ls
|
||||||
cmake
|
cmake
|
||||||
gnumake
|
gnumake
|
||||||
@@ -58,4 +57,7 @@ with pkgs; [
|
|||||||
bpf-linker
|
bpf-linker
|
||||||
zlib.dev
|
zlib.dev
|
||||||
conan
|
conan
|
||||||
|
lld
|
||||||
|
libllvm
|
||||||
|
bun
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ with pkgs; [
|
|||||||
waypaper
|
waypaper
|
||||||
swww
|
swww
|
||||||
sdrpp
|
sdrpp
|
||||||
rofi-wayland
|
rofi
|
||||||
hyprshot
|
hyprshot
|
||||||
vesktop
|
vesktop
|
||||||
discordo
|
discordo
|
||||||
@@ -43,14 +43,20 @@ with pkgs; [
|
|||||||
blender
|
blender
|
||||||
jetbrains.idea-ultimate
|
jetbrains.idea-ultimate
|
||||||
krita
|
krita
|
||||||
barrier
|
deskflow
|
||||||
obsidian
|
obsidian
|
||||||
audacity
|
audacity
|
||||||
bitwarden
|
bitwarden-desktop
|
||||||
texlive.combined.scheme-full
|
texlive.combined.scheme-full
|
||||||
hugo
|
hugo
|
||||||
glow
|
glow
|
||||||
blockbench
|
blockbench
|
||||||
xmonad-with-packages
|
xmonad-with-packages
|
||||||
pureref
|
pureref
|
||||||
|
freerdp
|
||||||
|
vscode
|
||||||
|
zellij
|
||||||
|
antigravity
|
||||||
|
google-chrome
|
||||||
|
stm32cubemx
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ with pkgs; [
|
|||||||
# utils
|
# utils
|
||||||
xclip
|
xclip
|
||||||
openssl
|
openssl
|
||||||
ffmpeg
|
ffmpeg-full
|
||||||
reptyr
|
reptyr
|
||||||
cloc
|
cloc
|
||||||
protocol
|
protocol
|
||||||
@@ -84,4 +84,10 @@ with pkgs; [
|
|||||||
partclone
|
partclone
|
||||||
ncdu
|
ncdu
|
||||||
dua
|
dua
|
||||||
|
pv
|
||||||
|
squashfsTools
|
||||||
|
kubernetes-helm
|
||||||
|
argocd
|
||||||
|
jadx
|
||||||
|
probe-rs-tools
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
{ config, pkgs, ... }: {
|
{ config, pkgs, ... }: {
|
||||||
systemd.services.auto-shutdown = {
|
# systemd.services.auto-shutdown = {
|
||||||
description = "Automatic daily shutdown at 9:30 pm";
|
# description = "Automatic daily shutdown at 9:30 pm";
|
||||||
serviceConfig = {
|
# serviceConfig = {
|
||||||
Type = "oneshot";
|
# Type = "oneshot";
|
||||||
ExecStart = [ "${pkgs.systemd}/bin/systemctl poweroff" ];
|
# ExecStart = [ "${pkgs.systemd}/bin/systemctl poweroff" ];
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
|
|
||||||
systemd.timers.auto-shutdown = {
|
# systemd.timers.auto-shutdown = {
|
||||||
description = "Timer for daily shutdown at 9:30 pm";
|
# description = "Timer for daily shutdown at 9:30 pm";
|
||||||
wantedBy = [ "timers.target" ];
|
# wantedBy = [ "timers.target" ];
|
||||||
timerConfig = {
|
# timerConfig = {
|
||||||
OnCalendar = "21:40";
|
# OnCalendar = "21:40";
|
||||||
Persistent = true;
|
# Persistent = true;
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,4 +14,5 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
programs.virt-manager.enable = true;
|
programs.virt-manager.enable = true;
|
||||||
|
virtualisation.virtualbox.host.enable = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ def add-line-count [row] {
|
|||||||
$env.KUBECONFIG = ("/home/allen/.kube/config")
|
$env.KUBECONFIG = ("/home/allen/.kube/config")
|
||||||
$env.PATH = ($env.PATH | append "/home/allen/.local/share/pnpm")
|
$env.PATH = ($env.PATH | append "/home/allen/.local/share/pnpm")
|
||||||
$env.PATH = ($env.PATH | append "/home/allen/.local/bin")
|
$env.PATH = ($env.PATH | append "/home/allen/.local/bin")
|
||||||
|
$env.PATH = ($env.PATH | append "/home/allen/.cargo/bin")
|
||||||
|
|
||||||
alias c = clear
|
alias c = clear
|
||||||
alias rb = sudo nixos-rebuild switch --flake ~/nixos-config#
|
alias rb = sudo nixos-rebuild switch --flake ~/nixos-config#
|
||||||
@@ -16,5 +17,13 @@ alias clc = cloc . --exclude-dir=target,node_modules,.venv --exclude-ext=yml,yam
|
|||||||
alias lg = lazygit
|
alias lg = lazygit
|
||||||
alias zxcv = shutdown now
|
alias zxcv = shutdown now
|
||||||
alias qwer = reboot
|
alias qwer = reboot
|
||||||
|
alias ssd = cd /mnt/ssd1
|
||||||
|
|
||||||
|
alias woman = man
|
||||||
|
|
||||||
|
alias boy = man
|
||||||
|
alias male = man
|
||||||
|
alias girl = woman
|
||||||
|
alias female = woman
|
||||||
|
|
||||||
source ~/.config/nushell/nu/kube.nu
|
source ~/.config/nushell/nu/kube.nu
|
||||||
|
|||||||
@@ -86,3 +86,9 @@ alias kgsvc = kubectl get service
|
|||||||
alias kexec = kubectl exec -it
|
alias kexec = kubectl exec -it
|
||||||
alias kl = kubectl logs
|
alias kl = kubectl logs
|
||||||
alias kpf = kubectl port-forward
|
alias kpf = kubectl port-forward
|
||||||
|
alias kcfg = kubectl config
|
||||||
|
alias kd = kubectl describe
|
||||||
|
alias kdel = kubectl delete
|
||||||
|
alias ke = kubectl edit
|
||||||
|
alias kg = kubectl get
|
||||||
|
alias k = kubectl
|
||||||
|
|||||||
Reference in New Issue
Block a user