mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
Compare commits
2 commits
21c1067572
...
641a0cd84d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
641a0cd84d | ||
|
|
51896dabea |
12 changed files with 2438 additions and 435 deletions
1086
SwarselSystems.org
1086
SwarselSystems.org
File diff suppressed because it is too large
Load diff
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
1740
flake.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@
|
|||
# improve performance on ssds
|
||||
bypassWorkqueues = true;
|
||||
preLVM = true;
|
||||
# crypttabExtraOpts = ["fido2-device=auto"];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
swarsel-bootstrap
|
||||
swarsel-displaypower
|
||||
swarsel-deploy
|
||||
swarsel-instantiate
|
||||
swarselzellij
|
||||
sshrm
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
];
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
14
nix/lib.nix
14
nix/lib.nix
|
|
@ -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
|
||||
|
|
|
|||
8
pkgs/swarsel-instantiate/default.nix
Normal file
8
pkgs/swarsel-instantiate/default.nix
Normal 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 $*"
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue