Compare commits

...

4 Commits

Author SHA1 Message Date
79adc3dfe5 change podman storage dir 2026-07-27 20:25:45 +09:00
b0032e8c9b add things 2026-07-22 09:43:44 +09:00
b7e82d92c9 fix things 2026-06-27 14:22:32 +09:00
ca06b70683 add kicad 2026-05-18 13:09:40 +09:00
17 changed files with 135 additions and 46 deletions

View File

@@ -34,6 +34,8 @@ in
"qtwebkit-5.212.0-alpha4" "qtwebkit-5.212.0-alpha4"
]; ];
services.tailscale.enable = true;
services.nfs.server = { services.nfs.server = {
enable = true; enable = true;
exports = '' exports = ''
@@ -41,6 +43,9 @@ in
''; '';
}; };
services.rpcbind.enable = true;
boot.supportedFilesystems = [ "nfs" ];
services.dbus.packages = with pkgs; [ services.dbus.packages = with pkgs; [
gsettings-desktop-schemas gsettings-desktop-schemas
]; ];
@@ -53,7 +58,11 @@ in
} }
]; ];
services.netbird.enable = true; networking.hosts = {
#"192.168.1.165" = [ "walruslab.org" ];
};
services.netbird.enable = false;
# Enable NAT so the container can reach the Debian repos # Enable NAT so the container can reach the Debian repos
networking.nat = { networking.nat = {
@@ -64,7 +73,7 @@ in
services.resolved = { services.resolved = {
enable = true; enable = true;
dnssec = "false"; settings.Resolve.DNSSEC = "false";
}; };
networking.nameservers = [ networking.nameservers = [
"1.1.1.1" "1.1.1.1"
@@ -184,6 +193,7 @@ in
isNormalUser = true; isNormalUser = true;
extraGroups = [ extraGroups = [
"wheel" "wheel"
"input"
"incus-admin" "incus-admin"
"wireshark" "wireshark"
"podman" "podman"
@@ -207,10 +217,12 @@ in
programs.dconf.enable = true; programs.dconf.enable = true;
programs.kdeconnect.enable = true;
# List packages installed in system profile. # List packages installed in system profile.
# You can use https://search.nixos.org/ to find more packages (and options). # You can use https://search.nixos.org/ to find more packages (and options).
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
openmodelica #openmodelica
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
pkg-config pkg-config
wget wget

26
flake.lock generated
View File

@@ -77,11 +77,11 @@
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {
"lastModified": 1748906842, "lastModified": 1778551011,
"narHash": "sha256-KWpXXXciUDJp2DitQWT8MNzhECBuHA2SRPz51t0bZG0=", "narHash": "sha256-woJV7tJwwzjR0xWDNuGpwMENe/OEMAdSGg+nqWs9tUE=",
"owner": "helix-editor", "owner": "helix-editor",
"repo": "helix", "repo": "helix",
"rev": "1ea9050a5e12a1bc3eeb4b81022f427688c5ffa9", "rev": "8c41b11607924f7584b77c8a6e6b16439a2f559f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -448,11 +448,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1740560979, "lastModified": 1775036866,
"narHash": "sha256-Vr3Qi346M+8CjedtbyUevIGDZW8LcA1fTG0ugPY/Hic=", "narHash": "sha256-ZojAnPuCdy657PbTq5V0Y+AHKhZAIwSIT2cb8UgAz/U=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5135c59491985879812717f4c9fea69604e7f26f", "rev": "6201e203d09599479a3b3450ed24fa81537ebc4e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -480,16 +480,16 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1767634882, "lastModified": 1778869304,
"narHash": "sha256-2GffSfQxe3sedHzK+sTKlYo/NTIAGzbFCIsNMUPAAnk=", "narHash": "sha256-30sZNZoA1cqF5JNO9fVX+wgiQYjB7HJqqJ4ztCDeBZE=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3c9db02515ef1d9b6b709fc60ba9a540957f661c", "rev": "d233902339c02a9c334e7e593de68855ad26c4cb",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "nixos-25.11", "ref": "nixos-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@@ -534,11 +534,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1740623427, "lastModified": 1775358767,
"narHash": "sha256-3SdPQrZoa4odlScFDUHd4CUPQ/R1gtH4Mq9u8CBiK8M=", "narHash": "sha256-f2eC+WIfhjevCPQILuV08i/kmKZzYZpUvkom/33VxCA=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "d342e8b5fd88421ff982f383c853f0fc78a847ab", "rev": "20fd44bc663daa53a2575e01293e24e681d62244",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -2,7 +2,7 @@
description = "A simple NixOS flake"; description = "A simple NixOS flake";
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
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.11"; url = "github:nix-community/home-manager/release-25.11";

View File

@@ -52,7 +52,8 @@
"hid_apple.fnmode" = 2; "hid_apple.fnmode" = 2;
"net.ipv4.ip_unprivileged_port_start" = 80; "net.ipv4.ip_unprivileged_port_start" = 80;
"kernel.split_lock_mitigate" = 0; "kernel.split_lock_mitigate" = 0;
"fs.inotify.max_user_watches" = 524288; "fs.inotify.max_user_watches" = 1048576;
"fs.inotify.max_user_instances" = 512;
}; };
fileSystems."/" = { fileSystems."/" = {
@@ -119,4 +120,6 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
#hardware.nvidia-container-toolkit.enable = true;
} }

View File

@@ -37,7 +37,7 @@
games = import ./pkgs/games.nix { inherit pkgs; }; games = import ./pkgs/games.nix { inherit pkgs; };
unstable = import (builtins.fetchTarball { unstable = import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz"; url = "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
sha256 = "1ijgd8hy1ii0k0s48yhnzw09c7zdjnp1fq8wfj7jgajwmlfwy3xg"; sha256 = "1485vqhb8cwym1m75v61i10j427vazszaklkwj2wmm80k8sijjyz";
}) { system = "x86_64-linux"; }; }) { system = "x86_64-linux"; };
unstables = import ./pkgs/unstable.nix { unstables = import ./pkgs/unstable.nix {
inherit pkgs; inherit pkgs;

View File

@@ -4,7 +4,7 @@
enable = true; enable = true;
enableCompletion = true; enableCompletion = true;
initExtra = '' initExtra = ''
export PATH="$HOME/.local/bin:$PATH" export PATH="$HOME/.cargo/bin:$HOME/.local/bin:$PATH"
''; '';
}; };
} }

View File

@@ -4,12 +4,14 @@
c = "clear"; c = "clear";
rb = "sudo nixos-rebuild switch --flake ~/nixos-config#"; rb = "sudo nixos-rebuild switch --flake ~/nixos-config#";
"boot-rb" = "sudo nixos-rebuild --install-bootloader boot --flake ~/nixos-config#"; "boot-rb" = "sudo nixos-rebuild --install-bootloader boot --flake ~/nixos-config#";
clc = "cloc . --exclude-dir=target,node_modules,.venv --exclude-ext=yml,yaml,csv -v"; clc = "cloc . --vcs git -v";
"dry-rb" = "sudo nixos-rebuild dry-build --flake ~/nixos-config#"; "dry-rb" = "sudo nixos-rebuild dry-build --flake ~/nixos-config#";
devim = "NVIM_APPNAME=nvim-dev nvim"; devim = "NVIM_APPNAME=nvim-dev nvim";
win = "grub-reboot 'Windows Boot Manager (on /dev/sda2)' && reboot"; win = "grub-reboot 'Windows Boot Manager (on /dev/sda2)' && reboot";
qwer = "reboot"; qwer = "reboot";
zxcv = "shutdown now"; zxcv = "shutdown now";
lg = "lazygit"; lg = "lazygit";
}; };
} }

View File

@@ -19,6 +19,10 @@
if test -f $HOME/.config/fish/kube.fish if test -f $HOME/.config/fish/kube.fish
source $HOME/.config/fish/kube.fish source $HOME/.config/fish/kube.fish
end end
fish_add_path $HOME/.cargo/bin
fish_add_path $HOME/.local/share/pnpm/bin
fish_add_path $HOME/.npm/bin
fish_add_path /usr/bin
''; '';
} }

View File

@@ -11,6 +11,8 @@
init.defaultBranch = "main"; init.defaultBranch = "main";
core.editor = "nvim"; core.editor = "nvim";
push.autoSetupRemote = true; push.autoSetupRemote = true;
push.followTags = true;
}; };
lfs.enable = true;
}; };
} }

View File

@@ -1,6 +1,7 @@
{ pkgs }: { pkgs }:
with pkgs; [ with pkgs;
[
alsa-lib alsa-lib
libgit2 libgit2
at-spi2-atk at-spi2-atk
@@ -46,24 +47,26 @@ with pkgs; [
pipewire pipewire
systemd systemd
vulkan-loader vulkan-loader
xorg.libX11 libx11
xorg.libXScrnSaver libxscrnsaver
xorg.libXcomposite libxcomposite
xorg.libXcursor libxcursor
xorg.libXdamage libxdamage
xorg.libXext libxext
xorg.libXfixes libxfixes
xorg.libXi libxi
xorg.libXrandr libxrandr
xorg.libXrender libxrender
xorg.libXtst libxtst
xorg.libxcb libxcb
xorg.libxkbfile libxkbfile
xorg.libxshmfence libxshmfence
zlib zlib
zlib.dev zlib.dev
pkg-config pkg-config
haskellPackages.zlib haskellPackages.zlib
stdenv.cc.cc stdenv.cc.cc
imagemagick imagemagick
steam-unwrapped
] ]

View File

@@ -1,4 +1,7 @@
{ pkgs, ... }: { pkgs, ... }:
with pkgs; with pkgs;
[ flightgear ] [
flightgear
alvr
]

View File

@@ -29,9 +29,11 @@ with pkgs;
pynvim pynvim
wand wand
ipykernel ipykernel
shapely
scipy
pip
] ]
)) ))
python313Packages.pip
nodejs nodejs
go go
ninja ninja
@@ -71,4 +73,5 @@ with pkgs;
bun bun
jetbrains.rider jetbrains.rider
julia-bin julia-bin
haskellPackages.turtle
] ]

View File

@@ -8,6 +8,7 @@ with pkgs;
google-chrome google-chrome
speed-cloudflare-cli speed-cloudflare-cli
ansible ansible
ansible-lint
vagrant vagrant
gqrx gqrx
libreoffice libreoffice
@@ -23,12 +24,12 @@ with pkgs;
qbittorrent qbittorrent
gmsh gmsh
paraview paraview
xorg.xcursorgen xcursorgen
imagemagick imagemagick
icoutils icoutils
win2xcur win2xcur
waypaper waypaper
swww awww
sdrpp sdrpp
rofi rofi
hyprshot hyprshot
@@ -36,7 +37,7 @@ with pkgs;
discordo discordo
distrobox distrobox
kicad kicad
youtube-music pear-desktop
thunderbird thunderbird
yt-dlp yt-dlp
stellarium stellarium
@@ -73,4 +74,9 @@ with pkgs;
iaito iaito
orca-slicer orca-slicer
netbird-ui netbird-ui
sonic-visualiser
freecad
lmms
] ]

View File

@@ -3,4 +3,5 @@
{ pkgs, unstable, ... }: { pkgs, unstable, ... }:
with pkgs; with pkgs;
[ ] [
]

View File

@@ -4,7 +4,7 @@
with pkgs; with pkgs;
[ [
neofetch fastfetch
nnn # terminal file manager nnn # terminal file manager
nushell nushell
@@ -113,4 +113,42 @@ with pkgs;
browsh browsh
kdePackages.qt6ct kdePackages.qt6ct
kitty kitty
axel
stlink
sysdig
cilium-cli
emacs
emacsPackages.doom
nfs-utils
openvswitch
virt-viewer
patchelf
velero
rpi-imager
fluxcd-operator
vault
msitools
age
(llm.withPlugins {
llm-ollama = true;
})
python313Packages.huggingface-hub
python313Packages.markitdown
ipmitool
kubevirt
bubblewrap
pv-migrate
] ]

View File

@@ -4,6 +4,14 @@
{ {
virtualisation = { virtualisation = {
containers.enable = true; containers.enable = true;
containers.storage.settings = {
storage = {
driver = "overlay";
graphroot = "/mnt/ssd1/podman";
rootless_storage_path = "/mnt/ssd1/podman";
};
};
podman = { podman = {
enable = true; enable = true;
dockerCompat = true; dockerCompat = true;

View File

@@ -1,6 +1,6 @@
# X display system config # X display system config
{ pkgs, ... }: { pkgs, config, ... }:
{ {
hardware.graphics.enable = true; hardware.graphics.enable = true;
services.xserver.enable = true; services.xserver.enable = true;
@@ -8,9 +8,11 @@
services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = { hardware.nvidia = {
open = false; open = true;
modesetting.enable = true; modesetting.enable = true;
powerManagement.enable = false; powerManagement.enable = false;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.production;
}; };
xdg.portal = { xdg.portal = {
@@ -30,6 +32,8 @@
services.picom.enable = true; services.picom.enable = true;
programs.niri.enable = true;
services.xserver.windowManager.xmonad = { services.xserver.windowManager.xmonad = {
enable = true; enable = true;
enableContribAndExtras = true; enableContribAndExtras = true;