Compare commits
28 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
596b58fab4
|
|||
|
a58319e08d
|
|||
|
79b24d9439
|
|||
|
b295a9a330
|
|||
|
29db6af86b
|
|||
|
9d7efb69ac
|
|||
| bf5de3872f | |||
|
7577e39c88
|
|||
|
47fb9e7f97
|
|||
|
098b92ae45
|
|||
|
b987dcf0c6
|
|||
|
0c6c2dd71b
|
|||
| a329e21711 | |||
|
91f3e0425b
|
|||
| 85fa00a2e1 | |||
|
1d558f3f7c
|
|||
| ddaeb1beff | |||
|
5e3867b227
|
|||
| 7f58c16441 | |||
|
2edc62ff13
|
|||
|
27fb719555
|
|||
| 5ab603b726 | |||
|
a3e09d0019
|
|||
|
ae895dc55f
|
|||
|
cb0645dd81
|
|||
| 0daf4eec9a | |||
|
59a83f550c
|
|||
| 6ceaf560ca |
Generated
+17
-77
@@ -28,11 +28,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1779213149,
|
"lastModified": 1781365335,
|
||||||
"narHash": "sha256-Cf+p/T4Z3n9Sw0TiR3kQaIwQI+/hfvLJcoTzeq6yS3E=",
|
"narHash": "sha256-zqDBhXMzfbdlO7F2bGHe7MOtB3xngd/+4ieMHDC+ZXo=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "bd868f769a69d3b6091a1da68a75cb83a181033c",
|
"rev": "5b6f5733726a1b2ccafb5dec6ac4ca7299fad66c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -43,11 +43,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1778869304,
|
"lastModified": 1781074563,
|
||||||
"narHash": "sha256-30sZNZoA1cqF5JNO9fVX+wgiQYjB7HJqqJ4ztCDeBZE=",
|
"narHash": "sha256-md8WlXOlfnIeHeOScMTTHFyf2d6iaTwPl2apR5EQ3P4=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "d233902339c02a9c334e7e593de68855ad26c4cb",
|
"rev": "9ae611a455b90cf061d8f332b977e387bda8e1ca",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -66,11 +66,11 @@
|
|||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1779199181,
|
"lastModified": 1781388258,
|
||||||
"narHash": "sha256-8x/CeqkYNAAOY+Pa5Huyh0aiUmFcOUAyq3VdYxHb5K4=",
|
"narHash": "sha256-Kx1zxra9sZ215H3OiWUfkulu8N2v3iu19wqlzpD/Ac0=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixvim",
|
"repo": "nixvim",
|
||||||
"rev": "13ba3f7ca9da3d49e959745f6d0d1e7a662c1984",
|
"rev": "e3c908fdf6dff268b04ffb6758bcfc7c018489b9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -83,15 +83,14 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
]
|
||||||
"noctalia-qs": "noctalia-qs"
|
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1779125269,
|
"lastModified": 1781443008,
|
||||||
"narHash": "sha256-vMF9Hd5/UoLggIJcLKK/oC1SnxoQdgIaUMdVB48zQ7A=",
|
"narHash": "sha256-ZycdrXdxhHYtw9FV10T6A+Tj1Hkq3WKtWnxQ317uXC8=",
|
||||||
"owner": "noctalia-dev",
|
"owner": "noctalia-dev",
|
||||||
"repo": "noctalia-shell",
|
"repo": "noctalia-shell",
|
||||||
"rev": "da95089dfe5148ee7fb33b3faa314e86de1e6f25",
|
"rev": "2b82e4a2719b8bb0cd2da9716ed30302e9299ed6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -100,29 +99,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"noctalia-qs": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"noctalia",
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"systems": "systems_2",
|
|
||||||
"treefmt-nix": "treefmt-nix"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1778983195,
|
|
||||||
"narHash": "sha256-hE3EFK5GoSdbO5WHZ8bZDUVYkofbDLQN/KK25z7IOOI=",
|
|
||||||
"owner": "noctalia-dev",
|
|
||||||
"repo": "noctalia-qs",
|
|
||||||
"rev": "4116b41cdc89e186be7cb8b24a9b6022af95d742",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "noctalia-dev",
|
|
||||||
"repo": "noctalia-qs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
@@ -133,55 +109,19 @@
|
|||||||
},
|
},
|
||||||
"systems": {
|
"systems": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681028828,
|
"lastModified": 1774449309,
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
"narHash": "sha256-brhZ8DmuGtzkCYHJg4HEd602amKm89Y9ytsFZ5uWD1w=",
|
||||||
"owner": "nix-systems",
|
"owner": "nix-systems",
|
||||||
"repo": "default",
|
"repo": "default",
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
"rev": "c29398b59d2048c4ab79345812849c9bd15e9150",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-systems",
|
"owner": "nix-systems",
|
||||||
|
"ref": "future-26.11",
|
||||||
"repo": "default",
|
"repo": "default",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"systems_2": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1689347949,
|
|
||||||
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default-linux",
|
|
||||||
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default-linux",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"treefmt-nix": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"noctalia",
|
|
||||||
"noctalia-qs",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1775636079,
|
|
||||||
"narHash": "sha256-pc20NRoMdiar8oPQceQT47UUZMBTiMdUuWrYu2obUP0=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "treefmt-nix",
|
|
||||||
"rev": "790751ff7fd3801feeaf96d7dc416a8d581265ba",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "treefmt-nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|||||||
@@ -2,11 +2,12 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
../../modules/nixos/astro.nix
|
||||||
../../modules/nixos/audio.nix
|
../../modules/nixos/audio.nix
|
||||||
../../modules/nixos/bootloader.nix
|
../../modules/nixos/bootloader.nix
|
||||||
../../modules/nixos/calibre.nix
|
../../modules/nixos/calibre.nix
|
||||||
../../modules/nixos/claudecode.nix
|
|
||||||
../../modules/nixos/certificates.nix
|
../../modules/nixos/certificates.nix
|
||||||
|
../../modules/nixos/claudecode.nix
|
||||||
../../modules/nixos/drives.nix
|
../../modules/nixos/drives.nix
|
||||||
../../modules/nixos/gnupg.nix
|
../../modules/nixos/gnupg.nix
|
||||||
../../modules/nixos/gnuradio.nix
|
../../modules/nixos/gnuradio.nix
|
||||||
@@ -22,6 +23,7 @@
|
|||||||
../../modules/nixos/services.nix
|
../../modules/nixos/services.nix
|
||||||
../../modules/nixos/settings.nix
|
../../modules/nixos/settings.nix
|
||||||
../../modules/nixos/steam.nix
|
../../modules/nixos/steam.nix
|
||||||
|
../../modules/nixos/thunar.nix
|
||||||
../../modules/nixos/users.nix
|
../../modules/nixos/users.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
../../modules/nixos/astro.nix
|
||||||
../../modules/nixos/audio.nix
|
../../modules/nixos/audio.nix
|
||||||
../../modules/nixos/bootloader.nix
|
../../modules/nixos/bootloader.nix
|
||||||
../../modules/nixos/certificates.nix
|
../../modules/nixos/certificates.nix
|
||||||
|
|||||||
@@ -4,6 +4,12 @@
|
|||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
# We keep `inputs.nixvim.inputs.nixpkgs.follows = "nixpkgs"` in flake.nix so
|
||||||
|
# the whole config shares a single nixpkgs. Setting `source` explicitly to
|
||||||
|
# that same nixpkgs acknowledges the override and silences nixvim's warning
|
||||||
|
# about its pinned nixpkgs being bypassed.
|
||||||
|
nixpkgs.source = inputs.nixpkgs;
|
||||||
|
|
||||||
# set aliases
|
# set aliases
|
||||||
viAlias = true;
|
viAlias = true;
|
||||||
vimAlias = true;
|
vimAlias = true;
|
||||||
|
|||||||
@@ -0,0 +1,123 @@
|
|||||||
|
{ config, pkgs, inputs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
# Noctalia v5 shell, managed via its upstream home-manager module.
|
||||||
|
# See https://docs.noctalia.dev/v5/getting-started/nixos/
|
||||||
|
imports = [ inputs.noctalia.homeModules.default ];
|
||||||
|
|
||||||
|
programs.noctalia = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
# The module's `package` option has no default, so it must be set explicitly.
|
||||||
|
package = inputs.noctalia.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
||||||
|
|
||||||
|
# settings is rendered to ~/.config/noctalia/config.toml
|
||||||
|
settings = {
|
||||||
|
# theme / colors
|
||||||
|
theme = {
|
||||||
|
source = "builtin";
|
||||||
|
builtin = "Nord";
|
||||||
|
mode = "dark";
|
||||||
|
templates.builtin_ids = [ "ghostty" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
# general
|
||||||
|
shell = {
|
||||||
|
font_family = "0xProto Nerd Font Mono";
|
||||||
|
ui_scale = 1.2;
|
||||||
|
avatar_path = "/home/aaron/syncthing/pictures/Logo-Aaron-Totenkopf-rund-schwarz.png";
|
||||||
|
telemetry_enabled = false;
|
||||||
|
clipboard_enabled = true;
|
||||||
|
password_style = "random";
|
||||||
|
|
||||||
|
panel = {
|
||||||
|
launcher_compact = true;
|
||||||
|
open_near_click_control_center = true;
|
||||||
|
open_near_click_session = true;
|
||||||
|
open_near_click_wallpaper = true;
|
||||||
|
transparency_mode = "glass";
|
||||||
|
};
|
||||||
|
|
||||||
|
screen_corners = {
|
||||||
|
enabled = true;
|
||||||
|
size = 10;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# location / weather
|
||||||
|
location.address = "Bern";
|
||||||
|
|
||||||
|
weather = {
|
||||||
|
enabled = true;
|
||||||
|
unit = "metric";
|
||||||
|
};
|
||||||
|
|
||||||
|
# wallpaper
|
||||||
|
wallpaper = {
|
||||||
|
enabled = true;
|
||||||
|
directory = "/home/aaron/Pictures/Wallpapers";
|
||||||
|
fill_mode = "crop";
|
||||||
|
default.path = "/home/aaron/Pictures/Wallpapers/nord-theme-tower.png";
|
||||||
|
};
|
||||||
|
|
||||||
|
# bar layout
|
||||||
|
bar = {
|
||||||
|
order = [ "default" ];
|
||||||
|
default = {
|
||||||
|
position = "top";
|
||||||
|
background_opacity = 0.93;
|
||||||
|
font_weight = 400;
|
||||||
|
margin_edge = 0;
|
||||||
|
margin_ends = 0;
|
||||||
|
radius = 0;
|
||||||
|
scale = 1.2;
|
||||||
|
widget_spacing = 20;
|
||||||
|
start = [ "control-center" "cpu" "ram" "temp" "active_window" ];
|
||||||
|
center = [ "workspaces" ];
|
||||||
|
end = [ "tray" "bluetooth" "notifications" "volume" "network" "clock" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# per-widget styling
|
||||||
|
widget = {
|
||||||
|
bluetooth.capsule = true;
|
||||||
|
control-center = {
|
||||||
|
capsule_radius = 8;
|
||||||
|
custom_image = "/home/aaron/Pictures/nix_flake_logo.png";
|
||||||
|
scale = 1.4;
|
||||||
|
};
|
||||||
|
cpu.capsule = true;
|
||||||
|
network = {
|
||||||
|
capsule = true;
|
||||||
|
show_label = false;
|
||||||
|
};
|
||||||
|
notifications.capsule = true;
|
||||||
|
ram.capsule = true;
|
||||||
|
temp.capsule = true;
|
||||||
|
volume = {
|
||||||
|
capsule = true;
|
||||||
|
show_label = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# idle behavior
|
||||||
|
idle = {
|
||||||
|
behavior_order = [ "screen-off" "lock" "lock-and-suspend" ];
|
||||||
|
behavior = {
|
||||||
|
"screen-off" = {
|
||||||
|
enabled = true;
|
||||||
|
timeout = 600;
|
||||||
|
};
|
||||||
|
"lock" = {
|
||||||
|
enabled = true;
|
||||||
|
timeout = 660;
|
||||||
|
};
|
||||||
|
"lock-and-suspend" = {
|
||||||
|
enabled = true;
|
||||||
|
timeout = 1800;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -8,12 +8,14 @@
|
|||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# theme will be set below
|
# add git and agents as plugins
|
||||||
theme = "";
|
|
||||||
plugins = [ "git" "ssh-agent" "gpg-agent" ];
|
plugins = [ "git" "ssh-agent" "gpg-agent" ];
|
||||||
};
|
# everything here lands before `source $ZSH/oh-my-zsh.sh`
|
||||||
|
extraConfig = ''
|
||||||
|
# make omz faster on large repositories
|
||||||
|
DISABLE_UNTRACKED_FILES_DIRTY=true
|
||||||
|
|
||||||
# only display a fancy theme when glyphs are rendered
|
# only display a fancy theme when glyphs are rendered
|
||||||
initContent = lib.mkOrder 550 ''
|
|
||||||
if [[ "$TERM" == "linux" || "$TERM" == "screen" ]]; then
|
if [[ "$TERM" == "linux" || "$TERM" == "screen" ]]; then
|
||||||
ZSH_THEME="gentoo"
|
ZSH_THEME="gentoo"
|
||||||
else
|
else
|
||||||
@@ -21,6 +23,7 @@
|
|||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# set important env vars
|
# set important env vars
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
|
|||||||
@@ -0,0 +1,63 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
# Siril's Python plugins (sirilpy) run in a venv that pip-installs foreign
|
||||||
|
# manylinux wheels (numpy, GraXpert deps, ...). Those .so files need
|
||||||
|
# libstdc++ at runtime. nix-ld does NOT cover this: it only handles the
|
||||||
|
# initial exec of a foreign binary, but here a *native* nixpkgs python
|
||||||
|
# dlopen()s the foreign wheel. So we put the libs on LD_LIBRARY_PATH, which
|
||||||
|
# the python subprocess inherits from the Siril process.
|
||||||
|
sirilWithPlugins = pkgs.symlinkJoin {
|
||||||
|
name = "siril-with-plugins";
|
||||||
|
paths = [ pkgs.siril ];
|
||||||
|
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||||
|
postBuild = ''
|
||||||
|
wrapProgram $out/bin/siril \
|
||||||
|
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath (with pkgs; [
|
||||||
|
stdenv.cc.cc.lib # libstdc++ / libgcc_s / libgomp (numpy etc.)
|
||||||
|
zlib
|
||||||
|
zstd # libzstd.so.1 (PyQt6)
|
||||||
|
libGL # libGL.so.1 (PyQt6)
|
||||||
|
# PyQt6 (VeraLux) — Qt bundles xcb support so it needs these even
|
||||||
|
# on Wayland; libxkbcommon is the keymap lib used by Wayland too.
|
||||||
|
glib
|
||||||
|
fontconfig
|
||||||
|
freetype
|
||||||
|
dbus
|
||||||
|
libxkbcommon
|
||||||
|
# Qt platform plugins: the wayland plugin (libqwayland.so) needs the
|
||||||
|
# wayland client libs; the xcb fallback needs libxcb-cursor.so.0.
|
||||||
|
wayland # libwayland-client/cursor/egl (wayland plugin)
|
||||||
|
libxcb-cursor # libxcb-cursor.so.0 (xcb plugin)
|
||||||
|
libx11
|
||||||
|
libxcb
|
||||||
|
libxcb-util
|
||||||
|
libxcb-wm
|
||||||
|
libxcb-image
|
||||||
|
libxcb-keysyms
|
||||||
|
libxcb-render-util
|
||||||
|
])}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
# install stellarium for target finding and siril for stacking
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
stellarium
|
||||||
|
sirilWithPlugins
|
||||||
|
];
|
||||||
|
|
||||||
|
# StarNet++ has no nixpkgs package. Download the StarNet v2 ORT CLI build
|
||||||
|
# (starnet2_linux_*_ORT_x64_cli) from https://www.starnetastro.com/download/
|
||||||
|
# and unzip it to ~/.local/share/siril/starnet/. Then in Siril set
|
||||||
|
# Preferences -> Miscellaneous -> StarNet executable
|
||||||
|
# to the extracted ./starnet2 binary.
|
||||||
|
#
|
||||||
|
# The binary is a generic dynamically-linked ELF, so NixOS needs nix-ld to
|
||||||
|
# run it. Its own opencv/onnxruntime libs are found via the bundled ./lib.
|
||||||
|
programs.nix-ld.enable = true;
|
||||||
|
programs.nix-ld.libraries = with pkgs; [
|
||||||
|
stdenv.cc.cc.lib # libstdc++ / libgcc_s
|
||||||
|
zlib
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
# Enable Thunar
|
||||||
|
programs.thunar.enable = true;
|
||||||
|
|
||||||
|
# Install Tumbler thumbnailer service
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
tumbler
|
||||||
|
];
|
||||||
|
|
||||||
|
# Ensure Thunar can locate the thumbnailer extensions
|
||||||
|
environment.pathsToLink = [ "share/thumbnailers" ];
|
||||||
|
}
|
||||||
@@ -6,6 +6,7 @@
|
|||||||
../../modules/home-manager/git.nix
|
../../modules/home-manager/git.nix
|
||||||
../../modules/home-manager/ghostty.nix
|
../../modules/home-manager/ghostty.nix
|
||||||
../../modules/home-manager/nixvim.nix
|
../../modules/home-manager/nixvim.nix
|
||||||
|
../../modules/home-manager/noctalia.nix
|
||||||
../../modules/home-manager/programs.nix
|
../../modules/home-manager/programs.nix
|
||||||
../../modules/home-manager/shell.nix
|
../../modules/home-manager/shell.nix
|
||||||
../../modules/home-manager/styling.nix
|
../../modules/home-manager/styling.nix
|
||||||
|
|||||||
Reference in New Issue
Block a user