Compare commits

...

3 commits

Author SHA1 Message Date
a742bdc12a
Initial ghostty module 2024-12-15 14:58:13 +01:00
e529129153
Update: flake.lock
Flake lock file updates:

• Updated input 'disko':
    'github:nix-community/disko/785c1e02c7e465375df971949b8dcbde9ec362e5?narHash=sha256-8dupm9GfK%2BBowGdQd7EHK5V61nneLfr9xR6sc5vtDi0%3D' (2024-12-02)
  → 'github:nix-community/disko/0f31ad735e784315a22d9899d3ba24340ce64220?narHash=sha256-NghuiWXx6Q3gwLiudiNwDpYQ1CPEUK7J%2Bf9dWREN8KA%3D' (2024-12-12)
• Updated input 'home-manager':
    'github:nix-community/home-manager/6e5b2d9e8014b5572e3367937a329e7053458d34?narHash=sha256-CN6q6iCzxI1gkNyk4xLdwaMKi10r7n%2BaJkRzWj8PXwQ%3D' (2024-12-11)
  → 'github:nix-community/home-manager/3066cc58f552421a2c5414e78407fa5603405b1e?narHash=sha256-e9YAMReFV1fDPcZLFC2pa4k/8TloSXeX0z2VysNMAoA%3D' (2024-12-12)
• Updated input 'microvm':
    'github:astro/microvm.nix/870cb181719aa12baf478d7cde6068ec7ed144ae?narHash=sha256-CeYsC8J2dNiV2FCQOxK1oZ/jNpOF2io7aCEFHmfi95U%3D' (2024-12-10)
  → 'github:astro/microvm.nix/3910e65c3d92c82ea41ab295c66df4c0b4f9e7b3?narHash=sha256-51bhaMe8BZuNAStUHvo07nDO72wmw8PAqkSYH4U31Yo%3D' (2024-12-12)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/a73246e2eef4c6ed172979932bc80e1404ba2d56?narHash=sha256-463SNPWmz46iLzJKRzO3Q2b0Aurff3U1n0nYItxq7jU%3D' (2024-12-09)
  → 'github:nixos/nixpkgs/5d67ea6b4b63378b9c13be21e2ec9d1afc921713?narHash=sha256-Pj39hSoUA86ZePPF/UXiYHHM7hMIkios8TYG29kQT4g%3D' (2024-12-11)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/f7f4c59ccdf1bec3f1547d27398e9589aa94e3e8?narHash=sha256-sPEKtSaZk2CtfF9cdhtbY93S6qGq%2Bd2PKI1fcoDfDaI%3D' (2024-12-12)
  → 'github:oxalica/rust-overlay/1f56a5c88e4dcaa0ab1ba04c4bc5a977cff840b2?narHash=sha256-fpSFuiW%2BO2L0ru2GrXBS0wcAYV9%2ByDE0Gf800UsWutY%3D' (2024-12-13)
2024-12-13 11:12:03 +01:00
c955c8726d
Fix starship config 2024-12-13 10:55:10 +01:00
7 changed files with 155 additions and 21 deletions

View file

@ -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": {

View file

@ -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: {

View 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; };
};
};
}

View file

@ -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;
@ -165,13 +170,13 @@ in
' '
''; '';
when = "jj root"; when = "jj root";
symbol = "jj"; symbol = "jj ";
}; };
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." ""
''; '';
}; };

View file

@ -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"; } ];

View file

@ -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;
} }

View file

@ -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 {