Compare commits

...

2 commits

Author SHA1 Message Date
Leon Schwarzäugl
641a0cd84d
docs: improve documentation
Some checks failed
Flake check / Check flake (push) Has been cancelled
2025-07-16 18:20:07 +02:00
Leon Schwarzäugl
51896dabea
fix: zellij not opening after reboot 2025-07-14 17:04:54 +02:00
12 changed files with 2438 additions and 435 deletions

File diff suppressed because it is too large Load diff

View file

@ -877,6 +877,7 @@ create a new one."
(add-to-list 'org-structure-template-alist '("el" . "src emacs-lisp"))
(add-to-list 'org-structure-template-alist '("py" . "src python :results output"))
(add-to-list 'org-structure-template-alist '("nix" . "src nix-ts :tangle"))
(add-to-list 'org-structure-template-alist '("ne" . "bash :exports both"))
(use-package auctex)
(setq TeX-auto-save t)

View file

@ -1,7 +1,8 @@
KITTIES=$(($(pgrep -P 1 kitty | wc -l) - 1))
# KITTIES=$(($(pgrep -P 1 kitty | wc -l) - 1))
if ((KITTIES < 1)); then
exec kitty -o confirm_os_window_close=0 zellij attach --create main
else
exec kitty -o confirm_os_window_close=0 zellij attach --create "temp $KITTIES"
fi
# if ((KITTIES < 1)); then
# exec kitty -o confirm_os_window_close=0 zellij attach --create main
# else
# exec kitty -o confirm_os_window_close=0 zellij attach --create "temp $KITTIES"
# fi
exec kitty -o confirm_os_window_close=0 zellij

View file

@ -5,6 +5,7 @@
default_shell "zsh"
copy_on_select true
on_force_close "detach"
show_startup_tips false
default_layout "default"
layout_dir "${config.home.homeDirectory}/.config/zellij/layouts"

1740
flake.lock generated

File diff suppressed because it is too large Load diff

View file

@ -23,6 +23,7 @@
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
swarsel.url = "github:Swarsel/.dotfiles";
emacs-overlay = {
url = "github:nix-community/emacs-overlay";
inputs.nixpkgs.follows = "nixpkgs";

View file

@ -32,6 +32,7 @@
# improve performance on ssds
bypassWorkqueues = true;
preLVM = true;
# crypttabExtraOpts = ["fido2-device=auto"];
};
};

View file

@ -25,6 +25,7 @@
swarsel-bootstrap
swarsel-displaypower
swarsel-deploy
swarsel-instantiate
swarselzellij
sshrm

View file

@ -1,11 +1,10 @@
{ self, lib, ... }:
let
importNames = lib.swarselsystems.readNix "modules/nixos/common";
modulesPath = "${self}/modules";
in
{
imports = lib.swarselsystems.mkImports importNames "modules/nixos/common" ++ [
"${modulesPath}/home/common/sharedsetup.nix"
"${self}/modules/shared/sharedsetup.nix"
];

View file

@ -36,7 +36,9 @@ let
channel.enable = false;
registry = rec {
nixpkgs.flake = inputs.nixpkgs;
p = nixpkgs;
swarsel.flake = inputs.swarsel;
n = nixpkgs;
s = swarsel;
};
nixPath = lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs;
};

View file

@ -47,20 +47,6 @@ let
readHosts = type: lib.attrNames (builtins.readDir "${self}/hosts/${type}");
readNix = type: lib.filter (name: name != "default.nix") (lib.attrNames (builtins.readDir "${self}/${type}"));
mkModules = names: type: builtins.listToAttrs (map
(name: {
inherit name;
value = import "${self}/modules/${type}/${name}";
})
names);
mkProfiles = names: type: builtins.listToAttrs (map
(name: {
inherit name;
value = import "${self}/profiles/${type}/${name}";
})
names);
mkImports = names: baseDir: lib.map (name: "${self}/${baseDir}/${name}") names;
};
in

View file

@ -0,0 +1,8 @@
{ name, writeShellApplication, ... }:
writeShellApplication {
inherit name;
text = ''
set -euo pipefail
nix-instantiate --strict --eval --expr "let lib = import <nixpkgs/lib>; in $*"
'';
}