Compare commits

..
14 Commits
Author SHA1 Message Date
lukas e80ade3740 nix flake update 2026-09-17 12:27:01 +02:00
lukas 5a1042065a fix diff 2026-09-11 16:56:17 +02:00
lukas bdbc221873 added difftastic 2026-09-11 14:30:33 +02:00
lukas 0b53e2759d much nicer shell without powerlevel fuckup 2026-09-10 16:22:12 +02:00
lukas 66b35566e5 nix flake update 2026-09-05 14:08:51 +02:00
lukas 355afa1a7b nix flake update 2026-09-04 12:21:10 +02:00
lukas 38500cc067 consolidate packages in common 2026-09-02 14:10:42 +02:00
lukas 1db5e10b56 nix flake update 2026-09-02 13:56:35 +02:00
lukas 8c18f31dc4 nice update 2026-09-02 11:51:49 +02:00
lukas 70541b2698 added nh 2026-08-27 20:44:59 +02:00
lukas 2613b5eb1e Merge branch 'master' of ssh://git.lukas.services:2222/lukas/nixos 2026-08-20 12:35:10 +02:00
lukas 1c76f61e0d update 2026-08-05 11:31:17 +02:00
lukas 51dd7bb4b8 remove antigravity shit 2026-08-04 13:53:19 +02:00
lukas e33aef7b9c added better window navigation to tmux 2026-07-31 12:26:45 +02:00
15 changed files with 278 additions and 1901 deletions
Generated
+19 -19
View File
@@ -1,23 +1,23 @@
{
"nodes": {
"antigravity-nix": {
"codex-cli-nix": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": [
"nixpkgs"
"nixpkgs-unstable"
]
},
"locked": {
"lastModified": 1784965343,
"narHash": "sha256-hropwB+0KUXoFhAtAaHo5TefpJll6l2AZ46cqDDeFbI=",
"owner": "jacopone",
"repo": "antigravity-nix",
"rev": "60fec0afe78d223e3259e862233649d00bf1d634",
"lastModified": 1788995571,
"narHash": "sha256-I58IVp7HfT3TTKZJ5kh7/Lttu9DnRZFC0qmvxnIvIj4=",
"owner": "sadjow",
"repo": "codex-cli-nix",
"rev": "33542c7e7139127a4bac1cbe0fac8c81a570410a",
"type": "github"
},
"original": {
"owner": "jacopone",
"repo": "antigravity-nix",
"owner": "sadjow",
"repo": "codex-cli-nix",
"type": "github"
}
},
@@ -46,11 +46,11 @@
]
},
"locked": {
"lastModified": 1785119570,
"narHash": "sha256-Rgs2xKnGLFWQscxUaXX07oyZeuMDOHEbqDOsgliLFGM=",
"lastModified": 1789267039,
"narHash": "sha256-LWiBv9yAYFi2LPbUhDGHPGKYskJQjj2fw12OlyO1uQo=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "d4fd24667c8cbef124bb70a20380cab75ec8474d",
"rev": "ec172013fa62135f58fb58dd17ae9651e8f39727",
"type": "github"
},
"original": {
@@ -62,11 +62,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1785104993,
"narHash": "sha256-eKbrvPoAOFutbYMdbB3r5EQVmFxKv24iKqHPPUXA0gM=",
"lastModified": 1789542786,
"narHash": "sha256-ajQuqcxnj6RYnwCjA/9FTCnrdR2+BDzstE8UembXf60=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "8623c4c20aa4ca2f5fb81510d2944066c3fb0d96",
"rev": "4c7870105e7f1fdf9c48688c8d7efc21abf0688a",
"type": "github"
},
"original": {
@@ -78,11 +78,11 @@
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1785110946,
"narHash": "sha256-WWuWxmXKzGZWryswWlijP3Mjp6aGy4Ngmeil5nGMMjk=",
"lastModified": 1789370336,
"narHash": "sha256-6RSEDHIWQtesQKWSu5qRai8L2h4KgCgMEfJHstW99G4=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "d3498f786f97ac0bded21b34bae0bf3809b45aa3",
"rev": "c7def046b9a883d46974757852106483d741586f",
"type": "github"
},
"original": {
@@ -94,7 +94,7 @@
},
"root": {
"inputs": {
"antigravity-nix": "antigravity-nix",
"codex-cli-nix": "codex-cli-nix",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable"
+8 -13
View File
@@ -4,24 +4,25 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
antigravity-nix = {
url = "github:jacopone/antigravity-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager/release-26.05";
inputs.nixpkgs.follows = "nixpkgs";
};
codex-cli-nix = {
url = "github:sadjow/codex-cli-nix";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
};
outputs =
inputs@{
self,
nixpkgs,
antigravity-nix,
home-manager,
codex-cli-nix,
...
}:
let
@@ -55,14 +56,11 @@
home-manager.backupFileExtension = "backup";
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit codex-cli-nix pkgs-unstable; };
home-manager.users.lukas.imports = [
./home/lukas/laptop/default.nix
];
home-manager.extraSpecialArgs = {
inherit inputs antigravity-nix;
};
}
];
};
@@ -78,14 +76,11 @@
home-manager.backupFileExtension = "backup";
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit codex-cli-nix pkgs-unstable; };
home-manager.users.lukas.imports = [
./home/lukas/tower/default.nix
];
home-manager.extraSpecialArgs = {
inherit inputs antigravity-nix;
};
}
];
};
+1 -1
View File
@@ -4,6 +4,7 @@
programs.alacritty = {
enable = true;
settings = {
font.normal.family = "FiraCode Nerd Font";
terminal.shell = {
program = "${pkgs.tmux}/bin/tmux";
@@ -16,4 +17,3 @@
};
};
}
+8
View File
@@ -0,0 +1,8 @@
{
programs.nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 4d --keep 3";
flake = "/home/lukas/nixos"; # sets NH_OS_FLAKE variable for you
};
}
File diff suppressed because it is too large Load Diff
+69
View File
@@ -0,0 +1,69 @@
{
codex-cli-nix,
pkgs,
pkgs-unstable,
...
}:
{
fonts.fontconfig.enable = true;
home.packages = [
pkgs-unstable.rtk
codex-cli-nix.packages.${pkgs.system}.default
pkgs.thunderbird
pkgs.nextcloud-client
pkgs.keepassxc
pkgs.telegram-desktop
pkgs.element-desktop
pkgs.tidal-hifi
pkgs.signal-desktop
pkgs.tree
pkgs.htop
pkgs.neovim
pkgs.wget
pkgs.unzip
pkgs.feather
pkgs.firefox
pkgs.zathura
pkgs.ranger
pkgs.nerd-fonts.fira-code
pkgs.fira-code
pkgs.fira-code-symbols
pkgs.meslo-lgs-nf
pkgs.eza
pkgs.bat
pkgs.ripgrep
pkgs.duf
pkgs.dust
pkgs.bottom
pkgs.gping
pkgs.difftastic
pkgs.sqlitebrowser
pkgs.seahorse
pkgs.binutils
pkgs.gcc
pkgs.nil
pkgs.zotero
(pkgs.aspellWithDicts (
dicts: with dicts; [
de
en
en-computers
]
))
];
}
+155 -13
View File
@@ -1,25 +1,154 @@
{ config, pkgs, ... }:
{ config, ... }:
{
programs.fzf = {
enable = true;
enableZshIntegration = true;
};
programs.starship = {
enable = true;
enableZshIntegration = true;
settings = {
add_newline = true;
format = "$directory$git_branch$git_status$line_break$character";
right_format = "$status$cmd_duration$jobs$direnv$python$nix_shell";
character = {
success_symbol = "[](bold fg:#a6e3a1)";
error_symbol = "[](bold fg:#f38ba8)";
vimcmd_symbol = "[](bold fg:#cba6f7)";
};
directory = {
style = "bold fg:#1e1e2e bg:#89b4fa";
format = "[](fg:#89b4fa)[ $path$read_only ]($style)[](fg:#89b4fa) ";
truncation_length = 3;
truncation_symbol = "/";
truncate_to_repo = false;
read_only = " ";
};
git_branch = {
symbol = " ";
style = "fg:#1e1e2e bg:#cba6f7";
format = "[](fg:#cba6f7)[ $symbol$branch ]($style)[](fg:#cba6f7) ";
};
git_status = {
style = "fg:#f9e2af";
format = "[($all_status$ahead_behind )]($style)";
conflicted = "~$count ";
stashed = "*$count ";
staged = "+$count ";
modified = "!$count ";
renamed = "»$count ";
deleted = "$count ";
untracked = "?$count ";
ahead = "$count ";
behind = "$count ";
};
status = {
disabled = false;
style = "bold fg:#f38ba8";
symbol = " ";
format = "[ $symbol$status ]($style)";
};
cmd_duration = {
min_time = 3000;
style = "fg:#f9e2af";
format = "[ $duration ]($style)";
};
jobs = {
style = "fg:#f9e2af";
symbol = " ";
format = "[ $symbol$number ]($style)";
number_threshold = 1;
};
direnv = {
disabled = false;
style = "fg:#f9e2af";
format = "[ $symbol$allowed ]($style)";
};
python = {
style = "fg:#a6e3a1";
format = "[ $symbol$virtualenv ]($style)";
detect_extensions = [ ];
detect_files = [ ];
detect_folders = [ ];
};
nix_shell = {
style = "fg:#89b4fa";
symbol = "";
format = "[ $state $symbol ]($style)";
};
};
};
programs.zsh = {
enable = true;
dotDir = config.home.homeDirectory;
enableCompletion = true;
defaultKeymap = "emacs";
syntaxHighlighting.enable = true;
autosuggestion.enable = true;
initContent = "source /etc/nixos/home/lukas/common/p10k.zsh";
sessionVariables = {
POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD = "true";
autosuggestion = {
enable = true;
strategy = [
"history"
"completion"
];
};
historySubstringSearch.enable = true;
initContent = ''
# Tab opens a menu; arrows navigate it and matching ignores case.
zmodload zsh/complist
zstyle ':completion:*' menu select
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
zstyle ':completion:*' group-name '''
zstyle ':completion:*:descriptions' format '%F{yellow}%d%f'
zplug = {
enable = true;
plugins = [
{ name = "romkatv/powerlevel10k"; tags = [ as:theme depth:1 ]; }
];
# Accept ghost text at the end of the line, or one word with Alt+Right.
bindkey '^[[C' forward-char
bindkey '^[OC' forward-char
bindkey '^[[1;3C' forward-word
bindkey '^F' autosuggest-accept
# Pos1/Home and Ende/End in Alacritty and tmux terminal modes.
bindkey '^[[H' beginning-of-line
bindkey '^[OH' beginning-of-line
bindkey '^[[1~' beginning-of-line
bindkey '^[[F' end-of-line
bindkey '^[OF' end-of-line
bindkey '^[[4~' end-of-line
# Search history for the text already typed (both terminal arrow modes).
bindkey '^[[A' history-substring-search-up
bindkey '^[OA' history-substring-search-up
bindkey '^[[B' history-substring-search-down
bindkey '^[OB' history-substring-search-down
'';
history = {
size = 100000;
save = 100000;
ignoreDups = true;
ignoreAllDups = true;
saveNoDups = true;
findNoDups = true;
# Make new commands visible in other open terminals.
share = true;
# Store timestamps and durations.
extended = true;
};
sessionVariables = {
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE = "fg=8";
VIRTUAL_ENV_DISABLE_PROMPT = "1";
};
shellAliases = {
@@ -29,10 +158,23 @@
la = "eza --icons -a"; # show all dot-files, short
lt = "eza -T --icons --git-ignore --level=4"; # pretty tree, two levels deep
cat ="bat --style=plain --pager=cat"; # pretty cat
less ="bat --style=plain --pager=less"; # pretty less
cat = "bat --style=plain --pager=cat"; # pretty cat
less = "bat --style=plain --pager=less"; # pretty less
gs = "git status";
gl = "git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' --all";
gc = "git commit -m ";
gaa = "git add .";
gd = "git -c diff.external=difft diff";
ping = "gping";
du = "dust";
df = "duf";
top = "btm";
};
};
}
+5
View File
@@ -16,6 +16,11 @@
# split bindings: prefix+h = horizontal split (top/bottom)
bind h split-window -v
# window navigation
bind -n M-n next-window
bind -n M-p previous-window
bind -n M-Tab last-window
# hide the status bar
set -g status off
+3 -2
View File
@@ -1,6 +1,7 @@
{
imports = [
./packages.nix
../common/packages.nix
../common/brave.nix
../common/direnv.nix
../common/emacs.nix
@@ -9,11 +10,11 @@
../common/alacritty.nix
../common/tmux.nix
../common/xgd.nix
../common/nh.nix
../common/libreoffice.nix
];
home.username = "lukas";
home.homeDirectory = "/home/lukas";
home.stateVersion = "25.05";
home.stateVersion = "26.05";
}
+1 -49
View File
@@ -1,55 +1,7 @@
{ pkgs, antigravity-nix, ... }:
{ pkgs, ... }:
{
fonts.fontconfig.enable = true;
home.packages = [
pkgs.thunderbird
pkgs.nextcloud-client
pkgs.keepassxc
pkgs.telegram-desktop
pkgs.element-desktop
pkgs.tidal-hifi
pkgs.signal-desktop
pkgs.tree
pkgs.htop
pkgs.neovim
pkgs.wget
pkgs.unzip
pkgs.feather
pkgs.firefox
pkgs.zathura
pkgs.ranger
pkgs.nerd-fonts.fira-code
pkgs.fira-code
pkgs.fira-code-symbols
pkgs.meslo-lgs-nf
pkgs.eza
pkgs.bat
pkgs.ripgrep
pkgs.seahorse
pkgs.binutils
pkgs.gcc
# pkgs.scenebuilder
pkgs.nil
pkgs.quickemu
pkgs.zotero
(pkgs.aspellWithDicts
(dicts: with dicts; [ de en en-computers ]))
antigravity-nix.packages.x86_64-linux.default
];
}
+3 -2
View File
@@ -1,6 +1,7 @@
{
imports = [
./packages.nix
../common/packages.nix
../common/brave.nix
../common/direnv.nix
../common/emacs.nix
@@ -8,12 +9,12 @@
../common/shell.nix
../common/alacritty.nix
../common/tmux.nix
../common/nh.nix
../common/xgd.nix
../common/libreoffice.nix
];
home.username = "lukas";
home.homeDirectory = "/home/lukas";
home.stateVersion = "25.05";
home.stateVersion = "26.05";
}
+1 -53
View File
@@ -1,62 +1,10 @@
{ pkgs, antigravity-nix, ... }:
{ pkgs, ... }:
{
fonts.fontconfig.enable = true;
home.packages = [
pkgs.thunderbird
pkgs.nextcloud-client
pkgs.keepassxc
pkgs.telegram-desktop
pkgs.element-desktop
pkgs.tidal-hifi
pkgs.signal-desktop
pkgs.solaar
pkgs.tree
pkgs.htop
pkgs.neovim
pkgs.wget
pkgs.unzip
pkgs.feather
pkgs.firefox
pkgs.ranger
pkgs.zathura
pkgs.nerd-fonts.fira-code
pkgs.fira-code
pkgs.fira-code-symbols
pkgs.meslo-lgs-nf
pkgs.eza
pkgs.bat
pkgs.ripgrep
pkgs.sqlitebrowser
pkgs.seahorse
pkgs.binutils
pkgs.gcc
pkgs.scenebuilder
pkgs.nil
pkgs.zotero
pkgs.audacious
(pkgs.aspellWithDicts (
dicts: with dicts; [
de
en
en-computers
]
))
antigravity-nix.packages.x86_64-linux.default
];
}
-1
View File
@@ -35,4 +35,3 @@
nix.settings.experimental-features = [ "nix-command" "flakes" ];
}
+1 -3
View File
@@ -31,8 +31,6 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.initrd.luks.devices."luks-b10eb0c6-67b8-40b6-bba4-83d38267abad".device = "/dev/disk/by-uuid/b10eb0c6-67b8-40b6-bba4-83d38267abad";
boot.resumeDevice = "/dev/mapper/luks-b10eb0c6-67b8-40b6-bba4-83d38267abad";
@@ -44,6 +42,6 @@
nixpkgs.config.allowUnfree = true;
# Version festlegen
system.stateVersion = "25.05";
system.stateVersion = "26.05";
nix.settings.experimental-features = [ "nix-command" "flakes" ];
}
-2
View File
@@ -1,5 +1,3 @@
{ config, pkgs, ... }:
{
virtualisation.oci-containers.containers.codex-lb = {
image = "ghcr.io/soju06/codex-lb:beta";