gitea->forgejo
This commit is contained in:
parent
b2db1e0c88
commit
265563968f
3 changed files with 214 additions and 202 deletions
42
flake.lock
42
flake.lock
|
@ -304,11 +304,11 @@
|
||||||
"rust-overlay": "rust-overlay_2"
|
"rust-overlay": "rust-overlay_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1674113703,
|
"lastModified": 1674573236,
|
||||||
"narHash": "sha256-au1KKVBZTyWulPxmy3CtNzJQrQWPZtTjwcfD/bDftgo=",
|
"narHash": "sha256-VN1KG1Sh9s5IpLzVhCYAQcBITh4jmG8gl0F4wBX8lVk=",
|
||||||
"owner": "oxalica",
|
"owner": "oxalica",
|
||||||
"repo": "nil",
|
"repo": "nil",
|
||||||
"rev": "3f84b783d36d564c4380631ab48d771e2558cb81",
|
"rev": "6e5321582ca7595455edf2a9643f83ce390d0a71",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -320,11 +320,11 @@
|
||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1673803274,
|
"lastModified": 1674550793,
|
||||||
"narHash": "sha256-zaJDlHFXewT4KUsidMpRcPE+REymGH1Y3Eoc3Pjv4Xs=",
|
"narHash": "sha256-ljJlIFQZwtBbzWqWTmmw2O5BFmQf1A/DspwMOQtGXHk=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "7bd6b87b3712e68007823e8dd5c37ee9b114fee3",
|
"rev": "b7ac0a56029e4f9e6743b9993037a5aaafd57103",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -336,11 +336,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-master": {
|
"nixpkgs-master": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1674290375,
|
"lastModified": 1674591591,
|
||||||
"narHash": "sha256-yRD5bQWzu6UpDC6cybXwFizWHJCHcJTw35Ms7Q/nzU4=",
|
"narHash": "sha256-zvzEwg6lfz7F0sBGKBt4IkY31XPPLktPGE8AIscFeAU=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "68403fe04f6c85853ddd389c9e58dd9b9c8b0a36",
|
"rev": "73d098535c74d1d323d58a23e9bb28ffb16a673e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -352,11 +352,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-nixos-unstable": {
|
"nixpkgs-nixos-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1674120619,
|
"lastModified": 1674459583,
|
||||||
"narHash": "sha256-xLT1FQl7/jNPOEq5q/vmc3AExt1V9LtcjM+QY2+MUpA=",
|
"narHash": "sha256-L0UZl/u2H3HGsrhN+by42c5kNYeKtdmJiPzIRvEVeiM=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "d7705c01ef0a39c8ef532d1033bace8845a07d35",
|
"rev": "1b1f50645af2a70dc93eae18bfd88d330bfbcf7f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -368,11 +368,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1673957332,
|
"lastModified": 1674407282,
|
||||||
"narHash": "sha256-njH7Szk1BLVWGMw7IRibgGejSlxXHj9saZHfH20gHdk=",
|
"narHash": "sha256-2qwc8mrPINSFdWffPK+ji6nQ9aGnnZyHSItVcYDZDlk=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "b83e7f5a04a3acc8e92228b0c4bae68933d504eb",
|
"rev": "ab1254087f4cdf4af74b552d7fc95175d9bdbb49",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -384,11 +384,11 @@
|
||||||
},
|
},
|
||||||
"nur": {
|
"nur": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1674290152,
|
"lastModified": 1674589600,
|
||||||
"narHash": "sha256-2FPfuRPknBrg2ZBBa3latWxbbComAXLizS1ShsJHuLc=",
|
"narHash": "sha256-MYscPro58Jc+zaNekjwEYpWqgGmMYEhUTejvI1X2RHE=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "0eb18ae5ae3a5ff8cdef5a0c956d11cc414d757f",
|
"rev": "67b24d408dca0b07e5281d39cabe734a0b34b5e6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -489,11 +489,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1673752321,
|
"lastModified": 1674546403,
|
||||||
"narHash": "sha256-EFfXY1ZHJq4FNaNQA9x0djtu/jiOhBbT0Xi+BT06cJw=",
|
"narHash": "sha256-vkyNv0xzXuEnu9v52TUtRugNmQWIti8c2RhYnbLG71w=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "e18eefd2b133a58309475298052c341c08470717",
|
"rev": "b6ab3c61e2ca5e07d1f4eb1b67304e2670ea230c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
38
flake.nix
38
flake.nix
|
@ -1,9 +1,21 @@
|
||||||
{
|
{
|
||||||
description = "NixOS configuration with flakes";
|
description = "NixOS configuration with flakes";
|
||||||
outputs = { self, flake-utils, flake-compat, home-manager
|
outputs = {
|
||||||
, nixpkgs-nixos-unstable, nixpkgs-master, nixpkgs-stable, darwin
|
self,
|
||||||
, nixos-hardware, nur, sops, nil, helix, alejandra, }@inputs:
|
flake-utils,
|
||||||
let
|
flake-compat,
|
||||||
|
home-manager,
|
||||||
|
nixpkgs-nixos-unstable,
|
||||||
|
nixpkgs-master,
|
||||||
|
nixpkgs-stable,
|
||||||
|
darwin,
|
||||||
|
nixos-hardware,
|
||||||
|
nur,
|
||||||
|
sops,
|
||||||
|
nil,
|
||||||
|
helix,
|
||||||
|
alejandra,
|
||||||
|
} @ inputs: let
|
||||||
mkServer = pkgs: system: hostname:
|
mkServer = pkgs: system: hostname:
|
||||||
pkgs.lib.nixosSystem {
|
pkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
@ -12,7 +24,7 @@
|
||||||
(import ./nixos/server-common.nix)
|
(import ./nixos/server-common.nix)
|
||||||
sops.nixosModules.sops
|
sops.nixosModules.sops
|
||||||
];
|
];
|
||||||
specialArgs = { inherit inputs; };
|
specialArgs = {inherit inputs system;};
|
||||||
};
|
};
|
||||||
mkRaspi = pkgs: hostname:
|
mkRaspi = pkgs: hostname:
|
||||||
pkgs.lib.nixosSystem {
|
pkgs.lib.nixosSystem {
|
||||||
|
@ -33,8 +45,7 @@
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.users.cyryl = {
|
home-manager.users.cyryl = {
|
||||||
imports =
|
imports = [./nixos/home-manager ./nixos/home-manager/linux.nix];
|
||||||
[ ./nixos/home-manager ./nixos/home-manager/linux.nix ];
|
|
||||||
_module.args.inputs = inputs;
|
_module.args.inputs = inputs;
|
||||||
_module.args.system = system;
|
_module.args.system = system;
|
||||||
};
|
};
|
||||||
|
@ -66,8 +77,7 @@
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.users.cyryl = {
|
home-manager.users.cyryl = {
|
||||||
imports =
|
imports = [./nixos/home-manager ./nixos/home-manager/linux.nix];
|
||||||
[ ./nixos/home-manager ./nixos/home-manager/linux.nix ];
|
|
||||||
_module.args.inputs = inputs;
|
_module.args.inputs = inputs;
|
||||||
_module.args.system = system;
|
_module.args.system = system;
|
||||||
};
|
};
|
||||||
|
@ -85,9 +95,10 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
mkShell = packageSet: system:
|
mkShell = packageSet: system: let
|
||||||
let pkgs = packageSet.legacyPackages.${system};
|
pkgs = packageSet.legacyPackages.${system};
|
||||||
in pkgs.mkShell {
|
in
|
||||||
|
pkgs.mkShell {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
cacert
|
cacert
|
||||||
git
|
git
|
||||||
|
@ -152,8 +163,7 @@
|
||||||
(import
|
(import
|
||||||
"${inputs.nixpkgs-nixos-unstable}/nixos/modules/installer/sd-card/sd-image-aarch64-installer.nix")
|
"${inputs.nixpkgs-nixos-unstable}/nixos/modules/installer/sd-card/sd-image-aarch64-installer.nix")
|
||||||
{
|
{
|
||||||
environment.systemPackages =
|
environment.systemPackages = with nixpkgs-nixos-unstable.legacyPackages."aarch64-linux"; [
|
||||||
with nixpkgs-nixos-unstable.legacyPackages."aarch64-linux"; [
|
|
||||||
neovim
|
neovim
|
||||||
htop
|
htop
|
||||||
btop
|
btop
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
lib,
|
lib,
|
||||||
|
system,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
httpPort = 8083;
|
httpPort = 8083;
|
||||||
|
@ -85,7 +86,7 @@ in {
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
system.stateVersion = "22.05";
|
system.stateVersion = "22.11";
|
||||||
users =
|
users =
|
||||||
users
|
users
|
||||||
// {
|
// {
|
||||||
|
@ -99,6 +100,7 @@ in {
|
||||||
stateDir = path;
|
stateDir = path;
|
||||||
user = systemUserName;
|
user = systemUserName;
|
||||||
mailerPasswordFile = mailgunSmtpPasswordPath;
|
mailerPasswordFile = mailgunSmtpPasswordPath;
|
||||||
|
package = inputs.nixpkgs-master.legacyPackages.${system}.forgejo;
|
||||||
settings = {
|
settings = {
|
||||||
service.DISABLE_REGISTRATION = true;
|
service.DISABLE_REGISTRATION = true;
|
||||||
server = {
|
server = {
|
||||||
|
|
Loading…
Reference in a new issue