magenta: use latest gitea

This commit is contained in:
Dmitriy Pleshevskiy 2023-03-20 22:23:34 +03:00
parent 4bff1d92a8
commit af6e140afa
Signed by: pleshevskiy
GPG key ID: 79C4487B44403985
3 changed files with 30 additions and 11 deletions

View file

@ -178,11 +178,11 @@
}, },
"hardware": { "hardware": {
"locked": { "locked": {
"lastModified": 1678397099, "lastModified": 1679224149,
"narHash": "sha256-5xq8YJe+h19TlD+EI4AE/3H3jcCcQ2AWU6CWBVc5tRc=", "narHash": "sha256-TSY37Zv0icF/aijR3/KWGLVBlnKKHlG9QTj7vHbF/UU=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "556101ff85bd6e20900ec73ee525b935154bc8ea", "rev": "a4bc66709604ab78abc575b60baa6d23ae027a59",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -200,11 +200,11 @@
"utils": "utils" "utils": "utils"
}, },
"locked": { "locked": {
"lastModified": 1678957507, "lastModified": 1679265143,
"narHash": "sha256-t1yAoxlfhSjgeDGoQ1WJ0LBwVReL6y3QkAfJ3H+mOSs=", "narHash": "sha256-5RDMW+O4owjdPz7t4K4YxH2fOHCNOcyVmSiKRUikiv0=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "5e94669f8ea8d697b1a00b916b2a86909f8c4ff5", "rev": "1b8bf5c3270386a1b6850bd77d79dbdbaf0d7a7c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -474,11 +474,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1678898370, "lastModified": 1679172431,
"narHash": "sha256-xTICr1j+uat5hk9FyuPOFGxpWHdJRibwZC+ATi0RbtE=", "narHash": "sha256-XEh5gIt5otaUbEAPUY5DILUTyWe1goAyeqQtmwaFPyI=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "ac718d02867a84b42522a0ece52d841188208f2c", "rev": "1603d11595a232205f03d46e635d919d1e1ec5b9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -502,6 +502,22 @@
"type": "indirect" "type": "indirect"
} }
}, },
"nixpkgs_unstable": {
"locked": {
"lastModified": 1679338402,
"narHash": "sha256-w0YDouArgrXg8aaX1cslEgzIWuwhB+0ai7xb/UuDwZo=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "f3ad3f8193f79ba34e8412dfae3781580262beec",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"repo": "nixpkgs",
"type": "github"
}
},
"nlsp-settings-nvim": { "nlsp-settings-nvim": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -642,6 +658,7 @@
"mytools": "mytools", "mytools": "mytools",
"nil": "nil", "nil": "nil",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"nixpkgs_unstable": "nixpkgs_unstable",
"vnetod": "vnetod", "vnetod": "vnetod",
"wd2": "wd2", "wd2": "wd2",
"wired": "wired" "wired": "wired"

View file

@ -2,6 +2,7 @@
inputs = { inputs = {
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs_unstable.url = "github:NixOS/nixpkgs/master";
hardware.url = "github:NixOS/nixos-hardware/master"; hardware.url = "github:NixOS/nixos-hardware/master";
agenix = { agenix = {

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, inputs, ... }:
let let
hostname = "git.pleshevski.ru"; hostname = "git.pleshevski.ru";
@ -17,9 +17,10 @@ in
services.gitea = { services.gitea = {
enable = true; enable = true;
httpPort = 9901; httpPort = 9901;
package = inputs.nixpkgs_unstable.legacyPackages.${pkgs.system}.gitea;
domain = hostname; domain = hostname;
rootUrl = "https://${hostname}"; rootUrl = "https://${hostname}";
appName = "Pleshevskiy Git Repositories"; appName = "Pleshevskiy's Gitea";
mailerPasswordFile = config.age.secrets.gitea-smtp-passfile.path; mailerPasswordFile = config.age.secrets.gitea-smtp-passfile.path;
database = { database = {
type = "postgres"; type = "postgres";