feat: add ghostty-terminfo package, set GNOME default terminal, some initial work on setting up nixos-containers in beefcake
Some checks failed
/ check (push) Has been cancelled

This commit is contained in:
Daniel Flanagan 2025-03-18 20:08:58 -05:00
parent 878129d2c9
commit b84a24ec17
6 changed files with 51 additions and 5 deletions

View file

@ -453,6 +453,9 @@ in
screensaver = [ "<Shift><Control><Super>l" ]; # lock screen
mic-mute = [ "<Shift><Super>v" ];
};
"org/gnome/desktop/default-applications/terminal" = {
exec = "ghostty";
};
"org/gnome/desktop/peripherals/touchpad" = {
disable-while-typing = false;
};

View file

@ -90,9 +90,12 @@
system.configurationRevision = toString (
self.shortRev or self.dirtyShortRev or self.lastModified or "unknown"
);
environment.etc = {
"lytedev/rev".text = config.system.configurationRevision;
"lytedev/lastModified".text = toString (self.lastModified or "unknown");
environment = {
systemPackages = with pkgs; [ ghostty-terminfo ];
etc = {
"lytedev/rev".text = config.system.configurationRevision;
"lytedev/lastModified".text = toString (self.lastModified or "unknown");
};
};
lyte.shell.enable = lib.mkDefault true;

View file

@ -6,7 +6,6 @@
}:
{
config = lib.mkIf config.services.xserver.desktopManager.gnome.enable {
services = {
xserver = {
enable = true;

View file

@ -12,4 +12,5 @@ in
};
installer = pkgs.callPackage ./installer.nix { };
ghostty-terminfo = pkgs.callPackage ./ghostty-terminfo.nix { };
}

View file

@ -0,0 +1,17 @@
{
pkgs,
ghostty,
...
}:
pkgs.stdenvNoCC.mkDerivation {
inherit (ghostty) version;
pname = "${ghostty.pname}-terminfo";
buildInputs = [ ghostty ];
src = ghostty;
installPhase = ''
mkdir -p "$out/share/"
cp -r "$src/share/terminfo" "$out/share/"
'';
}

View file

@ -20,7 +20,30 @@
}:
{
system.stateVersion = "24.05";
networking.hostName = "beefcake";
networking = {
nat = {
# for NAT'ing to nixos-containers
enable = true;
internalInterfaces = [ "ve-+" ];
externalInterface = "eno1";
};
# bridges.br0.interfaces = [ "eno1" ]; # Adjust interface accordingly
# Get bridge-ip with DHCP
# useDHCP = false;
# interfaces."br0".useDHCP = true;
# Set bridge-ip static
# interfaces."br0".ipv4.addresses = [{
# address = "10.233.2.0";
# prefixLength = 24;
# }];
# defaultGateway = "192.168.100.1";
# nameservers = [ "192.168.100.1" ];
networkmanager.unmanaged = [ "interface-name:ve-*" ];
hostName = "beefcake";
};
boot = {
zfs = {