switch nixfmt to alejandra to format nix code
This commit is contained in:
parent
582bdb783c
commit
e44894c666
120 changed files with 1163 additions and 1237 deletions
50
flake.nix
50
flake.nix
|
|
@ -170,15 +170,13 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
outputs =
|
outputs = {
|
||||||
{
|
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
flake-parts,
|
flake-parts,
|
||||||
flake-utils,
|
flake-utils,
|
||||||
...
|
...
|
||||||
}@inputs:
|
} @ inputs: let
|
||||||
let
|
|
||||||
inherit (self) outputs;
|
inherit (self) outputs;
|
||||||
rootPath = ./.;
|
rootPath = ./.;
|
||||||
in
|
in
|
||||||
|
|
@ -187,15 +185,18 @@
|
||||||
imports = [
|
imports = [
|
||||||
inputs.home-manager.flakeModules.home-manager
|
inputs.home-manager.flakeModules.home-manager
|
||||||
];
|
];
|
||||||
perSystem =
|
perSystem = {
|
||||||
{ pkgs, system, ... }@args:
|
pkgs,
|
||||||
{
|
system,
|
||||||
|
...
|
||||||
|
} @ args: {
|
||||||
_module.args.pkgs = import inputs.nixpkgs {
|
_module.args.pkgs = import inputs.nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
formatter = pkgs.alejandra;
|
||||||
packages = import ./pkgs (
|
packages = import ./pkgs (
|
||||||
args
|
args
|
||||||
// {
|
// {
|
||||||
|
|
@ -207,8 +208,7 @@
|
||||||
{
|
{
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
# substituters shared in home-manager and nixos configuration
|
# substituters shared in home-manager and nixos configuration
|
||||||
substituters =
|
substituters = let
|
||||||
let
|
|
||||||
cachix = x: "https://${x}.cachix.org";
|
cachix = x: "https://${x}.cachix.org";
|
||||||
in
|
in
|
||||||
nixpkgs.lib.flatten [
|
nixpkgs.lib.flatten [
|
||||||
|
|
@ -221,15 +221,13 @@
|
||||||
nixosModules.default = import ./nixos/modules;
|
nixosModules.default = import ./nixos/modules;
|
||||||
|
|
||||||
overlays = {
|
overlays = {
|
||||||
modifications = (import ./overlays/modifications { inherit inputs outputs; });
|
modifications = import ./overlays/modifications {inherit inputs outputs;};
|
||||||
additions = (import ./overlays/additions { inherit inputs outputs; });
|
additions = import ./overlays/additions {inherit inputs outputs;};
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosConfigurations =
|
nixosConfigurations = let
|
||||||
let
|
|
||||||
nixosConfigDir = ./nixos/configurations;
|
nixosConfigDir = ./nixos/configurations;
|
||||||
makeNixConfiguration =
|
makeNixConfiguration = hostName:
|
||||||
hostName:
|
|
||||||
nixpkgs.lib.nixosSystem {
|
nixpkgs.lib.nixosSystem {
|
||||||
modules =
|
modules =
|
||||||
[outputs.nixosModules.default]
|
[outputs.nixosModules.default]
|
||||||
|
|
@ -239,7 +237,9 @@
|
||||||
dirPath = nixosConfigDir + "/${hostName}";
|
dirPath = nixosConfigDir + "/${hostName}";
|
||||||
filePath = nixosConfigDir + "/${hostName}.nix";
|
filePath = nixosConfigDir + "/${hostName}.nix";
|
||||||
in
|
in
|
||||||
if builtins.pathExists dirPath then dirPath else filePath
|
if builtins.pathExists dirPath
|
||||||
|
then dirPath
|
||||||
|
else filePath
|
||||||
)
|
)
|
||||||
];
|
];
|
||||||
specialArgs = {inherit inputs outputs rootPath;};
|
specialArgs = {inherit inputs outputs rootPath;};
|
||||||
|
|
@ -257,15 +257,13 @@
|
||||||
}
|
}
|
||||||
// (
|
// (
|
||||||
let
|
let
|
||||||
mkHomeConfig =
|
mkHomeConfig = {
|
||||||
{
|
|
||||||
hostName,
|
hostName,
|
||||||
unixName ? "david",
|
unixName ? "david",
|
||||||
system ? "x86_64-linux",
|
system ? "x86_64-linux",
|
||||||
nixpkgs ? inputs.nixpkgs,
|
nixpkgs ? inputs.nixpkgs,
|
||||||
home-manager ? inputs.home-manager,
|
home-manager ? inputs.home-manager,
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
"${unixName}@${hostName}" = home-manager.lib.homeManagerConfiguration {
|
"${unixName}@${hostName}" = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = nixpkgs.legacyPackages."${system}";
|
pkgs = nixpkgs.legacyPackages."${system}";
|
||||||
modules =
|
modules =
|
||||||
|
|
@ -291,8 +289,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
homeConfigurations =
|
homeConfigurations =
|
||||||
nixpkgs.lib.foldr (a: b: a // b) {} (
|
nixpkgs.lib.foldr (a: b: a // b) {} (
|
||||||
map (hostName: mkHomeConfig {inherit hostName;}) [
|
map (hostName: mkHomeConfig {inherit hostName;}) [
|
||||||
|
|
@ -331,14 +328,12 @@
|
||||||
)
|
)
|
||||||
// (
|
// (
|
||||||
let
|
let
|
||||||
mkDeployNode =
|
mkDeployNode = {
|
||||||
{
|
|
||||||
hostName,
|
hostName,
|
||||||
unixName ? "deploy",
|
unixName ? "deploy",
|
||||||
system ? "x86_64-linux",
|
system ? "x86_64-linux",
|
||||||
sshName ? hostName,
|
sshName ? hostName,
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
"${hostName}" = {
|
"${hostName}" = {
|
||||||
hostname = "${sshName}";
|
hostname = "${sshName}";
|
||||||
sshUser = "${unixName}";
|
sshUser = "${unixName}";
|
||||||
|
|
@ -353,8 +348,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
deploy.nodes =
|
deploy.nodes =
|
||||||
[
|
[
|
||||||
"Cape"
|
"Cape"
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
unixName,
|
unixName,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
youthlic = {
|
youthlic = {
|
||||||
xdg-dirs.enable = true;
|
xdg-dirs.enable = true;
|
||||||
programs = {
|
programs = {
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,7 @@
|
||||||
config,
|
config,
|
||||||
rootPath,
|
rootPath,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
youthlic = {
|
youthlic = {
|
||||||
xdg-dirs.enable = true;
|
xdg-dirs.enable = true;
|
||||||
programs = {
|
programs = {
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,7 @@
|
||||||
inputs,
|
inputs,
|
||||||
unixName,
|
unixName,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
youthlic = {
|
youthlic = {
|
||||||
xdg-dirs.enable = true;
|
xdg-dirs.enable = true;
|
||||||
programs = {
|
programs = {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{pkgs, ...}: {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
./wallpaper.nix
|
./wallpaper.nix
|
||||||
./programs
|
./programs
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ ... }:
|
{...}: {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
./openssh.nix
|
./openssh.nix
|
||||||
./niri
|
./niri
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.david.programs.niri;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.david.programs.niri;
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
david.programs.niri = {
|
david.programs.niri = {
|
||||||
enable = lib.mkEnableOption "niri";
|
enable = lib.mkEnableOption "niri";
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,9 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.david.programs.openssh;
|
cfg = config.david.programs.openssh;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
david.programs.openssh = {
|
david.programs.openssh = {
|
||||||
enable = lib.mkEnableOption "openssh";
|
enable = lib.mkEnableOption "openssh";
|
||||||
|
|
@ -35,7 +33,6 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
})
|
})
|
||||||
(lib.mkIf (cfg.enable && config.youthlic.programs.sops.enable) {
|
(lib.mkIf (cfg.enable && config.youthlic.programs.sops.enable) {
|
||||||
programs.ssh.includes = [config.sops.secrets.ssh-config.path];
|
programs.ssh.includes = [config.sops.secrets.ssh-config.path];
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ lib, config, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.david.programs.wluma;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.david.programs.wluma;
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
david.programs.wluma = {
|
david.programs.wluma = {
|
||||||
enable = lib.mkEnableOption "wluma";
|
enable = lib.mkEnableOption "wluma";
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,9 @@
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.david.wallpaper;
|
cfg = config.david.wallpaper;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
david.wallpaper = {
|
david.wallpaper = {
|
||||||
enable = lib.mkEnableOption "wallpaper";
|
enable = lib.mkEnableOption "wallpaper";
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ inputs, ... }:
|
{inputs, ...}: {
|
||||||
{
|
|
||||||
imports =
|
imports =
|
||||||
(with inputs; [
|
(with inputs; [
|
||||||
niri-flake.homeModules.niri
|
niri-flake.homeModules.niri
|
||||||
|
|
|
||||||
|
|
@ -4,13 +4,12 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
config = {
|
config = {
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
allowUnfreePredicate = (_: true);
|
allowUnfreePredicate = _: true;
|
||||||
};
|
};
|
||||||
overlays = [
|
overlays = [
|
||||||
outputs.overlays.modifications
|
outputs.overlays.modifications
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,4 @@
|
||||||
{
|
{inputs, ...}: {
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports =
|
imports =
|
||||||
(with inputs; [
|
(with inputs; [
|
||||||
sops-nix.homeManagerModules.sops
|
sops-nix.homeManagerModules.sops
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ lib, config, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.atuin;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.youthlic.programs.atuin;
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.atuin = {
|
youthlic.programs.atuin = {
|
||||||
enable = lib.mkEnableOption "atuin";
|
enable = lib.mkEnableOption "atuin";
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ lib, config, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.chromium;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.youthlic.programs.chromium;
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.chromium = {
|
youthlic.programs.chromium = {
|
||||||
enable = lib.mkEnableOption "chromium";
|
enable = lib.mkEnableOption "chromium";
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ ... }:
|
{...}: {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
./zed.nix
|
./zed.nix
|
||||||
./rustypaste-cli.nix
|
./rustypaste-cli.nix
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,9 @@
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.espanso;
|
cfg = config.youthlic.programs.espanso;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.espanso = {
|
youthlic.programs.espanso = {
|
||||||
enable = lib.mkEnableOption "espanso";
|
enable = lib.mkEnableOption "espanso";
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,9 @@
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.firefox;
|
cfg = config.youthlic.programs.firefox;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.firefox = {
|
youthlic.programs.firefox = {
|
||||||
enable = lib.mkEnableOption "firefox";
|
enable = lib.mkEnableOption "firefox";
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.foot;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.youthlic.programs.foot;
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.foot = {
|
youthlic.programs.foot = {
|
||||||
enable = lib.mkEnableOption "foot";
|
enable = lib.mkEnableOption "foot";
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.fuzzel;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.youthlic.programs.fuzzel;
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.fuzzel = {
|
youthlic.programs.fuzzel = {
|
||||||
enable = lib.mkEnableOption "fuzzel";
|
enable = lib.mkEnableOption "fuzzel";
|
||||||
|
|
|
||||||
|
|
@ -3,18 +3,15 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.ghostty = {
|
youthlic.programs.ghostty = {
|
||||||
enable = lib.mkEnableOption "ghostty";
|
enable = lib.mkEnableOption "ghostty";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config =
|
config = let
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.ghostty;
|
cfg = config.youthlic.programs.ghostty;
|
||||||
in
|
in (lib.mkIf cfg.enable {
|
||||||
(lib.mkIf cfg.enable {
|
|
||||||
programs.ghostty = lib.mkMerge [
|
programs.ghostty = lib.mkMerge [
|
||||||
{
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,7 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.git = {
|
youthlic.programs.git = {
|
||||||
email = lib.mkOption {
|
email = lib.mkOption {
|
||||||
|
|
@ -31,8 +30,7 @@
|
||||||
encrypt-credential = lib.mkEnableOption "encrypt git credential";
|
encrypt-credential = lib.mkEnableOption "encrypt git credential";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config =
|
config = let
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.git;
|
cfg = config.youthlic.programs.git;
|
||||||
in
|
in
|
||||||
lib.mkMerge [
|
lib.mkMerge [
|
||||||
|
|
|
||||||
|
|
@ -4,15 +4,13 @@
|
||||||
lib,
|
lib,
|
||||||
outputs,
|
outputs,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.gpg = {
|
youthlic.programs.gpg = {
|
||||||
enable = lib.mkEnableOption "gpg";
|
enable = lib.mkEnableOption "gpg";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config =
|
config = let
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.gpg;
|
cfg = config.youthlic.programs.gpg;
|
||||||
in
|
in
|
||||||
lib.mkIf cfg.enable {
|
lib.mkIf cfg.enable {
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,7 @@
|
||||||
config,
|
config,
|
||||||
outputs,
|
outputs,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.helix = {
|
youthlic.programs.helix = {
|
||||||
enable = lib.mkEnableOption "helix";
|
enable = lib.mkEnableOption "helix";
|
||||||
|
|
@ -13,8 +12,7 @@
|
||||||
type = lib.types.listOf lib.types.package;
|
type = lib.types.listOf lib.types.package;
|
||||||
default = [];
|
default = [];
|
||||||
example = (
|
example = (
|
||||||
with pkgs;
|
with pkgs; [
|
||||||
[
|
|
||||||
deno
|
deno
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
@ -24,19 +22,16 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config =
|
config = let
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.helix;
|
cfg = config.youthlic.programs.helix;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
stylix.targets.helix.enable = false;
|
stylix.targets.helix.enable = false;
|
||||||
programs.helix = lib.mkIf cfg.enable {
|
programs.helix = lib.mkIf cfg.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = outputs.packages."${pkgs.system}".helix;
|
package = outputs.packages."${pkgs.system}".helix;
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
extraPackages = cfg.extraPackages;
|
extraPackages = cfg.extraPackages;
|
||||||
settings =
|
settings = let
|
||||||
let
|
|
||||||
config-file = builtins.readFile ./config.toml;
|
config-file = builtins.readFile ./config.toml;
|
||||||
config = builtins.fromTOML config-file;
|
config = builtins.fromTOML config-file;
|
||||||
in
|
in
|
||||||
|
|
@ -86,8 +81,7 @@
|
||||||
{
|
{
|
||||||
name = "nix";
|
name = "nix";
|
||||||
formatter = {
|
formatter = {
|
||||||
command = "nixfmt";
|
command = "alejandra";
|
||||||
args = [ "-" ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,9 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.jujutsu;
|
cfg = config.youthlic.programs.jujutsu;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.jujutsu = {
|
youthlic.programs.jujutsu = {
|
||||||
enable = lib.mkEnableOption "jujutsu";
|
enable = lib.mkEnableOption "jujutsu";
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.kvm;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.youthlic.programs.kvm;
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.kvm = {
|
youthlic.programs.kvm = {
|
||||||
enable = lib.mkEnableOption "kvm";
|
enable = lib.mkEnableOption "kvm";
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ lib, config, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.mpv;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.youthlic.programs.mpv;
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.mpv = {
|
youthlic.programs.mpv = {
|
||||||
enable = lib.mkEnableOption "mpv";
|
enable = lib.mkEnableOption "mpv";
|
||||||
|
|
|
||||||
|
|
@ -4,12 +4,10 @@
|
||||||
lib,
|
lib,
|
||||||
osConfig ? null,
|
osConfig ? null,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.niri;
|
cfg = config.youthlic.programs.niri;
|
||||||
niri = osConfig.programs.niri.package;
|
niri = osConfig.programs.niri.package;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.niri = {
|
youthlic.programs.niri = {
|
||||||
enable = lib.mkEnableOption "niri";
|
enable = lib.mkEnableOption "niri";
|
||||||
|
|
@ -43,8 +41,7 @@ in
|
||||||
!niri.cargoBuildNoDefaultFeatures || builtins.elem "xdp-gnome-screencast" niri.cargoBuildFeatures
|
!niri.cargoBuildNoDefaultFeatures || builtins.elem "xdp-gnome-screencast" niri.cargoBuildFeatures
|
||||||
) [pkgs.xdg-desktop-portal-gnome];
|
) [pkgs.xdg-desktop-portal-gnome];
|
||||||
};
|
};
|
||||||
xdg.configFile =
|
xdg.configFile = let
|
||||||
let
|
|
||||||
qtctConf =
|
qtctConf =
|
||||||
''
|
''
|
||||||
[Appearance]
|
[Appearance]
|
||||||
|
|
@ -53,8 +50,7 @@ in
|
||||||
+ lib.optionalString (config.qt.style ? name) ''
|
+ lib.optionalString (config.qt.style ? name) ''
|
||||||
style=${config.qt.style.name}
|
style=${config.qt.style.name}
|
||||||
'';
|
'';
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
"qt5ct/qt5ct.conf" = lib.mkForce {
|
"qt5ct/qt5ct.conf" = lib.mkForce {
|
||||||
text = qtctConf;
|
text = qtctConf;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,9 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.obs;
|
cfg = config.youthlic.programs.obs;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.obs = {
|
youthlic.programs.obs = {
|
||||||
enable = lib.mkEnableOption "obs";
|
enable = lib.mkEnableOption "obs";
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,9 @@
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.rustypaste-cli;
|
cfg = config.youthlic.programs.rustypaste-cli;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.rustypaste-cli = {
|
youthlic.programs.rustypaste-cli = {
|
||||||
enable = lib.mkEnableOption "rustypaste-cli";
|
enable = lib.mkEnableOption "rustypaste-cli";
|
||||||
|
|
|
||||||
|
|
@ -2,13 +2,11 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
inherit (lib) mkEnableOption mkIf mkMerge;
|
inherit (lib) mkEnableOption mkIf mkMerge;
|
||||||
fish-cfg = config.youthlic.programs.fish;
|
fish-cfg = config.youthlic.programs.fish;
|
||||||
bash-cfg = config.youthlic.programs.bash;
|
bash-cfg = config.youthlic.programs.bash;
|
||||||
cfg-helper =
|
cfg-helper = conf:
|
||||||
conf:
|
|
||||||
mkMerge [
|
mkMerge [
|
||||||
conf
|
conf
|
||||||
(mkIf fish-cfg.enable {
|
(mkIf fish-cfg.enable {
|
||||||
|
|
@ -18,8 +16,7 @@ let
|
||||||
enableBashIntegration = true;
|
enableBashIntegration = true;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs = {
|
youthlic.programs = {
|
||||||
fish = {
|
fish = {
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,7 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
rootPath,
|
rootPath,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.sops = {
|
youthlic.programs.sops = {
|
||||||
enable = lib.mkOption {
|
enable = lib.mkOption {
|
||||||
|
|
@ -25,14 +24,12 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config =
|
config = let
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.sops;
|
cfg = config.youthlic.programs.sops;
|
||||||
in
|
in
|
||||||
lib.mkIf cfg.enable {
|
lib.mkIf cfg.enable {
|
||||||
home.packages = (
|
home.packages = (
|
||||||
with pkgs;
|
with pkgs; [
|
||||||
[
|
|
||||||
sops
|
sops
|
||||||
age
|
age
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ lib, config, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.starship;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.youthlic.programs.starship;
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.starship = {
|
youthlic.programs.starship = {
|
||||||
enable = lib.mkEnableOption "starship";
|
enable = lib.mkEnableOption "starship";
|
||||||
|
|
@ -12,8 +14,7 @@ in
|
||||||
programs.starship = lib.mkMerge [
|
programs.starship = lib.mkMerge [
|
||||||
{
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
settings =
|
settings = let
|
||||||
let
|
|
||||||
config-file = builtins.readFile ./config.toml;
|
config-file = builtins.readFile ./config.toml;
|
||||||
in
|
in
|
||||||
builtins.fromTOML config-file;
|
builtins.fromTOML config-file;
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,9 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.swaylock;
|
cfg = config.youthlic.programs.swaylock;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.swaylock = {
|
youthlic.programs.swaylock = {
|
||||||
enable = lib.mkEnableOption "swaylock";
|
enable = lib.mkEnableOption "swaylock";
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ lib, config, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.swaync;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.youthlic.programs.swaync;
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.swaync = {
|
youthlic.programs.swaync = {
|
||||||
enable = lib.mkEnableOption "swaync";
|
enable = lib.mkEnableOption "swaync";
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.thunderbird;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.youthlic.programs.thunderbird;
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.thunderbird = {
|
youthlic.programs.thunderbird = {
|
||||||
enable = lib.mkEnableOption "thunderbird";
|
enable = lib.mkEnableOption "thunderbird";
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,9 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.waybar;
|
cfg = config.youthlic.programs.waybar;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.waybar = {
|
youthlic.programs.waybar = {
|
||||||
enable = lib.mkEnableOption "waybar";
|
enable = lib.mkEnableOption "waybar";
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,9 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.wluma;
|
cfg = config.youthlic.programs.wluma;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.wluma = {
|
youthlic.programs.wluma = {
|
||||||
enable = lib.mkEnableOption "wluma";
|
enable = lib.mkEnableOption "wluma";
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,9 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.zed-editor;
|
cfg = config.youthlic.programs.zed-editor;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.zed-editor = {
|
youthlic.programs.zed-editor = {
|
||||||
enable = lib.mkEnableOption "zed-editor";
|
enable = lib.mkEnableOption "zed-editor";
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ lib, config, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.youthlic.xdg-dirs;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.youthlic.xdg-dirs;
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
youthlic.xdg-dirs = {
|
youthlic.xdg-dirs = {
|
||||||
enable = lib.mkEnableOption "xdg-dirs";
|
enable = lib.mkEnableOption "xdg-dirs";
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{pkgs, ...}: {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./stylix.nix
|
./stylix.nix
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,15 @@
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
config,
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
lib,
|
||||||
|
pkgs,
|
||||||
|
modulesPath,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"];
|
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"];
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ ... }:
|
{...}: {
|
||||||
{
|
|
||||||
systemd.network = {
|
systemd.network = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wait-online.enable = false;
|
wait-online.enable = false;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
{ pkgs, rootPath, ... }:
|
|
||||||
{
|
{
|
||||||
|
pkgs,
|
||||||
|
rootPath,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
stylix = {
|
stylix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
image = rootPath + "/assets/wallpaper/01.png";
|
image = rootPath + "/assets/wallpaper/01.png";
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
{ lib, pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
users = {
|
users = {
|
||||||
mutableUsers = true;
|
mutableUsers = true;
|
||||||
users.david = {
|
users.david = {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,4 @@
|
||||||
{
|
{pkgs, ...}: {
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
./forgejo.nix
|
./forgejo.nix
|
||||||
./networking.nix
|
./networking.nix
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ config, ... }:
|
{config, ...}: {
|
||||||
{
|
|
||||||
youthlic.containers.forgejo = {
|
youthlic.containers.forgejo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
domain = "forgejo.youthlic.fun";
|
domain = "forgejo.youthlic.fun";
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,15 @@
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
config,
|
||||||
[ (modulesPath + "/profiles/qemu-guest.nix")
|
lib,
|
||||||
|
pkgs,
|
||||||
|
modulesPath,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk"];
|
boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk"];
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ config, ... }:
|
{config, ...}: {
|
||||||
{
|
|
||||||
sops.secrets."miniflux" = {
|
sops.secrets."miniflux" = {
|
||||||
};
|
};
|
||||||
youthlic.containers.miniflux = {
|
youthlic.containers.miniflux = {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ ... }:
|
{...}: {
|
||||||
{
|
|
||||||
systemd.network = {
|
systemd.network = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wait-online.enable = true;
|
wait-online.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ ... }:
|
{...}: {
|
||||||
{
|
|
||||||
stylix = {
|
stylix = {
|
||||||
enable = false;
|
enable = false;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{pkgs, ...}: {
|
||||||
{
|
|
||||||
users.users.alice = {
|
users.users.alice = {
|
||||||
initialHashedPassword = "$y$j9T$eS5zCi4W.4IPpf3P8Tb/o1$xhumXY1.PJKmTguNi/zlljLbLemNGiubWoUEc878S36";
|
initialHashedPassword = "$y$j9T$eS5zCi4W.4IPpf3P8Tb/o1$xhumXY1.PJKmTguNi/zlljLbLemNGiubWoUEc878S36";
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
imports =
|
imports =
|
||||||
(with inputs; [
|
(with inputs; [
|
||||||
nixos-hardware.nixosModules.asus-fx506hm
|
nixos-hardware.nixosModules.asus-fx506hm
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ ... }:
|
{...}: {
|
||||||
{
|
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk = {
|
disk = {
|
||||||
disk1 = {
|
disk1 = {
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,15 @@
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
config,
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
lib,
|
||||||
|
pkgs,
|
||||||
|
modulesPath,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod"];
|
boot.initrd.availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod"];
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{pkgs, ...}: {
|
||||||
{
|
|
||||||
nixpkgs.config.cudaSupport = true;
|
nixpkgs.config.cudaSupport = true;
|
||||||
services = {
|
services = {
|
||||||
hardware.bolt.enable = true;
|
hardware.bolt.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ ... }:
|
{...}: {
|
||||||
{
|
|
||||||
systemd.network = {
|
systemd.network = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wait-online.enable = false;
|
wait-online.enable = false;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
{ pkgs, rootPath, ... }:
|
|
||||||
{
|
{
|
||||||
|
pkgs,
|
||||||
|
rootPath,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
stylix = {
|
stylix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
image = rootPath + "/assets/wallpaper/01.png";
|
image = rootPath + "/assets/wallpaper/01.png";
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
{ lib, pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
users.users.david = {
|
users.users.david = {
|
||||||
initialHashedPassword = "$y$j9T$eS5zCi4W.4IPpf3P8Tb/o1$xhumXY1.PJKmTguNi/zlljLbLemNGiubWoUEc878S36";
|
initialHashedPassword = "$y$j9T$eS5zCi4W.4IPpf3P8Tb/o1$xhumXY1.PJKmTguNi/zlljLbLemNGiubWoUEc878S36";
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.youthlic.containers;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.youthlic.containers;
|
||||||
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./forgejo.nix
|
./forgejo.nix
|
||||||
./miniflux.nix
|
./miniflux.nix
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,9 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.containers.forgejo;
|
cfg = config.youthlic.containers.forgejo;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.containers.forgejo = {
|
youthlic.containers.forgejo = {
|
||||||
enable = lib.mkEnableOption "forgejo container";
|
enable = lib.mkEnableOption "forgejo container";
|
||||||
|
|
@ -56,9 +54,7 @@ in
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
config =
|
config = {lib, ...}: {
|
||||||
{ lib, ... }:
|
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
./../programs/forgejo.nix
|
./../programs/forgejo.nix
|
||||||
./../programs/postgresql.nix
|
./../programs/postgresql.nix
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,9 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.containers.miniflux;
|
cfg = config.youthlic.containers.miniflux;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.containers.miniflux = {
|
youthlic.containers.miniflux = {
|
||||||
enable = lib.mkEnableOption "miniflux container";
|
enable = lib.mkEnableOption "miniflux container";
|
||||||
|
|
@ -38,9 +36,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config =
|
config = {lib, ...}: {
|
||||||
{ lib, ... }:
|
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
./../programs/miniflux.nix
|
./../programs/miniflux.nix
|
||||||
./../programs/postgresql.nix
|
./../programs/postgresql.nix
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
inputs,
|
inputs,
|
||||||
outputs,
|
outputs,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
imports =
|
imports =
|
||||||
(with inputs; [
|
(with inputs; [
|
||||||
niri-flake.nixosModules.niri
|
niri-flake.nixosModules.niri
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.youthlic.users.deploy;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.youthlic.users.deploy;
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
youthlic.users.deploy = {
|
youthlic.users.deploy = {
|
||||||
enable = lib.mkEnableOption "deploy";
|
enable = lib.mkEnableOption "deploy";
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,9 @@
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.gui;
|
cfg = config.youthlic.gui;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
config = lib.mkIf (cfg.enabled == "cosmic") {
|
config = lib.mkIf (cfg.enabled == "cosmic") {
|
||||||
# Enable the X11 windowing system.
|
# Enable the X11 windowing system.
|
||||||
# You can disable this if you're only using the Wayland session.
|
# You can disable this if you're only using the Wayland session.
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,9 @@
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.gui;
|
cfg = config.youthlic.gui;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
./niri.nix
|
./niri.nix
|
||||||
./cosmic.nix
|
./cosmic.nix
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,9 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.gui;
|
cfg = config.youthlic.gui;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
config = lib.mkIf (cfg.enabled == "kde") {
|
config = lib.mkIf (cfg.enabled == "kde") {
|
||||||
stylix.targets.qt.platform = "kde";
|
stylix.targets.qt.platform = "kde";
|
||||||
services = {
|
services = {
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,9 @@
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.gui;
|
cfg = config.youthlic.gui;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
config = lib.mkIf (cfg.enabled == "niri") {
|
config = lib.mkIf (cfg.enabled == "niri") {
|
||||||
qt = {
|
qt = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,7 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
rootPath,
|
rootPath,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
options.youthlic.home-manager = {
|
options.youthlic.home-manager = {
|
||||||
enable = lib.mkOption {
|
enable = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
|
|
@ -33,8 +32,7 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config =
|
config = let
|
||||||
let
|
|
||||||
cfg = config.youthlic.home-manager;
|
cfg = config.youthlic.home-manager;
|
||||||
unixName = cfg.unixName;
|
unixName = cfg.unixName;
|
||||||
hostName = cfg.hostName;
|
hostName = cfg.hostName;
|
||||||
|
|
@ -44,8 +42,7 @@
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
users."${cfg.unixName}" = (
|
users."${cfg.unixName}" = (
|
||||||
{ ... }:
|
{...}: {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
outputs.homeModules."${unixName}"
|
outputs.homeModules."${unixName}"
|
||||||
(rootPath + "/home/${unixName}/configurations/${hostName}")
|
(rootPath + "/home/${unixName}/configurations/${hostName}")
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,9 @@
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.i18n;
|
cfg = config.youthlic.i18n;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.i18n = {
|
youthlic.i18n = {
|
||||||
enable = lib.mkEnableOption "zh env";
|
enable = lib.mkEnableOption "zh env";
|
||||||
|
|
|
||||||
|
|
@ -5,14 +5,12 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
config = {
|
config = {
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
allowInsecurePredicate =
|
allowInsecurePredicate = p:
|
||||||
p:
|
|
||||||
builtins.elem (lib.getName p) [
|
builtins.elem (lib.getName p) [
|
||||||
# for fluffychat and neochat
|
# for fluffychat and neochat
|
||||||
"olm"
|
"olm"
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,9 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.asusd;
|
cfg = config.youthlic.programs.asusd;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.asusd = {
|
youthlic.programs.asusd = {
|
||||||
enable = lib.mkEnableOption "asusd";
|
enable = lib.mkEnableOption "asusd";
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ lib, config, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.caddy;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.youthlic.programs.caddy;
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.caddy = {
|
youthlic.programs.caddy = {
|
||||||
enable = lib.mkEnableOption "caddy";
|
enable = lib.mkEnableOption "caddy";
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.conduwuit;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.youthlic.programs.conduwuit;
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.conduwuit = {
|
youthlic.programs.conduwuit = {
|
||||||
enable = lib.mkEnableOption "conduwuit";
|
enable = lib.mkEnableOption "conduwuit";
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,9 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.dae;
|
cfg = config.youthlic.programs.dae;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.dae = {
|
youthlic.programs.dae = {
|
||||||
enable = lib.mkEnableOption "dae";
|
enable = lib.mkEnableOption "dae";
|
||||||
|
|
@ -30,8 +28,7 @@ in
|
||||||
mode = "0444";
|
mode = "0444";
|
||||||
sopsFile = rootPath + "/secrets/general.yaml";
|
sopsFile = rootPath + "/secrets/general.yaml";
|
||||||
};
|
};
|
||||||
systemd.services =
|
systemd.services = let
|
||||||
let
|
|
||||||
update = ''
|
update = ''
|
||||||
head="user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36"
|
head="user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36"
|
||||||
new_proxy=/etc/dae/proxy.d.new
|
new_proxy=/etc/dae/proxy.d.new
|
||||||
|
|
@ -95,8 +92,7 @@ in
|
||||||
${update}
|
${update}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
"update-dae-subscription-immediate" = {
|
"update-dae-subscription-immediate" = {
|
||||||
after = ["network-online.target"];
|
after = ["network-online.target"];
|
||||||
wants = ["network-online.target"];
|
wants = ["network-online.target"];
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./transfer-sh.nix
|
./transfer-sh.nix
|
||||||
./rustypaste
|
./rustypaste
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,9 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.forgejo;
|
cfg = config.youthlic.programs.forgejo;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.forgejo = {
|
youthlic.programs.forgejo = {
|
||||||
enable = lib.mkEnableOption "forgejo";
|
enable = lib.mkEnableOption "forgejo";
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ lib, config, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.guix;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.youthlic.programs.guix;
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.guix = {
|
youthlic.programs.guix = {
|
||||||
enable = lib.mkEnableOption "guix";
|
enable = lib.mkEnableOption "guix";
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,9 @@
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.juicity;
|
cfg = config.youthlic.programs.juicity;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
./template.nix
|
./template.nix
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -3,22 +3,18 @@
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.services.juicity;
|
cfg = config.services.juicity;
|
||||||
settingsFormat = pkgs.formats.json {};
|
settingsFormat = pkgs.formats.json {};
|
||||||
clientConfigFile =
|
clientConfigFile =
|
||||||
if (cfg.client.configFile != null) then
|
if (cfg.client.configFile != null)
|
||||||
cfg.client.configFile
|
then cfg.client.configFile
|
||||||
else
|
else settingsFormat cfg.client.settings;
|
||||||
settingsFormat cfg.client.settings;
|
|
||||||
serverConfigFile =
|
serverConfigFile =
|
||||||
if (cfg.server.configFile != null) then
|
if (cfg.server.configFile != null)
|
||||||
cfg.server.configFile
|
then cfg.server.configFile
|
||||||
else
|
else settingsFormat cfg.server.settings;
|
||||||
settingsFormat cfg.server.settings;
|
in {
|
||||||
in
|
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
services.juicity = {
|
services.juicity = {
|
||||||
client = {
|
client = {
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,9 @@
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.kanata;
|
cfg = config.youthlic.programs.kanata;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.kanata = {
|
youthlic.programs.kanata = {
|
||||||
enable = lib.mkEnableOption "kanata";
|
enable = lib.mkEnableOption "kanata";
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,9 @@
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.kvm;
|
cfg = config.youthlic.programs.kvm;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.kvm = {
|
youthlic.programs.kvm = {
|
||||||
enable = lib.mkEnableOption "kvm";
|
enable = lib.mkEnableOption "kvm";
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,16 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.mautrix-telegram;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.youthlic.programs.mautrix-telegram;
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.mautrix-telegram = {
|
youthlic.programs.mautrix-telegram = {
|
||||||
enable = lib.mkEnableOption "mautrix-telegram";
|
enable = lib.mkEnableOption "mautrix-telegram";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config =
|
config = let
|
||||||
let
|
|
||||||
conduwuit-cfg = config.youthlic.programs.conduwuit;
|
conduwuit-cfg = config.youthlic.programs.conduwuit;
|
||||||
caddy-cfg = config.youthlic.programs.caddy;
|
caddy-cfg = config.youthlic.programs.caddy;
|
||||||
in
|
in
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ lib, config, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.miniflux;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.youthlic.programs.miniflux;
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.miniflux = {
|
youthlic.programs.miniflux = {
|
||||||
enable = lib.mkEnableOption "miniflux";
|
enable = lib.mkEnableOption "miniflux";
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ lib, config, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.minio;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.youthlic.programs.minio;
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.minio = {
|
youthlic.programs.minio = {
|
||||||
enable = lib.mkEnableOption "minio";
|
enable = lib.mkEnableOption "minio";
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ ... }:
|
{...}: {
|
||||||
{
|
|
||||||
config = {
|
config = {
|
||||||
programs.nh = {
|
programs.nh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,9 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.nix-ld;
|
cfg = config.youthlic.programs.nix-ld;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.nix-ld = {
|
youthlic.programs.nix-ld = {
|
||||||
enable = lib.mkEnableOption "nix-ld";
|
enable = lib.mkEnableOption "nix-ld";
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.open-webui;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.youthlic.programs.open-webui;
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.open-webui = {
|
youthlic.programs.open-webui = {
|
||||||
enable = lib.mkEnableOption "open-webui";
|
enable = lib.mkEnableOption "open-webui";
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.openssh;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.youthlic.programs.openssh;
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.openssh = {
|
youthlic.programs.openssh = {
|
||||||
enable = lib.mkEnableOption "openssh";
|
enable = lib.mkEnableOption "openssh";
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ lib, config, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.owncast;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.youthlic.programs.owncast;
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.owncast = {
|
youthlic.programs.owncast = {
|
||||||
enable = lib.mkEnableOption "owncast";
|
enable = lib.mkEnableOption "owncast";
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,9 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.postgresql;
|
cfg = config.youthlic.programs.postgresql;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.postgresql = {
|
youthlic.programs.postgresql = {
|
||||||
enable = lib.mkEnableOption "postgresql";
|
enable = lib.mkEnableOption "postgresql";
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ lib, config, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.rustypaste;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.youthlic.programs.rustypaste;
|
||||||
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./template.nix
|
./template.nix
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -3,13 +3,11 @@
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.services.rustypaste;
|
cfg = config.services.rustypaste;
|
||||||
settingsFormat = pkgs.formats.toml {};
|
settingsFormat = pkgs.formats.toml {};
|
||||||
configFile = settingsFormat.generate "rustypaste-config.toml" cfg.settings;
|
configFile = settingsFormat.generate "rustypaste-config.toml" cfg.settings;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
services.rustypaste = {
|
services.rustypaste = {
|
||||||
enable = lib.mkEnableOption "rustypaste";
|
enable = lib.mkEnableOption "rustypaste";
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,9 @@
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.steam;
|
cfg = config.youthlic.programs.steam;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.steam = {
|
youthlic.programs.steam = {
|
||||||
enable = lib.mkEnableOption "steam";
|
enable = lib.mkEnableOption "steam";
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.tailscale;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.youthlic.programs.tailscale;
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.tailscale = {
|
youthlic.programs.tailscale = {
|
||||||
enable = lib.mkEnableOption "tailscale";
|
enable = lib.mkEnableOption "tailscale";
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ lib, config, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.transfer-sh;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.youthlic.programs.transfer-sh;
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.transfer-sh = {
|
youthlic.programs.transfer-sh = {
|
||||||
enable = lib.mkEnableOption "transfer.sh";
|
enable = lib.mkEnableOption "transfer.sh";
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,9 @@
|
||||||
inputs,
|
inputs,
|
||||||
rootPath,
|
rootPath,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.youthlic.programs.transmission;
|
cfg = config.youthlic.programs.transmission;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.transmission = {
|
youthlic.programs.transmission = {
|
||||||
enable = lib.mkEnableOption "transmission";
|
enable = lib.mkEnableOption "transmission";
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,7 @@
|
||||||
rootPath,
|
rootPath,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
config = {
|
config = {
|
||||||
sops.defaultSopsFile = rootPath + "/secrets/general.yaml";
|
sops.defaultSopsFile = rootPath + "/secrets/general.yaml";
|
||||||
sops.age = {
|
sops.age = {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
{ ... }@args:
|
{...} @ args: final: prev: let
|
||||||
final: prev:
|
|
||||||
let
|
|
||||||
inherit (prev) lib;
|
inherit (prev) lib;
|
||||||
in
|
in
|
||||||
[
|
[
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,6 @@
|
||||||
{ outputs, ... }:
|
{outputs, ...}: final: prev: let
|
||||||
final: prev:
|
|
||||||
let
|
|
||||||
inherit (final) stdenv;
|
inherit (final) stdenv;
|
||||||
inherit (stdenv.hostPlatform) system;
|
inherit (stdenv.hostPlatform) system;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
rime-ice = outputs.packages."${system}".rime-ice;
|
rime-ice = outputs.packages."${system}".rime-ice;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue