Compare commits
3 commits
8f60b4ad42
...
a742bdc12a
Author | SHA1 | Date | |
---|---|---|---|
a742bdc12a | |||
e529129153 | |||
c955c8726d |
7 changed files with 155 additions and 21 deletions
30
flake.lock
30
flake.lock
|
@ -150,11 +150,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1733168902,
|
"lastModified": 1734011192,
|
||||||
"narHash": "sha256-8dupm9GfK+BowGdQd7EHK5V61nneLfr9xR6sc5vtDi0=",
|
"narHash": "sha256-NghuiWXx6Q3gwLiudiNwDpYQ1CPEUK7J+f9dWREN8KA=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "disko",
|
"repo": "disko",
|
||||||
"rev": "785c1e02c7e465375df971949b8dcbde9ec362e5",
|
"rev": "0f31ad735e784315a22d9899d3ba24340ce64220",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -430,11 +430,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1733951607,
|
"lastModified": 1734043726,
|
||||||
"narHash": "sha256-CN6q6iCzxI1gkNyk4xLdwaMKi10r7n+aJkRzWj8PXwQ=",
|
"narHash": "sha256-e9YAMReFV1fDPcZLFC2pa4k/8TloSXeX0z2VysNMAoA=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "6e5b2d9e8014b5572e3367937a329e7053458d34",
|
"rev": "3066cc58f552421a2c5414e78407fa5603405b1e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -454,11 +454,11 @@
|
||||||
"spectrum": "spectrum"
|
"spectrum": "spectrum"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1733868086,
|
"lastModified": 1734041466,
|
||||||
"narHash": "sha256-CeYsC8J2dNiV2FCQOxK1oZ/jNpOF2io7aCEFHmfi95U=",
|
"narHash": "sha256-51bhaMe8BZuNAStUHvo07nDO72wmw8PAqkSYH4U31Yo=",
|
||||||
"owner": "astro",
|
"owner": "astro",
|
||||||
"repo": "microvm.nix",
|
"repo": "microvm.nix",
|
||||||
"rev": "870cb181719aa12baf478d7cde6068ec7ed144ae",
|
"rev": "3910e65c3d92c82ea41ab295c66df4c0b4f9e7b3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -566,11 +566,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1733759999,
|
"lastModified": 1733940404,
|
||||||
"narHash": "sha256-463SNPWmz46iLzJKRzO3Q2b0Aurff3U1n0nYItxq7jU=",
|
"narHash": "sha256-Pj39hSoUA86ZePPF/UXiYHHM7hMIkios8TYG29kQT4g=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "a73246e2eef4c6ed172979932bc80e1404ba2d56",
|
"rev": "5d67ea6b4b63378b9c13be21e2ec9d1afc921713",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -742,11 +742,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1733970833,
|
"lastModified": 1734057252,
|
||||||
"narHash": "sha256-sPEKtSaZk2CtfF9cdhtbY93S6qGq+d2PKI1fcoDfDaI=",
|
"narHash": "sha256-fpSFuiW+O2L0ru2GrXBS0wcAYV9+yDE0Gf800UsWutY=",
|
||||||
"owner": "oxalica",
|
"owner": "oxalica",
|
||||||
"repo": "rust-overlay",
|
"repo": "rust-overlay",
|
||||||
"rev": "f7f4c59ccdf1bec3f1547d27398e9589aa94e3e8",
|
"rev": "1f56a5c88e4dcaa0ab1ba04c4bc5a977cff840b2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -162,7 +162,7 @@
|
||||||
flake = {
|
flake = {
|
||||||
lib = import ./lib inputs;
|
lib = import ./lib inputs;
|
||||||
|
|
||||||
overlays.default = import ./overlays;
|
overlays.default = import ./overlays inputs;
|
||||||
|
|
||||||
nixosModules = builtins.listToAttrs (
|
nixosModules = builtins.listToAttrs (
|
||||||
map (x: {
|
map (x: {
|
||||||
|
|
33
home-manager/modules/ghostty/default.nix
Normal file
33
home-manager/modules/ghostty/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.eboskma.programs.ghostty;
|
||||||
|
iniFormat = pkgs.formats.iniWithGlobalSection { listsAsDuplicateKeys = true; };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.eboskma.programs.ghostty = {
|
||||||
|
enable = lib.mkEnableOption "ghostty";
|
||||||
|
package = lib.mkPackageOption pkgs "ghostty" { };
|
||||||
|
|
||||||
|
settings = lib.mkOption {
|
||||||
|
description = "Ghostty config.";
|
||||||
|
type = lib.types.submodule {
|
||||||
|
freeformType = iniFormat.type;
|
||||||
|
};
|
||||||
|
default = { };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
|
xdg.configFile.ghostty-config = {
|
||||||
|
target = "ghostty/config";
|
||||||
|
source = iniFormat.generate "ghostty-config" { globalSection = cfg.settings; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,4 +1,9 @@
|
||||||
{ config, lib, ... }:
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.eboskma.programs.starship;
|
cfg = config.eboskma.programs.starship;
|
||||||
|
@ -171,7 +176,7 @@ in
|
||||||
jjstate = {
|
jjstate = {
|
||||||
when = "jj root";
|
when = "jj root";
|
||||||
command = ''
|
command = ''
|
||||||
jj log -r@ -n1 --no-graph -T "" --stat | tail -n1 | sd "(\d+) files? changed, (\d+) insertions?\(\+\), (\d+) deletions?\(-\)" ' ''${1}m ''${2}+ ''${3}-' | sd " 0." ""
|
jj log -r@ -n1 --no-graph -T "" --stat | tail -n1 | ${lib.getExe pkgs.sd} "(\d+) files? changed, (\d+) insertions?\(\+\), (\d+) deletions?\(-\)" ' ''${1}m ''${2}+ ''${3}-' | ${lib.getExe pkgs.sd} " 0." ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -119,6 +119,20 @@
|
||||||
device = "/dev/disk/by-label/yocto";
|
device = "/dev/disk/by-label/yocto";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"/mnt/horus/Public" = {
|
||||||
|
device = "//horusnas1/Horusdata/Public";
|
||||||
|
fsType = "cifs";
|
||||||
|
options =
|
||||||
|
let
|
||||||
|
automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s";
|
||||||
|
in
|
||||||
|
[
|
||||||
|
"${automount_opts},credentials=/etc/nixos/smb-secrets"
|
||||||
|
"uid=1000"
|
||||||
|
"gid=500"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ { device = "/dev/disk/by-label/swap"; } ];
|
swapDevices = [ { device = "/dev/disk/by-label/swap"; } ];
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
_final: prev: {
|
inputs: _final: prev: {
|
||||||
backscrub = prev.pkgs.callPackage ../pkgs/backscrub {
|
backscrub = prev.pkgs.callPackage ../pkgs/backscrub {
|
||||||
inherit (prev.pkgs)
|
inherit (prev.pkgs)
|
||||||
gcc
|
gcc
|
||||||
|
@ -29,4 +29,6 @@ _final: prev: {
|
||||||
|
|
||||||
pds = prev.pkgs.callPackage ../pkgs/pds { };
|
pds = prev.pkgs.callPackage ../pkgs/pds { };
|
||||||
pdsadmin = prev.pkgs.callPackage ../pkgs/pdsadmin { };
|
pdsadmin = prev.pkgs.callPackage ../pkgs/pdsadmin { };
|
||||||
|
|
||||||
|
ghostty = inputs.ghostty.packages.${prev.system}.ghostty;
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,6 +68,86 @@ in
|
||||||
server = false;
|
server = false;
|
||||||
fontSize = 16;
|
fontSize = 16;
|
||||||
};
|
};
|
||||||
|
ghostty = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
# font-family = "Iosevka NF";
|
||||||
|
# font-size = 16;
|
||||||
|
# theme = "catppuccin-mocha";
|
||||||
|
# background-opacity = 0.9;
|
||||||
|
# keybind = [
|
||||||
|
# "ctrl+comma=open_config"
|
||||||
|
# "ctrl+shift+comma=reload_config"
|
||||||
|
# "ctrl+shift+q=quit"
|
||||||
|
# "ctrl+enter=toggle_fullscreen"
|
||||||
|
|
||||||
|
# "ctrl+shift+v=paste_from_clipboard"
|
||||||
|
# "shift+insert=paste_from_selection"
|
||||||
|
# "ctrl+shift+a=select_all"
|
||||||
|
# "shift+up=adjust_selection:up"
|
||||||
|
# "shift+right=adjust_selection:right"
|
||||||
|
# "shift+down=adjust_selection:down"
|
||||||
|
# "shift+left=adjust_selection:left"
|
||||||
|
|
||||||
|
# "alt+one=goto_tab:1"
|
||||||
|
# "alt+two=goto_tab:2"
|
||||||
|
# "alt+three=goto_tab:3"
|
||||||
|
# "alt+four=goto_tab:4"
|
||||||
|
# "alt+five=goto_tab:5"
|
||||||
|
# "alt+six=goto_tab:6"
|
||||||
|
# "alt+seven=goto_tab:7"
|
||||||
|
# "alt+eight=goto_tab:8"
|
||||||
|
# "alt+nine=goto_tab:9"
|
||||||
|
|
||||||
|
# "ctrl+minus=decrease_font_size:1"
|
||||||
|
# "ctrl+equal=increase_font_size:1"
|
||||||
|
# "ctrl+plus=increase_font_size:1"
|
||||||
|
# "ctrl+zero=reset_font_size"
|
||||||
|
|
||||||
|
# "ctrl+shift+n=new_window"
|
||||||
|
# "ctrl+shift+t=new_tab"
|
||||||
|
# "ctrl+shift+o=new_split:right"
|
||||||
|
# "ctrl+shift+e=new_split:down"
|
||||||
|
# "ctrl+shift+c=copy_to_clipboard"
|
||||||
|
|
||||||
|
# "ctrl+shift+tab=previous_tab"
|
||||||
|
# "ctrl+shift+left=previous_tab"
|
||||||
|
# "ctrl+page_up=previous_tab"
|
||||||
|
# "ctrl+tab=next_tab"
|
||||||
|
# "ctrl+page_down=next_tab"
|
||||||
|
# "ctrl+shift+right=next_tab"
|
||||||
|
|
||||||
|
# "super+ctrl+right_bracket=goto_split:next"
|
||||||
|
# "super+ctrl+left_bracket=goto_split:previous"
|
||||||
|
# "ctrl+alt+up=goto_split:top"
|
||||||
|
# "ctrl+alt+right=goto_split:right"
|
||||||
|
# "ctrl+alt+down=goto_split:bottom"
|
||||||
|
# "ctrl+alt+left=goto_split:left"
|
||||||
|
|
||||||
|
# "super+ctrl+shift+up=resize_split:up,10"
|
||||||
|
# "super+ctrl+shift+right=resize_split:right,10"
|
||||||
|
# "super+ctrl+shift+down=resize_split:down,10"
|
||||||
|
# "super+ctrl+shift+left=resize_split:left,10"
|
||||||
|
# "super+ctrl+shift+equal=equalize_splits"
|
||||||
|
|
||||||
|
# "ctrl+shift+page_down=jump_to_prompt:1"
|
||||||
|
# "ctrl+shift+page_up=jump_to_prompt:-1"
|
||||||
|
|
||||||
|
# "ctrl+alt+shift+j=write_scrollback_file:open"
|
||||||
|
# "ctrl+shift+w=close_surface"
|
||||||
|
|
||||||
|
# "shift+page_up=scroll_page_up"
|
||||||
|
# "shift+home=scroll_to_top"
|
||||||
|
# "shift+end=scroll_to_bottom"
|
||||||
|
# "shift+page_down=scroll_page_down"
|
||||||
|
# "ctrl+shift+j=write_scrollback_file:paste"
|
||||||
|
# "alt+f4=close_window"
|
||||||
|
# "ctrl+shift+enter=toggle_split_zoom"
|
||||||
|
# "ctrl+shift+i=inspector:toggle"
|
||||||
|
# ];
|
||||||
|
# window-decoration = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
name = "Erwin Boskma";
|
name = "Erwin Boskma";
|
||||||
|
@ -245,7 +325,7 @@ in
|
||||||
easyeffects
|
easyeffects
|
||||||
fd
|
fd
|
||||||
ffmpeg-full
|
ffmpeg-full
|
||||||
inputs.ghostty.packages.${pkgs.system}.ghostty
|
# inputs.ghostty.packages.${pkgs.system}.ghostty
|
||||||
icemon
|
icemon
|
||||||
imagemagick
|
imagemagick
|
||||||
(imv.override {
|
(imv.override {
|
||||||
|
|
Loading…
Reference in a new issue