ghosty in official channels + input rename

This commit is contained in:
Danilo Reyes 2025-01-09 13:21:30 -06:00
parent 0e2b4b226d
commit cd99711e01
2 changed files with 80 additions and 43 deletions

View File

@ -2,7 +2,8 @@
description = "JawZ NixOS flake setup"; description = "JawZ NixOS flake setup";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
nixpkgs-paint.url = "github:nixos/nixpkgs?ref=nixos-24.05"; nixpkgs5.url = "github:nixos/nixpkgs?ref=nixos-24.05";
nixpkgs11.url = "github:nixos/nixpkgs?ref=nixos-24.11";
ucodenix.url = "github:e-tho/ucodenix"; ucodenix.url = "github:e-tho/ucodenix";
doom-emacs.url = "github:marienz/nix-doom-emacs-unstraightened"; doom-emacs.url = "github:marienz/nix-doom-emacs-unstraightened";
ghostty.url = "github:ghostty-org/ghostty"; ghostty.url = "github:ghostty-org/ghostty";
@ -48,7 +49,8 @@
config.allowUnfree = true; config.allowUnfree = true;
}; };
pkgs = mkpkgs inputs.nixpkgs; pkgs = mkpkgs inputs.nixpkgs;
pkgsP = mkpkgs inputs.nixpkgs-paint; pkgs5 = mkpkgs inputs.nixpkgs5;
pkgs11 = mkpkgs inputs.nixpkgs11;
lib = inputs.nixpkgs.lib // inputs.home-manager.lib; lib = inputs.nixpkgs.lib // inputs.home-manager.lib;
createConfig = createConfig =
name: name:
@ -60,7 +62,7 @@
modules = [ modules = [
{ {
nixpkgs.overlays = [ nixpkgs.overlays = [
(import ./overlay.nix { inherit pkgs pkgsP; }) (import ./overlay.nix { inherit pkgs pkgs5 pkgs11; })
inputs.doom-emacs.overlays.default inputs.doom-emacs.overlays.default
]; ];
} }

View File

@ -12,7 +12,43 @@
"resilio/host" = { }; "resilio/host" = { };
"resilio/password" = { }; "resilio/password" = { };
}; };
home-manager.users.jawz.xdg.configFile."jellyfin-rpc/main.json".text = builtins.toJSON { home-manager.users.jawz = {
programs.ghostty = {
enable = true;
package = pkgs.ghostty;
enableBashIntegration = true;
installBatSyntax = true;
installVimSyntax = true;
settings = { };
themes = {
catppuccin-mocha = {
background = "1e1e2e";
cursor-color = "f5e0dc";
foreground = "cdd6f4";
palette = [
"0=#45475a"
"1=#f38ba8"
"2=#a6e3a1"
"3=#f9e2af"
"4=#89b4fa"
"5=#f5c2e7"
"6=#94e2d5"
"7=#bac2de"
"8=#585b70"
"9=#f38ba8"
"10=#a6e3a1"
"11=#f9e2af"
"12=#89b4fa"
"13=#f5c2e7"
"14=#94e2d5"
"15=#a6adc8"
];
selection-background = "353749";
selection-foreground = "cdd6f4";
};
};
};
xdg.configFile."jellyfin-rpc/main.json".text = builtins.toJSON {
jellyfin = { jellyfin = {
url = "https://flix.servidos.lat"; url = "https://flix.servidos.lat";
api_key = "abe7cdf35e5c453a9bceb004f4792b4a"; api_key = "abe7cdf35e5c453a9bceb004f4792b4a";
@ -46,6 +82,7 @@
imgur_images = true; imgur_images = true;
}; };
}; };
};
networking = { networking = {
hostName = "workstation"; hostName = "workstation";
firewall = firewall =
@ -72,16 +109,14 @@
users = { users = {
groups.nixremote.gid = 555; groups.nixremote.gid = 555;
users = { users = {
jawz.packages = jawz.packages = builtins.attrValues {
builtins.attrValues {
inherit (pkgs) inherit (pkgs)
distrobox # install packages from other os distrobox # install packages from other os
gocryptfs # encrypted filesystem! shhh!!! gocryptfs # encrypted filesystem! shhh!!!
torrenttools # create torrent files from the terminal! torrenttools # create torrent files from the terminal!
# vcsi # video thumbnails for torrents, can I replace it with ^? # vcsi # video thumbnails for torrents, can I replace it with ^?
; ;
} };
++ [ inputs.ghostty.packages.x86_64-linux.default ];
nixremote = { nixremote = {
isNormalUser = true; isNormalUser = true;
createHome = true; createHome = true;