gitea repo
This commit is contained in:
commit
f610209aff
66 changed files with 2439 additions and 0 deletions
34
modules/common/default.nix
Normal file
34
modules/common/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ config, pkgs, lib, ... }: {
|
||||
|
||||
options = {
|
||||
user = lib.mkOption {
|
||||
default = "${config.user}";
|
||||
description = "user";
|
||||
};
|
||||
|
||||
host = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "host";
|
||||
};
|
||||
|
||||
sops_file = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "SOPS filename";
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
home-manager.useGlobalPkgs = true;
|
||||
services.cron.enable = true;
|
||||
|
||||
# sops
|
||||
environment.systemPackages = with pkgs; [ sops ];
|
||||
sops.age.keyFile = "${config.users.users.${config.user}.home}/.config/sops/age/keys.txt";
|
||||
sops.defaultSopsFile = ../../secrets/${config.sops_file};
|
||||
|
||||
};
|
||||
}
|
||||
|
5
modules/common/system-d_boot.nix
Normal file
5
modules/common/system-d_boot.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue