From 32781a7290197f7c2ea2aefd855e45422850ed20 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Wed, 26 Mar 2025 01:31:46 -0400 Subject: [PATCH 01/13] add typhon, enable zsh autocomplete Signed-off-by: ahuston-0 --- flake.lock | 40 +++++++++++++++++++++++++++++++ flake.nix | 8 +++++++ systems/palatine-hill/default.nix | 1 + systems/palatine-hill/typhon.nix | 17 +++++++++++++ users/alice/home/zsh.nix | 2 +- 5 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 systems/palatine-hill/typhon.nix diff --git a/flake.lock b/flake.lock index ac61a63..67afa62 100644 --- a/flake.lock +++ b/flake.lock @@ -67,6 +67,21 @@ "type": "github" } }, + "crane": { + "locked": { + "lastModified": 1727316705, + "narHash": "sha256-/mumx8AQ5xFuCJqxCIOFCHTVlxHkMT21idpbgbm/TIE=", + "owner": "ipetkov", + "repo": "crane", + "rev": "5b03654ce046b5167e7b0bccbd8244cb56c16f0e", + "type": "github" + }, + "original": { + "owner": "ipetkov", + "repo": "crane", + "type": "github" + } + }, "firefox-addons": { "inputs": { "flake-utils": [ @@ -552,6 +567,7 @@ "sops-nix": "sops-nix", "stylix": "stylix", "systems": "systems_2", + "typhon": "typhon", "wired-notify": "wired-notify" } }, @@ -770,6 +786,30 @@ "type": "github" } }, + "typhon": { + "inputs": { + "crane": "crane", + "flake-compat": [ + "flake-compat" + ], + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1730373693, + "narHash": "sha256-pDoaV+a3CBmvhYKD/m8k5soQ4kxwzvv2Kh/y7QHCGyU=", + "owner": "typhon-ci", + "repo": "typhon", + "rev": "e4f11b3d7c47c3a584fe565637bcc6e50f3735da", + "type": "github" + }, + "original": { + "owner": "typhon-ci", + "repo": "typhon", + "type": "github" + } + }, "wired-notify": { "inputs": { "flake-parts": [ diff --git a/flake.nix b/flake.nix index dd49709..1f7851c 100644 --- a/flake.nix +++ b/flake.nix @@ -112,6 +112,14 @@ }; }; + typhon = { + url = "github:typhon-ci/typhon"; + inputs = { + flake-compat.follows = "flake-compat"; + nixpkgs.follows = "nixpkgs"; + }; + }; + wired-notify = { url = "github:Toqozz/wired-notify"; inputs = { diff --git a/systems/palatine-hill/default.nix b/systems/palatine-hill/default.nix index d469ee0..72ac4f7 100644 --- a/systems/palatine-hill/default.nix +++ b/systems/palatine-hill/default.nix @@ -3,5 +3,6 @@ users = [ "alice" ]; modules = [ # inputs.attic.nixosModules.atticd + inputs.typhon.nixosModules.default ]; } diff --git a/systems/palatine-hill/typhon.nix b/systems/palatine-hill/typhon.nix new file mode 100644 index 0000000..161ffdd --- /dev/null +++ b/systems/palatine-hill/typhon.nix @@ -0,0 +1,17 @@ +{ config, ... }: + +let + vars = import ../vars.nix; + typhon_path = vars.primary_typhon; +in +{ + services.typhon = { + enable = true; + hashedPasswordFile = config.sops.secrets."typhon/hashedPassword".path; + home = typhon_path; + }; + + sops.secrets = { + "typhon/hashedPassword".owner = "root"; + }; +} diff --git a/users/alice/home/zsh.nix b/users/alice/home/zsh.nix index 7caf892..c75399d 100644 --- a/users/alice/home/zsh.nix +++ b/users/alice/home/zsh.nix @@ -4,7 +4,7 @@ programs.zsh = { enable = true; - # autosuggestion.enable = true; + autosuggestion.enable = true; oh-my-zsh = { enable = true; plugins = [ -- 2.48.1 From 5364ceca586f420bdbd206c1179befcdfb4b5f26 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Wed, 26 Mar 2025 01:48:17 -0400 Subject: [PATCH 02/13] add hashedPassword to sops --- systems/palatine-hill/secrets.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/systems/palatine-hill/secrets.yaml b/systems/palatine-hill/secrets.yaml index d808323..31f68bc 100644 --- a/systems/palatine-hill/secrets.yaml +++ b/systems/palatine-hill/secrets.yaml @@ -27,6 +27,8 @@ acme: dnsimple: ENC[AES256_GCM,data:37FKyBibFtXZgI4EduJQ0z8F+shBc5Q6YlLa3YkVPh9XuJVS20eybi75bfJxiozcZ9d+YRaqcbkBQCSdFOCotDU=,iv:oq3JjqbfAm2C4jcL1lvUb2EOmnwlR07vPoO8H0BmydQ=,tag:E3NO/jMElL6Q817666gIyg==,type:str] server-validation: webhook: ENC[AES256_GCM,data:Lwqy4UhyFutpXjai7EJPKp8MDlI+ayDna4T8jluvC6qkeJ7o1UaaDCOsgLy4Fw7LC77tXhJtkcmep9w37JaiHp2CoDOfy2iAaq8o9CCSi/a0zqMJx+HdZYZNemvmpc6E/be0K+JDrFZLbjr3unSpCidQ3whccC6XyY013R12swN3bFZIu1gtzXCgUZ4U,iv:pVbrRwH3ziu4+R5BfimPV7N71QmyerJEc9M5K4eofOc=,tag:zNrCXrIioQWPEPVz/wMDpQ==,type:str] +typhon: + hashedPassword: ENC[AES256_GCM,data:gMyY8gxUn3HzycQRu2cminqRFWghqWcjzZzTxAQZ5PJqn604iSwDiVdr7icHB7drJfCAfsE7L4oKRJgxaIAE32043oOkb2T7DDH8y2jxMzqmZCfbvrfMI4wdfRTHGqzxb6X/aZ5ai2rr1Q==,iv:4EsTo/lQld0o9iktDX9gobMlPUCitx1i9wn8EL16sIs=,tag:FgVDRHk2glDwpC/mprrPqQ==,type:str] sops: kms: [] gcp_kms: [] @@ -42,8 +44,8 @@ sops: cXNZWmZqd0R0SmhINExscHBKWmxvblUKEFEQvt/zQFARba4S8vHz/1SoKdKg69At LZ58XQGOmlGbBhPr7EzYQ2XSY4flWbnnD174cmCR8DNFm15DsNA5fw== -----END AGE ENCRYPTED FILE----- - lastmodified: "2025-03-04T04:53:14Z" - mac: ENC[AES256_GCM,data:MCucwVPGRMA/hGYS7mwSppkZAQ3wjHJnyeSvSI8YOOD0Xq7mvkMSvKctFHl6h4Cx3ubRvVHf5j35/NQxb+/VhhCPAHWDbqq9O2N0aWhAeybCu0IjruKrJhs76KsXJnNZ9REQQnS1/TNquuvj9FCoqDnrQcFs7M0KJ5m3eUU2h2k=,iv:ZJGJ8CTA8K5FnoKtbogleksB8wDcZtknO07M07Dmpsc=,tag:GMUXJD4U8KQgy9rvzEAMuw==,type:str] + lastmodified: "2025-03-26T05:47:58Z" + mac: ENC[AES256_GCM,data:ZP9HglMmn9FDv6/vtQAxz/qP76QniPqM6bzMQVvVU/OhDmjuneGKZY7d1Es7LC9o5qmJ+T3Dh3/bkmuRdgdnd2TO6iuvM++DEPxwnoHis+0lbMxv5a6ibzvoXXm2CrL4HPETqLKbLahGJRmDNgnkCEWxAs16zrqe5kgDpD53R5c=,iv:DcCXNGyb41ToV9uSnrnrl0dWiw2pvykM8z86Yk814P4=,tag:T9PFl48qABwBSy7vIhSmLA==,type:str] pgp: - created_at: "2024-11-28T18:56:39Z" enc: |- -- 2.48.1 From 04372341dbeaa6c4092c40eaafcc1eff7ebb9cb3 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Wed, 26 Mar 2025 01:58:43 -0400 Subject: [PATCH 03/13] enable completion --- users/alice/home/zsh.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/users/alice/home/zsh.nix b/users/alice/home/zsh.nix index c75399d..940b742 100644 --- a/users/alice/home/zsh.nix +++ b/users/alice/home/zsh.nix @@ -5,6 +5,7 @@ enable = true; autosuggestion.enable = true; + enableCompletion = true; oh-my-zsh = { enable = true; plugins = [ -- 2.48.1 From 9e820a3cdeb1934c2c4a6cee84eb612f01c261de Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Wed, 26 Mar 2025 02:05:17 -0400 Subject: [PATCH 04/13] add typhon to palatine-hill, fix vars --- systems/palatine-hill/configuration.nix | 3 ++- systems/palatine-hill/typhon.nix | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/systems/palatine-hill/configuration.nix b/systems/palatine-hill/configuration.nix index cd6f03b..0133c24 100644 --- a/systems/palatine-hill/configuration.nix +++ b/systems/palatine-hill/configuration.nix @@ -17,8 +17,9 @@ ./minio.nix ./networking.nix ./nextcloud.nix - ./samba.nix ./postgresql.nix + ./samba.nix + ./typhon.nix ./zfs.nix ]; diff --git a/systems/palatine-hill/typhon.nix b/systems/palatine-hill/typhon.nix index 161ffdd..e8d51c9 100644 --- a/systems/palatine-hill/typhon.nix +++ b/systems/palatine-hill/typhon.nix @@ -1,7 +1,7 @@ { config, ... }: let - vars = import ../vars.nix; + vars = import ./vars.nix; typhon_path = vars.primary_typhon; in { -- 2.48.1 From 50765424f55f45c64dec5b6815e1f5338f9c1765 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Wed, 26 Mar 2025 02:06:35 -0400 Subject: [PATCH 05/13] add typhon var --- systems/palatine-hill/vars.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/systems/palatine-hill/vars.nix b/systems/palatine-hill/vars.nix index 9b06ade..ed72ea0 100644 --- a/systems/palatine-hill/vars.nix +++ b/systems/palatine-hill/vars.nix @@ -17,4 +17,5 @@ rec { primary_nextcloud = "${zfs_primary}/nextcloud"; primary_redis = "${zfs_primary}/redis"; primary_torr = "${zfs_primary}/torr"; + primary_typhon = "${zfs_primary}/typhon"; } -- 2.48.1 From de8ec7cfe66dccf767e46620170c535c78065606 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Wed, 26 Mar 2025 02:07:39 -0400 Subject: [PATCH 06/13] disable hydra --- systems/palatine-hill/configuration.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systems/palatine-hill/configuration.nix b/systems/palatine-hill/configuration.nix index 0133c24..bd0ecc0 100644 --- a/systems/palatine-hill/configuration.nix +++ b/systems/palatine-hill/configuration.nix @@ -13,7 +13,7 @@ ./firewall.nix ./haproxy ./hardware-changes.nix - ./hydra.nix + # ./hydra.nix ./minio.nix ./networking.nix ./nextcloud.nix -- 2.48.1 From 3e7cd3b59d9a11e34abc8eae245b0977b046ad5a Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Wed, 26 Mar 2025 02:43:56 -0400 Subject: [PATCH 07/13] re-enable hydra --- flake.lock | 116 ++++++++++++++++-------- flake.nix | 15 ++- hydra/jobsets.nix | 39 ++++---- hydra/spec.json | 13 +-- systems/palatine-hill/configuration.nix | 3 +- systems/palatine-hill/default.nix | 1 - systems/palatine-hill/hydra.nix | 4 +- systems/palatine-hill/vars.nix | 1 - 8 files changed, 109 insertions(+), 83 deletions(-) diff --git a/flake.lock b/flake.lock index 67afa62..e6a0c6b 100644 --- a/flake.lock +++ b/flake.lock @@ -67,21 +67,6 @@ "type": "github" } }, - "crane": { - "locked": { - "lastModified": 1727316705, - "narHash": "sha256-/mumx8AQ5xFuCJqxCIOFCHTVlxHkMT21idpbgbm/TIE=", - "owner": "ipetkov", - "repo": "crane", - "rev": "5b03654ce046b5167e7b0bccbd8244cb56c16f0e", - "type": "github" - }, - "original": { - "owner": "ipetkov", - "repo": "crane", - "type": "github" - } - }, "firefox-addons": { "inputs": { "flake-utils": [ @@ -340,6 +325,28 @@ "type": "github" } }, + "hydra": { + "inputs": { + "nix": "nix", + "nix-eval-jobs": "nix-eval-jobs", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1739907437, + "narHash": "sha256-yBLVNhbGM/WmHUEa0mCw7mFfa5blxWZGlqP6F6PgQnY=", + "owner": "fx-chun", + "repo": "hydra", + "rev": "18c0d762109549351ecf622cde34514351a72492", + "type": "github" + }, + "original": { + "owner": "fx-chun", + "repo": "hydra", + "type": "github" + } + }, "hyprland-contrib": { "inputs": { "nixpkgs": [ @@ -360,6 +367,59 @@ "type": "github" } }, + "nix": { + "inputs": { + "flake-compat": [ + "hydra" + ], + "flake-parts": [ + "hydra" + ], + "git-hooks-nix": [ + "hydra" + ], + "nixpkgs": [ + "hydra", + "nixpkgs" + ], + "nixpkgs-23-11": [ + "hydra" + ], + "nixpkgs-regression": [ + "hydra" + ] + }, + "locked": { + "lastModified": 1739899400, + "narHash": "sha256-q/RgA4bB7zWai4oPySq9mch7qH14IEeom2P64SXdqHs=", + "owner": "NixOS", + "repo": "nix", + "rev": "e310c19a1aeb1ce1ed4d41d5ab2d02db596e0918", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "2.26-maintenance", + "repo": "nix", + "type": "github" + } + }, + "nix-eval-jobs": { + "flake": false, + "locked": { + "lastModified": 1739500569, + "narHash": "sha256-3wIReAqdTALv39gkWXLMZQvHyBOc3yPkWT2ZsItxedY=", + "owner": "nix-community", + "repo": "nix-eval-jobs", + "rev": "4b392b284877d203ae262e16af269f702df036bc", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nix-eval-jobs", + "type": "github" + } + }, "nix-index-database": { "inputs": { "nixpkgs": [ @@ -555,6 +615,7 @@ "flake-parts": "flake-parts", "flake-utils": "flake-utils", "home-manager": "home-manager", + "hydra": "hydra", "hyprland-contrib": "hyprland-contrib", "nix-index-database": "nix-index-database", "nixos-generators": "nixos-generators", @@ -567,7 +628,6 @@ "sops-nix": "sops-nix", "stylix": "stylix", "systems": "systems_2", - "typhon": "typhon", "wired-notify": "wired-notify" } }, @@ -786,30 +846,6 @@ "type": "github" } }, - "typhon": { - "inputs": { - "crane": "crane", - "flake-compat": [ - "flake-compat" - ], - "nixpkgs": [ - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1730373693, - "narHash": "sha256-pDoaV+a3CBmvhYKD/m8k5soQ4kxwzvv2Kh/y7QHCGyU=", - "owner": "typhon-ci", - "repo": "typhon", - "rev": "e4f11b3d7c47c3a584fe565637bcc6e50f3735da", - "type": "github" - }, - "original": { - "owner": "typhon-ci", - "repo": "typhon", - "type": "github" - } - }, "wired-notify": { "inputs": { "flake-parts": [ diff --git a/flake.nix b/flake.nix index 1f7851c..5526b55 100644 --- a/flake.nix +++ b/flake.nix @@ -58,6 +58,13 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + hydra = { + url = "github:fx-chun/hydra"; + inputs = { + nixpkgs.follows = "nixpkgs"; + }; + }; + hyprland-contrib = { url = "github:hyprwm/contrib"; inputs.nixpkgs.follows = "nixpkgs"; @@ -112,14 +119,6 @@ }; }; - typhon = { - url = "github:typhon-ci/typhon"; - inputs = { - flake-compat.follows = "flake-compat"; - nixpkgs.follows = "nixpkgs"; - }; - }; - wired-notify = { url = "github:Toqozz/wired-notify"; inputs = { diff --git a/hydra/jobsets.nix b/hydra/jobsets.nix index 96eaa9e..f1a4cfa 100644 --- a/hydra/jobsets.nix +++ b/hydra/jobsets.nix @@ -1,4 +1,4 @@ -{ pulls, branches, ... }: +{ pulls, ... }: let # create the json spec for the jobset makeSpec = @@ -18,8 +18,7 @@ let }; prs = readJSONFile pulls; - refs = readJSONFile branches; - repo = "RAD-Development/nix-dotfiles"; + # refs = readJSONFile branches; # template for creating a job makeJob = @@ -44,27 +43,27 @@ let emailoverride = ""; }; - # Create a hydra job for a branch - jobOfRef = - name: - { ref, ... }: - if ((builtins.match "^refs/heads/(.*)$" ref) == null) then - null - else - { - name = builtins.replaceStrings [ "/" ] [ "-" ] "branch-${name}"; - value = makeJob { - description = "Branch ${name}"; - flake = "git+ssh://git@github.com/${repo}?ref=${ref}"; - }; - }; + # # Create a hydra job for a branch + # jobOfRef = + # name: + # { ref, ... }: + # if ((builtins.match "^refs/heads/(.*)$" ref) == null) then + # null + # else + # { + # name = builtins.replaceStrings [ "/" ] [ "-" ] "branch-${name}"; + # value = makeJob { + # description = "Branch ${name}"; + # flake = "git+ssh://git@github.com/${repo}?ref=${ref}"; + # }; + # }; # Create a hydra job for a PR jobOfPR = id: info: { name = if info.draft then "draft-${id}" else "pr-${id}"; value = makeJob { description = "PR ${id}: ${info.title}"; - flake = "git+ssh://git@github.com/${info.head.repo.full_name}?ref=${info.head.ref}"; + flake = "git+ssh://gitea@nayeonie.com:2222/${info.head.repo.full_name}?ref=${info.head.ref}"; }; }; @@ -74,12 +73,12 @@ let # wrapper function for reading json from file readJSONFile = f: builtins.fromJSON (builtins.readFile f); # remove null values from a set, in-case of branches that don't exist - mapFilter = f: l: builtins.filter (x: (x != null)) (map f l); + # mapFilter = f: l: builtins.filter (x: (x != null)) (map f l); # Create job set from PRs and branches jobs = makeSpec ( builtins.listToAttrs (map ({ name, value }: jobOfPR name value) (attrsToList prs)) - // builtins.listToAttrs (mapFilter ({ name, value }: jobOfRef name value) (attrsToList refs)) + # // builtins.listToAttrs (mapFilter ({ name, value }: jobOfRef name value) (attrsToList refs)) ); in { diff --git a/hydra/spec.json b/hydra/spec.json index 820f346..9cfbea1 100644 --- a/hydra/spec.json +++ b/hydra/spec.json @@ -1,7 +1,7 @@ { "enabled": 1, "hidden": false, - "description": "RAD Development infrastructure", + "description": "ahuston-0's personal server infra", "nixexprinput": "nixexpr", "nixexprpath": "hydra/jobsets.nix", "checkinterval": 60, @@ -12,7 +12,7 @@ "type": 0, "inputs": { "nixexpr": { - "value": "https://github.com/RAD-Development/nix-dotfiles main", + "value": "ssh://gitea@nayeonie.com:2222/ahuston-0/nix-dotfiles.git main", "type": "git", "emailresponsible": false }, @@ -22,13 +22,8 @@ "emailresponsible": false }, "pulls": { - "type": "githubpulls", - "value": "RAD-Development nix-dotfiles", - "emailresponsible": false - }, - "branches": { - "type": "github_refs", - "value": "RAD-Development nix-dotfiles heads -", + "type": "giteapulls", + "value": "nayeonie.com alice nix-dotfiles https", "emailresponsible": false } } diff --git a/systems/palatine-hill/configuration.nix b/systems/palatine-hill/configuration.nix index bd0ecc0..4281bd6 100644 --- a/systems/palatine-hill/configuration.nix +++ b/systems/palatine-hill/configuration.nix @@ -13,13 +13,12 @@ ./firewall.nix ./haproxy ./hardware-changes.nix - # ./hydra.nix + ./hydra.nix ./minio.nix ./networking.nix ./nextcloud.nix ./postgresql.nix ./samba.nix - ./typhon.nix ./zfs.nix ]; diff --git a/systems/palatine-hill/default.nix b/systems/palatine-hill/default.nix index 72ac4f7..d469ee0 100644 --- a/systems/palatine-hill/default.nix +++ b/systems/palatine-hill/default.nix @@ -3,6 +3,5 @@ users = [ "alice" ]; modules = [ # inputs.attic.nixosModules.atticd - inputs.typhon.nixosModules.default ]; } diff --git a/systems/palatine-hill/hydra.nix b/systems/palatine-hill/hydra.nix index 7ad5635..43cabe8 100644 --- a/systems/palatine-hill/hydra.nix +++ b/systems/palatine-hill/hydra.nix @@ -1,7 +1,6 @@ { config, - lib, - pkgs, + inputs, ... }: let @@ -43,6 +42,7 @@ in services = { hydra = { enable = true; + package = inputs.hydra.packages.hydra; hydraURL = "https://hydra.alicehuston.xyz"; smtpHost = "alicehuston.xyz"; notificationSender = "hydra@alicehuston.xyz"; diff --git a/systems/palatine-hill/vars.nix b/systems/palatine-hill/vars.nix index ed72ea0..9b06ade 100644 --- a/systems/palatine-hill/vars.nix +++ b/systems/palatine-hill/vars.nix @@ -17,5 +17,4 @@ rec { primary_nextcloud = "${zfs_primary}/nextcloud"; primary_redis = "${zfs_primary}/redis"; primary_torr = "${zfs_primary}/torr"; - primary_typhon = "${zfs_primary}/typhon"; } -- 2.48.1 From 013862f8368d0d019b5b352a295ff2170f054ac0 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Wed, 26 Mar 2025 02:46:25 -0400 Subject: [PATCH 08/13] fix custom hydra --- systems/palatine-hill/hydra.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systems/palatine-hill/hydra.nix b/systems/palatine-hill/hydra.nix index 43cabe8..a9c92d8 100644 --- a/systems/palatine-hill/hydra.nix +++ b/systems/palatine-hill/hydra.nix @@ -42,7 +42,7 @@ in services = { hydra = { enable = true; - package = inputs.hydra.packages.hydra; + package = inputs.hydra.packages.x86_64-linux.hydra; hydraURL = "https://hydra.alicehuston.xyz"; smtpHost = "alicehuston.xyz"; notificationSender = "hydra@alicehuston.xyz"; -- 2.48.1 From 5cb642f64364bf2a8961d8f00ed483bfbf34ae88 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Wed, 26 Mar 2025 02:49:26 -0400 Subject: [PATCH 09/13] decouple dependency --- flake.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 5526b55..3a4978a 100644 --- a/flake.nix +++ b/flake.nix @@ -59,10 +59,10 @@ }; hydra = { - url = "github:fx-chun/hydra"; - inputs = { - nixpkgs.follows = "nixpkgs"; - }; + url = "github:fx-chun/hydra/add-gitea-pulls"; + # inputs = { + # nixpkgs.follows = "nixpkgs"; + # }; }; hyprland-contrib = { -- 2.48.1 From 97f26ebb31c90d4c601fbefd386cbf4c342e9c18 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Wed, 26 Mar 2025 10:52:56 -0400 Subject: [PATCH 10/13] fix flake lock --- flake.lock | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index e6a0c6b..d87301c 100644 --- a/flake.lock +++ b/flake.lock @@ -329,20 +329,19 @@ "inputs": { "nix": "nix", "nix-eval-jobs": "nix-eval-jobs", - "nixpkgs": [ - "nixpkgs" - ] + "nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1739907437, - "narHash": "sha256-yBLVNhbGM/WmHUEa0mCw7mFfa5blxWZGlqP6F6PgQnY=", + "lastModified": 1740884653, + "narHash": "sha256-L0eN/hFRH1JSDvmuBOXBfETU07WckA7b3UFxHRVdp3M=", "owner": "fx-chun", "repo": "hydra", - "rev": "18c0d762109549351ecf622cde34514351a72492", + "rev": "99e3ad325cb829ff10a024659fd1b62316c06a1f", "type": "github" }, "original": { "owner": "fx-chun", + "ref": "add-gitea-pulls", "repo": "hydra", "type": "github" } @@ -524,8 +523,8 @@ "type": "github" }, "original": { - "owner": "nixos", - "ref": "nixos-unstable-small", + "owner": "NixOS", + "ref": "nixos-24.11-small", "repo": "nixpkgs", "type": "github" } @@ -561,6 +560,22 @@ "type": "github" } }, + "nixpkgs_2": { + "locked": { + "lastModified": 1742919349, + "narHash": "sha256-V3jQhu3s48mgGClvKkWhYM1+cSTFGFm4ztDkK7S69JY=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "6ea2759c633a3e25f3b4e2f52fb6bf9d6a01c532", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable-small", + "repo": "nixpkgs", + "type": "github" + } + }, "nur": { "inputs": { "flake-parts": "flake-parts_2", @@ -621,7 +636,7 @@ "nixos-generators": "nixos-generators", "nixos-hardware": "nixos-hardware", "nixos-modules": "nixos-modules", - "nixpkgs": "nixpkgs", + "nixpkgs": "nixpkgs_2", "nixpkgs-stable": "nixpkgs-stable", "pre-commit-hooks": "pre-commit-hooks", "rust-overlay": "rust-overlay", -- 2.48.1 From 5fdf5c53621f439c8d1af3091eee22ea3358295d Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Wed, 26 Mar 2025 11:09:04 -0400 Subject: [PATCH 11/13] pin hydra nixpkgs Signed-off-by: ahuston-0 --- flake.lock | 38 ++++++++++++-------------------------- flake.nix | 6 +++--- 2 files changed, 15 insertions(+), 29 deletions(-) diff --git a/flake.lock b/flake.lock index d87301c..5cb9f9c 100644 --- a/flake.lock +++ b/flake.lock @@ -329,7 +329,9 @@ "inputs": { "nix": "nix", "nix-eval-jobs": "nix-eval-jobs", - "nixpkgs": "nixpkgs" + "nixpkgs": [ + "nixpkgs" + ] }, "locked": { "lastModified": 1740884653, @@ -389,11 +391,11 @@ ] }, "locked": { - "lastModified": 1739899400, - "narHash": "sha256-q/RgA4bB7zWai4oPySq9mch7qH14IEeom2P64SXdqHs=", + "lastModified": 1742919147, + "narHash": "sha256-I6Oekogi6tkSrtyAbBMzjx9iKi4x0o21fdOQqVf49Qc=", "owner": "NixOS", "repo": "nix", - "rev": "e310c19a1aeb1ce1ed4d41d5ab2d02db596e0918", + "rev": "ceec04f1e24ca34deaca26e7c9d8cd90ba38f81c", "type": "github" }, "original": { @@ -515,16 +517,16 @@ }, "nixpkgs": { "locked": { - "lastModified": 1742960832, - "narHash": "sha256-xdp71QH76Q0esAJi4+5xDzpgBQNFpq8xn6UNfyT/s9w=", + "lastModified": 1742919349, + "narHash": "sha256-V3jQhu3s48mgGClvKkWhYM1+cSTFGFm4ztDkK7S69JY=", "owner": "nixos", "repo": "nixpkgs", - "rev": "24693557f72603e8f2c514ee26854d5c2aad9090", + "rev": "6ea2759c633a3e25f3b4e2f52fb6bf9d6a01c532", "type": "github" }, "original": { - "owner": "NixOS", - "ref": "nixos-24.11-small", + "owner": "nixos", + "ref": "nixos-unstable-small", "repo": "nixpkgs", "type": "github" } @@ -560,22 +562,6 @@ "type": "github" } }, - "nixpkgs_2": { - "locked": { - "lastModified": 1742919349, - "narHash": "sha256-V3jQhu3s48mgGClvKkWhYM1+cSTFGFm4ztDkK7S69JY=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "6ea2759c633a3e25f3b4e2f52fb6bf9d6a01c532", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "nixos-unstable-small", - "repo": "nixpkgs", - "type": "github" - } - }, "nur": { "inputs": { "flake-parts": "flake-parts_2", @@ -636,7 +622,7 @@ "nixos-generators": "nixos-generators", "nixos-hardware": "nixos-hardware", "nixos-modules": "nixos-modules", - "nixpkgs": "nixpkgs_2", + "nixpkgs": "nixpkgs", "nixpkgs-stable": "nixpkgs-stable", "pre-commit-hooks": "pre-commit-hooks", "rust-overlay": "rust-overlay", diff --git a/flake.nix b/flake.nix index 3a4978a..e948a56 100644 --- a/flake.nix +++ b/flake.nix @@ -60,9 +60,9 @@ hydra = { url = "github:fx-chun/hydra/add-gitea-pulls"; - # inputs = { - # nixpkgs.follows = "nixpkgs"; - # }; + inputs = { + nixpkgs.follows = "nixpkgs"; + }; }; hyprland-contrib = { -- 2.48.1 From 9e4adb1b46f4608bec314f9b68847c814f84f6f0 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Wed, 26 Mar 2025 11:20:54 -0400 Subject: [PATCH 12/13] re-disable autosuggestion NOTE FOR NEXT TIME: enabling this messes with fzf --- users/alice/home/zsh.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/users/alice/home/zsh.nix b/users/alice/home/zsh.nix index 940b742..ecb3192 100644 --- a/users/alice/home/zsh.nix +++ b/users/alice/home/zsh.nix @@ -4,8 +4,6 @@ programs.zsh = { enable = true; - autosuggestion.enable = true; - enableCompletion = true; oh-my-zsh = { enable = true; plugins = [ -- 2.48.1 From 8267d4acc2894775e462ebd2193b468376c43309 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Wed, 26 Mar 2025 11:28:20 -0400 Subject: [PATCH 13/13] add gitea auth --- users/alice/secrets.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/users/alice/secrets.yaml b/users/alice/secrets.yaml index 0216b97..d22fca7 100644 --- a/users/alice/secrets.yaml +++ b/users/alice/secrets.yaml @@ -2,7 +2,7 @@ alice: user-password: ENC[AES256_GCM,data:+cM85X1vapqfQdJ+Dv6YvT5qHlvsmaXPRbvKRHtCkPT3wdw4f7tLHLFmvWnak7CRezI00PxVEtCZL5mqLyN2HaU4OqIk/9fgqczIzemwBlMGJt+ndwG4oqBqE0ymtzmy8MA59wonRqoxzYKQfAGQsprdCIovrg==,iv:BtSDBgvQeZdTY1KUClnt9V8qHcS/gouaaQw342tk4Sg=,tag:T7tzyKuCo83s78ca7f4KDQ==,type:str] #ENC[AES256_GCM,data:6+dLs8opC27IrHJCPfL2c7KiLbaQTqI6oRKpIZLR4+P9gTupziAhCm/G7RY01gVPSgxdBpJ6L4xVbcMEg9hDKBMI4naF9arNrFsV6WXNc+LA5BYyT9L9G1nDea8fPFYDSF2537eLgLqWNE1WSsUOrz/WOxbE6g==,iv:AxsdKmGz6qEYlWY08q/2hqsm0EXaqodwD/7OJg4FAIY=,tag:EgfL3I1VBXtFgIdTOW5eBA==,type:comment] #ENC[AES256_GCM,data:vUMcowHjlQA0RWflfaQhZKkalO39epYi6N9PPW8=,iv:6DFqHlQR+mi+ZkfMUhlhwvpMwnxXNfQV6+sYgPzSj4I=,tag:Pz1zJayscGckPO8Q2ZVb4g==,type:comment] - gha-hydra-token: ENC[AES256_GCM,data:rYDYIn7MAF4pSZQj+Nln2z9J+AxvuSzumthL86njpKETutArrw+9iX2hHJt5t513NHH03tMtZOFqM60/pzWg4YXVQOSpQm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39tFHX7naA4JriC2/FgI2HlFGp0Lc+g0pfdCYwLs5QBfRaOHyrbFWUDG,iv:OBrgnewqBaug00ygAXs0eFs3LqcHqo1EW96N5I38A0o=,tag:V+Gn47O6AH1RwL9qJLpAkw==,type:str] attic-nix-cache-reader: ENC[AES256_GCM,data:DWIkRri3lHJOVXIAbHWJL7cCV4FHjB91bbpPAib/5ZDKap3xjnxUjwswc7wjO1hCoV3+gmep1a64kma6MJts4bcAug5bPyrrPy//rVpCYvSbSmbPz5k4sW5GLU/Sf4NyBevsQo9KRrphpoSUQEFQB27vabYDjjkB051/qJo1B9B7nqmrSyd3np4YdyHAgUiMyJt0oqx8nXySz3XZU+DIM8/OhMZILpnEWIgyP2K7j8JNNpZZJ5sD/icUy6Vba/4LcKjtmYtfQ+HO1soyF6aMiQSjhp7fzJHktwa9kgB3oDzIg3KyCJYS2RNW7mW9Dd1T,iv:fvhGFU22KgknMpJbOkA3v29bKzRVX6hi7V7xJgSUjPg=,tag:TjGSUl0XXS7jlhP/NG4cvQ==,type:str] @@ -42,8 +42,8 @@ sops: ZERFTlFyNjhOb3VCaW43ZXFHT1Vxc0UK7YV+BU7dCEOZxpqkQA394eDsnthvorj6 7bqrCdeU+6DU7DmFs6++BrNO2tx8vvOa1im+ZGrM/gZAJdv/7R2d6Q== -----END AGE ENCRYPTED FILE----- - lastmodified: "2025-03-18T22:08:52Z" - mac: ENC[AES256_GCM,data:3Hr8FyzfZvvtyusqdDOjggDGFlBwyOq2VND+/jtNbY5i5JPK+qTkamn98IKkcHSPooaIVzEAek91fZDo90mYRhCzEwfbLATmFXPHsZHUg+5nD8VzcNUWQDb2/ey4RPhzTMtXfY9v9wdIcTdBKYKSZ61puptSX8nJ2S74ag6B5AY=,iv:J+VxUvwWE496DqTsVXdlpxgkf8zGT9uDvt6RLrmc0n0=,tag:X2Qg3DDzOTBDqo+6eQPHvw==,type:str] + lastmodified: "2025-03-26T15:28:13Z" + mac: ENC[AES256_GCM,data:BfEahKHAcnLc/PSagENBIVwxufJrjpMSC6U4hkkxNwcEJYDNAlrF0w00aiexLeX+UfVGIw19+SrNL5zuecEf+GaYzYNy9RE3c66KUM2B/cpuBuzkiwLaBCTfcWr7k8dW11BGFCmugRSG4w6wXKG5B/LyEKB6Vcvp0JRbCYSqZSY=,iv:97UzvdvQCtTLaLDrg6VEwiofHtSPGtaxuPLHfTAyIFA=,tag:r4r45OaV9ZRDzd56RGLFZw==,type:str] pgp: - created_at: "2024-09-05T06:10:22Z" enc: |- -- 2.48.1