Compare commits
4 commits
9e3a4341f7
...
9b1e86cde4
Author | SHA1 | Date | |
---|---|---|---|
Tigor Hutasuhut | 9b1e86cde4 | ||
Tigor Hutasuhut | a7a039c7a4 | ||
Tigor Hutasuhut | 691e8e9ec8 | ||
Tigor Hutasuhut | 129e3dac84 |
74
flake.lock
74
flake.lock
|
@ -20,11 +20,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1723405438,
|
||||
"narHash": "sha256-bpmC2m7OhlDvqgQZdZ2jBLyeIkq/Jld3X4bqRAxBSp8=",
|
||||
"lastModified": 1724006173,
|
||||
"narHash": "sha256-1ROh0buuxiMyc6eIb3CIbJsmYO7PhLqSYs55mOx1XTk=",
|
||||
"owner": "hyprwm",
|
||||
"repo": "aquamarine",
|
||||
"rev": "9312aa28271c91e5d67ecb9def527b2bbcff0e66",
|
||||
"rev": "7f8df01d4297b9068a9592400f16044602844f86",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -121,11 +121,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1723202784,
|
||||
"narHash": "sha256-qbhjc/NEGaDbyy0ucycubq4N3//gDFFH3DOmp1D3u1Q=",
|
||||
"lastModified": 1723803910,
|
||||
"narHash": "sha256-yezvUuFiEnCFbGuwj/bQcqg7RykIEqudOy/RBrId0pc=",
|
||||
"owner": "cachix",
|
||||
"repo": "git-hooks.nix",
|
||||
"rev": "c7012d0c18567c889b948781bc74a501e92275d1",
|
||||
"rev": "bfef0ada09e2c8ac55bbcd0831bd0c9d42e651ba",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -240,11 +240,11 @@
|
|||
"xdph": "xdph"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1723579231,
|
||||
"narHash": "sha256-PL9C3aOetj+TS+vXvNhh7q5bm3g70oakg+iSu5eQBUQ=",
|
||||
"lastModified": 1724016119,
|
||||
"narHash": "sha256-ricYM9Ethzai2l2qCK6Bkgfg53FtzWuzaVIDzZ7Ve1Y=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "3b4aabe04c7756fb0a70d78b6f0e701228f46345",
|
||||
"revCount": 5087,
|
||||
"rev": "83d88fa56467a2b749fb2320e1595281107bd326",
|
||||
"revCount": 5111,
|
||||
"submodules": true,
|
||||
"type": "git",
|
||||
"url": "https://github.com/hyprwm/Hyprland"
|
||||
|
@ -391,11 +391,11 @@
|
|||
"nixpkgs": "nixpkgs_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1723528508,
|
||||
"narHash": "sha256-4++qlOlqMoZz3h/g48f+TY3r75h+EBToRNmgcVWKpsE=",
|
||||
"lastModified": 1724045683,
|
||||
"narHash": "sha256-M3MsdxGFrAQr4s7WNnp+D0xKQl3+k6Sse5ulrShjL+8=",
|
||||
"owner": "nix-community",
|
||||
"repo": "neovim-nightly-overlay",
|
||||
"rev": "f019c7b0e7f478e4aaf2b406785a8d6ec6d1957d",
|
||||
"rev": "61106a5385b3c1bd7e1ae9dca538f103a357bbf0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -407,11 +407,11 @@
|
|||
"neovim-src": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1723504195,
|
||||
"narHash": "sha256-Tt+UtP3iSQATu2CUgFgtPkobASE7Rbf2AWZeLH8fthU=",
|
||||
"lastModified": 1723951683,
|
||||
"narHash": "sha256-qgVJ4nhOLaPtK4qTFoAcOARcO/pewCm2ZkXgVzyrFhg=",
|
||||
"owner": "neovim",
|
||||
"repo": "neovim",
|
||||
"rev": "9768e88f3891b5594eb2d556bd3bdf40c61d46e1",
|
||||
"rev": "33464189bc02b2555e26dc4e9f7b3fbbcdd02490",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -427,11 +427,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1723352546,
|
||||
"narHash": "sha256-WTIrvp0yV8ODd6lxAq4F7EbrPQv0gscBnyfn559c3k8=",
|
||||
"lastModified": 1723950649,
|
||||
"narHash": "sha256-dHMkGjwwCGj0c2MKyCjRXVBXq2Sz3TWbbM23AS7/5Hc=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nix-index-database",
|
||||
"rev": "ec78079a904d7d55e81a0468d764d0fffb50ac06",
|
||||
"rev": "392828aafbed62a6ea6ccab13728df2e67481805",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -442,11 +442,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1723175592,
|
||||
"narHash": "sha256-M0xJ3FbDUc4fRZ84dPGx5VvgFsOzds77KiBMW/mMTnI=",
|
||||
"lastModified": 1723637854,
|
||||
"narHash": "sha256-med8+5DSWa2UnOqtdICndjDAEjxr5D7zaIiK4pn0Q7c=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "5e0ca22929f3342b19569b21b2f3462f053e497b",
|
||||
"rev": "c3aa7b8938b17aebd2deecf7be0636000d62a2b9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -474,11 +474,11 @@
|
|||
},
|
||||
"nixpkgs-unstable": {
|
||||
"locked": {
|
||||
"lastModified": 1723362943,
|
||||
"narHash": "sha256-dFZRVSgmJkyM0bkPpaYRtG/kRMRTorUIDj8BxoOt1T4=",
|
||||
"lastModified": 1723637854,
|
||||
"narHash": "sha256-med8+5DSWa2UnOqtdICndjDAEjxr5D7zaIiK4pn0Q7c=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "a58bc8ad779655e790115244571758e8de055e3d",
|
||||
"rev": "c3aa7b8938b17aebd2deecf7be0636000d62a2b9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -489,11 +489,11 @@
|
|||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1723221148,
|
||||
"narHash": "sha256-7pjpeQlZUNQ4eeVntytU3jkw9dFK3k1Htgk2iuXjaD8=",
|
||||
"lastModified": 1723891200,
|
||||
"narHash": "sha256-uljX21+D/DZgb9uEFFG2dkkQbPZN+ig4Z6+UCLWFVAk=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "154bcb95ad51bc257c2ce4043a725de6ca700ef6",
|
||||
"rev": "a0d6390cb3e82062a35d0288979c45756e481f60",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -505,11 +505,11 @@
|
|||
},
|
||||
"nixpkgs_3": {
|
||||
"locked": {
|
||||
"lastModified": 1723556749,
|
||||
"narHash": "sha256-+CHVZnTnIYRLYsARInHYoWkujzcRkLY/gXm3s5bE52o=",
|
||||
"lastModified": 1723938990,
|
||||
"narHash": "sha256-9tUadhnZQbWIiYVXH8ncfGXGvkNq3Hag4RCBEMUk7MI=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "4a92571f9207810b559c9eac203d1f4d79830073",
|
||||
"rev": "c42fcfbdfeae23e68fc520f9182dde9f38ad1890",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -520,11 +520,11 @@
|
|||
},
|
||||
"nur": {
|
||||
"locked": {
|
||||
"lastModified": 1723588302,
|
||||
"narHash": "sha256-W6DOAEA8rh6ucmbtaY3+6LJYjcRo8lNPd0QWV6c97W4=",
|
||||
"lastModified": 1724046783,
|
||||
"narHash": "sha256-UE+12mlSsxd29XakXp4vBLyxS3RNADLXlXRB/vojSgk=",
|
||||
"owner": "nix-community",
|
||||
"repo": "NUR",
|
||||
"rev": "c780827a7878d1b490a589fc289fd6de7b5d84b3",
|
||||
"rev": "5baef6275414307bd481520770428dfd96bea485",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -554,11 +554,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1723515680,
|
||||
"narHash": "sha256-nHdKymsHCVIh0Wdm4MvSgxcTTg34FJIYHRQkQYaSuvk=",
|
||||
"lastModified": 1724034091,
|
||||
"narHash": "sha256-b1g7w0sw+MDAhUAeCoX1vlTghsqcDZkxr+k9OZmxPa8=",
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"rev": "4ee3d9e9569f70d7bb40f28804d6fe950c81eab3",
|
||||
"rev": "c7d36e0947826e0751a5214ffe82533fbc909bc0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -58,6 +58,23 @@
|
|||
];
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts."public.tigor.web.id".extraConfig = /*caddy*/ ''
|
||||
file_server browse
|
||||
root * /nas/public
|
||||
'';
|
||||
|
||||
systemd.tmpfiles.settings = {
|
||||
"100-nas-public-dir" = {
|
||||
"/nas/public" = {
|
||||
d = {
|
||||
group = config.profile.user.name;
|
||||
mode = "0777";
|
||||
user = config.profile.user.name;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
hardware.opengl = {
|
||||
|
|
|
@ -7,6 +7,7 @@ in
|
|||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
prismlauncher
|
||||
antimicrox
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -38,6 +38,7 @@ in
|
|||
reddit-enhancement-suite
|
||||
vimium-c
|
||||
violentmonkey
|
||||
sidebery
|
||||
];
|
||||
settings = {
|
||||
"extensions.autoDisableScopes" = 0;
|
||||
|
|
|
@ -79,6 +79,16 @@ in
|
|||
dockerfile-language-server-nodejs
|
||||
hadolint
|
||||
|
||||
# For Peek markdown viewer
|
||||
deno
|
||||
|
||||
# Golang debuggers
|
||||
delve
|
||||
gdlv
|
||||
|
||||
luajitPackages.tiktoken_core # For copilot chat
|
||||
luajitPackages.luarocks
|
||||
lua51Packages.lua
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
name = "minecraft";
|
||||
podman = config.profile.podman;
|
||||
|
@ -46,29 +46,37 @@ in
|
|||
EOF 200
|
||||
'';
|
||||
|
||||
system.activationScripts."podman-${name}" = ''
|
||||
mkdir -p ${rootVolume}
|
||||
chown ${uid}:${gid} ${rootVolume}
|
||||
'';
|
||||
systemd =
|
||||
let serviceName = "podman-${name}"; in
|
||||
{
|
||||
tmpfiles.settings."${serviceName}-mount".${rootVolume}.d = {
|
||||
group = config.profile.user.name;
|
||||
mode = "0755";
|
||||
user = config.profile.user.name;
|
||||
};
|
||||
|
||||
services."${serviceName}-autorestart" = {
|
||||
description = "Podman container ${name} autorestart";
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${pkgs.podman}/bin/podman restart podman-${name}";
|
||||
};
|
||||
};
|
||||
|
||||
timers."${serviceName}-autorestart" = {
|
||||
description = "Podman container ${name} autorestart";
|
||||
timerConfig = {
|
||||
OnCalendar = "*-*-* 04:00:00";
|
||||
};
|
||||
wantedBy = [ "timers.target" ];
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.oci-containers.containers.${name} = {
|
||||
inherit image;
|
||||
hostname = name;
|
||||
autoStart = true;
|
||||
user = "${uid}:${gid}";
|
||||
environment = {
|
||||
# UID = uid;
|
||||
# GID = gid;
|
||||
# EULA = "TRUE";
|
||||
# TZ = "Asia/Jakarta";
|
||||
# SERVER_NAME = "Hutasuhut";
|
||||
# DEFAULT_PLAYER_PERMISSION_LEVEL = "operator";
|
||||
# LEVEL_NAME = "Hutasuhut";
|
||||
# MAX_THREADS = "0"; # Use as many as possible
|
||||
# ALLOW_LIST_USERS = strings.concatStringsSep "," (
|
||||
# map (user: "${user.username}:${user.xuid}") users
|
||||
# );
|
||||
};
|
||||
ports = [
|
||||
# Java Edition Ports
|
||||
"25565:25565/udp"
|
||||
|
|
Loading…
Reference in a new issue