Compare commits

...

3 commits

Author SHA1 Message Date
Jo
7c225396f0 👷 Lower CI pipeline schedule for testing purposes 2025-03-26 13:21:07 +01:00
Jo
96004daf1b Add Zed home module 2025-03-26 09:19:49 +01:00
Jo
e826f17c22 👷🚧 Add "update-dependencies" workflow 2025-03-26 09:18:07 +01:00
5 changed files with 103 additions and 46 deletions
.github/workflows
flake.lock
homes/x86_64-linux/jo@puzzlevision
modules/home/apps/zed
systems/x86_64-linux/puzzlevision

View file

@ -0,0 +1,14 @@
name: update-dependencies
on:
workflow_dispatch:
schedule:
- cron: "5 * * * *" # daily at 1 am EST/2 am EDT
jobs:
update-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v12
- id: update
uses: DeterminateSystems/update-flake-lock@v23

36
flake.lock generated
View file

@ -7,11 +7,11 @@
]
},
"locked": {
"lastModified": 1742098205,
"narHash": "sha256-gCkVTohFTyq/Pi3dlUhv1uA5Kqbalf45nLmUDRluULE=",
"lastModified": 1742599566,
"narHash": "sha256-xr6ntmiUPXSh9o9mJ7og9vxALMQs1EQhIhWUAO2D1M0=",
"owner": "catppuccin",
"repo": "nix",
"rev": "d84df59c7aa29cebaff9f190d19c24e7ddacd773",
"rev": "5e303e8d7e251868fa79f83bbda69da90aa62402",
"type": "github"
},
"original": {
@ -117,11 +117,11 @@
"zon2nix": "zon2nix"
},
"locked": {
"lastModified": 1742134710,
"narHash": "sha256-rFIJssnDEdaINRgg6ZApfs+2d6B0pjXMScSeRMcQJZE=",
"lastModified": 1742941134,
"narHash": "sha256-sBbZcxiiv4BYBU/PdpqYZcG8HTu5BTMsRKqv2celzEQ=",
"owner": "ghostty-org",
"repo": "ghostty",
"rev": "c344c320eb93d800da36c035790530be0a2d618f",
"rev": "bcff4e18f430e0e34412f631215f196c9e0c885b",
"type": "github"
},
"original": {
@ -132,11 +132,11 @@
},
"hardware": {
"locked": {
"lastModified": 1742217307,
"narHash": "sha256-3fwpN7KN226ghLlpO9TR0/WpgQOmOj1e8bieUxpIYSk=",
"lastModified": 1742806253,
"narHash": "sha256-zvQ4GsCJT6MTOzPKLmlFyM+lxo0JGQ0cSFaZSACmWfY=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "4f4d97d7b7be387286cc9c988760a7ebaa5be1f1",
"rev": "ecaa2d911e77c265c2a5bac8b583c40b0f151726",
"type": "github"
},
"original": {
@ -153,11 +153,11 @@
]
},
"locked": {
"lastModified": 1741955947,
"narHash": "sha256-2lbURKclgKqBNm7hVRtWh0A7NrdsibD0EaWhahUVhhY=",
"lastModified": 1742937932,
"narHash": "sha256-OrLDssbhEZvbHMljgT2mFNWacghm2HJBDTWlqTJNhO8=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "4e12151c9e014e2449e0beca2c0e9534b96a26b4",
"rev": "f565da89e759ebf57b236510aa955b8a2d41c779",
"type": "github"
},
"original": {
@ -184,11 +184,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1742206328,
"narHash": "sha256-q+AQ///oMnyyFzzF4H9ShSRENt3Zsx37jTiRkLkXXE0=",
"lastModified": 1742800061,
"narHash": "sha256-oDJGK1UMArK52vcW9S5S2apeec4rbfNELgc50LqiPNs=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "096478927c360bc18ea80c8274f013709cf7bdcd",
"rev": "1750f3c1c89488e2ffdd47cab9d05454dddfb734",
"type": "github"
},
"original": {
@ -271,11 +271,11 @@
]
},
"locked": {
"lastModified": 1742209060,
"narHash": "sha256-47/1bOPBGhmAegF06nxLN15d/MClCAkk8s/+WOhJJAM=",
"lastModified": 1742700801,
"narHash": "sha256-ZGlpUDsuBdeZeTNgoMv+aw0ByXT2J3wkYw9kJwkAS4M=",
"owner": "Mic92",
"repo": "sops-nix",
"rev": "b33837ae3cfa012b65810891bebbee71fa4c0658",
"rev": "67566fe68a8bed2a7b1175fdfb0697ed22ae8852",
"type": "github"
},
"original": {

View file

@ -6,6 +6,7 @@
apps.nushell.enable = false;
apps.vscodium.enable = true;
apps.zed.enable = true;
};
home.file."~/.config/Yubico/u2f_keys".text = ''

View file

@ -0,0 +1,70 @@
{
lib,
pkgs,
config,
namespace,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.${namespace}.apps.zed;
in {
options.${namespace}.apps.zed = {
enable = mkEnableOption "zed, the graphical editor from the future";
};
config = mkIf cfg.enable {
sops.secrets.wakatime-cfg = {
format = "binary";
sopsFile = lib.snowfall.fs.get-file "secrets/wakatime.cfg";
path = "/home/jo/.wakatime.cfg";
};
home.packages = with pkgs; [
alejandra
];
programs.zed-editor = {
enable = true;
extensions = ["nix" "catppuccin" "wakatime" "discord_presence"];
userSettings = {
icon_theme = "Catppuccin Macchiato";
theme = {
dark = "Catppuccin Macchiato (blue)";
light = "Catppuccin Macchiato (blue)";
};
### Disable telemetry
telemetry = {
metrics = false;
};
### Disable certain AI features
features = {
copilot = false;
};
### Language specific configurations
languages = {
### Nix language
Nix = {
language_servers = [ "nixd" "!nil" ];
};
};
### LSP configurations
lsp = {
nixd = {
initialization_options = {
formatting = {
command = ["alejandra" "--quiet" "--"];
};
};
};
};
};
extraPackages = with pkgs; [ nixd ];
};
};
}

View file

@ -12,34 +12,6 @@
inputs.hardware.nixosModules.common-pc-laptop-ssd
];
nixpkgs.overlays = [
(final: prev: {
mutter = prev.mutter.overrideAttrs (oldAttrs: {
# GNOME dynamic triple buffering
# See https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1441
src = final.fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "vanvugt";
repo = "mutter";
rev = "triple-buffering-v4-47";
hash = "sha256-6n5HSbocU8QDwuhBvhRuvkUE4NflUiUKE0QQ5DJEzwI=";
};
preConfigure = let
gvdb = final.fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = "gvdb";
rev = "2b42fc75f09dbe1cd1057580b5782b08f2dcb400";
hash = "sha256-CIdEwRbtxWCwgTb5HYHrixXi+G+qeE1APRaUeka3NWk=";
};
in ''
cp -a "${gvdb}" ./subprojects/gvdb
'';
});
})
];
# Configure Sops
sops.defaultSopsFile = lib.snowfall.fs.get-file "secrets/default.yaml";
sops.age.keyFile = "/var/lib/sops-nix/key.txt"; # The main AGE key is expected in this location, it is only needed for this system.