Skip to content

Commit

Permalink
Convert over cadmium host to blueprint
Browse files Browse the repository at this point in the history
  • Loading branch information
giodamelio committed Feb 7, 2025
1 parent f230598 commit 36bf3d0
Show file tree
Hide file tree
Showing 27 changed files with 48 additions and 69 deletions.
5 changes: 0 additions & 5 deletions nix/home-modules/default.nix

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
inputs,
homelab,
ezModules,
...
}: {
{ inputs, flake, ... }: let
homelab = builtins.fromTOML (builtins.readFile ../../../homelab.toml);
in {
imports = [
inputs.colmena.nixosModules.deploymentOptions
inputs.home-manager.nixosModules.home-manager
Expand All @@ -23,23 +20,21 @@
openssh.authorizedKeys.keys = homelab.ssh_keys;
};
programs.zsh.enable = true;

home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
})

# Basic packages I want on every system
ezModules.basic-packages
ezModules.basic-packages-desktop
ezModules.basic-settings
flake.nixosModules.basic-packages
flake.nixosModules.basic-packages-desktop
flake.nixosModules.basic-settings

# Setup user programs/services
ezModules.modern-coreutils-replacements
ezModules.programs-atuind
flake.nixosModules.modern-coreutils-replacements
flake.nixosModules.programs-atuind
flake.nixosModules.monitoring
./3d-printing.nix

# Autosnapshot ZFS and send to NAS
ezModules.zfs-backup
flake.nixosModules.zfs-backup
(_: {
gio.services.zfs_backup = {
enable = true;
Expand All @@ -53,10 +48,10 @@
})

# Software Development tools
ezModules.software-development
flake.nixosModules.software-development

# Easy key rebinding
ezModules.keyd
flake.nixosModules.keyd

({pkgs, ...}: {
programs.sway = {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
pkgs,
ezModules,
flake,
...
}: {
imports = [
ezModules.git
ezModules.neovim
ezModules.wezterm
ezModules.qutebrowser
ezModules.zellij
ezModules.starship
ezModules.zsh
ezModules.nushell
ezModules.hyprland
ezModules.sway
ezModules.waybar
ezModules.nix-index
ezModules.syncthing
flake.homeModules.git
flake.homeModules.neovim
flake.homeModules.wezterm
flake.homeModules.qutebrowser
flake.homeModules.zellij
flake.homeModules.starship
flake.homeModules.zsh
flake.homeModules.nushell
flake.homeModules.hyprland
flake.homeModules.sway
flake.homeModules.waybar
flake.homeModules.nix-index
flake.homeModules.syncthing
];

home = {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
pkgs,
self,
flake,
...
}: let
myQutebrowser = self.packages.${pkgs.stdenv.system}.qutebrowser-tree-tabs;
myQutebrowser = flake.packages.${pkgs.stdenv.system}.qutebrowser-tree-tabs;
in {
programs.qutebrowser = {
enable = true;
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion nix/home-modules/sway.nix → nix/modules/home/sway.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
perSystem,
pkgs,
lib,
...
Expand All @@ -22,7 +23,7 @@ in {
menu = "${pkgs.wofi}/bin/wofi --show=drun --allow-images";

# Use Wezterm as our terminal
terminal = "${pkgs.wezterm}/bin/wezterm";
terminal = "${perSystem.self.wezterm-patched}/bin/wezterm";

# Replace the built in bars with Waybar
bars = [];
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion nix/nixos-modules/keyd.nix → nix/modules/nixos/keyd.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
_: {
{
services.keyd = {
enable = true;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
pkgs,
lib,
...
}: {
{ pkgs, lib, ... }: {
home-manager.users.giodamelio = _:
lib.mkMerge [
# Launch Daemon for SystemD
Expand Down
File renamed without changes.
9 changes: 0 additions & 9 deletions nix/nixos-modules/default.nix

This file was deleted.

14 changes: 0 additions & 14 deletions nix/overlays/wezterm.nix

This file was deleted.

13 changes: 13 additions & 0 deletions nix/packages/wezterm-patched.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{ pkgs, ... }:
pkgs.wezterm.overrideAttrs (_: prev: {
patches =
prev.patches
or []
++ [
(pkgs.fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/wez/wezterm/pull/6508.patch";
sha256 = "sha256-eMpg206tUw8m0Sz+3Ox7HQnejPsWp0VHVw169/Rt4do=";
})
.outPath
];
})
4 changes: 3 additions & 1 deletion src/homeModules/wezterm.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
_: _: {
{ perSystem }: {
programs.wezterm = {
enable = true;
enableZshIntegration = true;

package = perSystem.self.wezterm-patched;

extraConfig = ''
return {
font = wezterm.font("JetBrainsMono Nerd Font"),
Expand Down

0 comments on commit 36bf3d0

Please sign in to comment.