format all code with alejandra
This commit is contained in:
parent
fa0cda2673
commit
4f0d45e4d5
89 changed files with 1605 additions and 1298 deletions
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
imports = [
|
||||
./sddm.nix
|
||||
./secrets
|
||||
|
|
|
|||
|
|
@ -1,13 +1,17 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
inherit (lib)
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit
|
||||
(lib)
|
||||
mkEnableOption
|
||||
mkIf
|
||||
;
|
||||
;
|
||||
|
||||
cfg = config.my.displayManager.sddm;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options.my.displayManager.sddm.enable = mkEnableOption "SDDM setup";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
|
@ -17,15 +21,17 @@ in
|
|||
};
|
||||
|
||||
environment.systemPackages = builtins.attrValues {
|
||||
inherit (pkgs.packages)
|
||||
inherit
|
||||
(pkgs.packages)
|
||||
sddm-sugar-candy
|
||||
;
|
||||
;
|
||||
|
||||
inherit (pkgs.libsForQt5.qt5)
|
||||
inherit
|
||||
(pkgs.libsForQt5.qt5)
|
||||
qtgraphicaleffects
|
||||
qtquickcontrols2
|
||||
qtsvg
|
||||
;
|
||||
;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,14 @@
|
|||
{ config, lib, options, ... }:
|
||||
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
options,
|
||||
...
|
||||
}: {
|
||||
config.age = {
|
||||
identityPaths = options.age.identityPaths.default ++ [
|
||||
"/home/alarsyo/.ssh/id_ed25519"
|
||||
];
|
||||
identityPaths =
|
||||
options.age.identityPaths.default
|
||||
++ [
|
||||
"/home/alarsyo/.ssh/id_ed25519"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,36 +1,35 @@
|
|||
let
|
||||
alarsyo = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH3rrF3VSWI4n4cpguvlmLAaU3uftuX4AVV/39S/8GO9 alarsyo@thinkpad";
|
||||
users = [ alarsyo ];
|
||||
users = [alarsyo];
|
||||
|
||||
boreal = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAagal1aqZh52wEmgsw7fkCzO41o4Cx+nV4wJGZuX1RP root@boreal";
|
||||
poseidon = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKYhZYMbWQG9TSQ2qze8GgFo2XrZzgu/GuSOGwenByJo root@poseidon";
|
||||
zephyrus = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILU4JfIADH9MXUnVe+3ezYK9WXsqy/jJcm1zFkmL4aSU root@zephyrus";
|
||||
|
||||
machines = [ boreal poseidon zephyrus ];
|
||||
machines = [boreal poseidon zephyrus];
|
||||
|
||||
all = users ++ machines;
|
||||
in
|
||||
{
|
||||
"gandi/api-key.age".publicKeys = [ poseidon ];
|
||||
in {
|
||||
"gandi/api-key.age".publicKeys = [poseidon];
|
||||
|
||||
"lohr/shared-secret.age".publicKeys = [ poseidon ];
|
||||
"lohr/shared-secret.age".publicKeys = [poseidon];
|
||||
|
||||
"matrix-synapse/secret-config.age".publicKeys = [ poseidon ];
|
||||
"matrix-synapse/secret-config.age".publicKeys = [poseidon];
|
||||
|
||||
"miniflux/admin-credentials.age".publicKeys = [ poseidon ];
|
||||
"miniflux/admin-credentials.age".publicKeys = [poseidon];
|
||||
|
||||
"nextcloud/admin-pass.age".publicKeys = [ poseidon ];
|
||||
"nextcloud/admin-pass.age".publicKeys = [poseidon];
|
||||
|
||||
"paperless/admin-password.age".publicKeys = [ poseidon ];
|
||||
"paperless/secret-key.age".publicKeys = [ poseidon ];
|
||||
"paperless/admin-password.age".publicKeys = [poseidon];
|
||||
"paperless/secret-key.age".publicKeys = [poseidon];
|
||||
|
||||
"restic-backup/boreal-password.age".publicKeys = [ alarsyo boreal ];
|
||||
"restic-backup/boreal-credentials.age".publicKeys = [ alarsyo boreal ];
|
||||
"restic-backup/poseidon-password.age".publicKeys = [ alarsyo poseidon ];
|
||||
"restic-backup/poseidon-credentials.age".publicKeys = [ alarsyo poseidon ];
|
||||
"restic-backup/zephyrus-password.age".publicKeys = [ alarsyo zephyrus ];
|
||||
"restic-backup/zephyrus-credentials.age".publicKeys = [ alarsyo zephyrus ];
|
||||
"restic-backup/boreal-password.age".publicKeys = [alarsyo boreal];
|
||||
"restic-backup/boreal-credentials.age".publicKeys = [alarsyo boreal];
|
||||
"restic-backup/poseidon-password.age".publicKeys = [alarsyo poseidon];
|
||||
"restic-backup/poseidon-credentials.age".publicKeys = [alarsyo poseidon];
|
||||
"restic-backup/zephyrus-password.age".publicKeys = [alarsyo zephyrus];
|
||||
"restic-backup/zephyrus-credentials.age".publicKeys = [alarsyo zephyrus];
|
||||
|
||||
"users/root-hashed-password.age".publicKeys = machines;
|
||||
"users/alarsyo-hashed-password.age".publicKeys = machines ++ [ alarsyo ];
|
||||
"users/alarsyo-hashed-password.age".publicKeys = machines ++ [alarsyo];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,23 +1,27 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (lib)
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit
|
||||
(lib)
|
||||
concatStringsSep
|
||||
literalExample
|
||||
mapAttrs'
|
||||
mkIf
|
||||
mkOption
|
||||
nameValuePair
|
||||
;
|
||||
;
|
||||
|
||||
cfg = config.my.wakeonwlan;
|
||||
|
||||
mkWowlanService = name: cfg:
|
||||
nameValuePair "wowlan-${name}" {
|
||||
description = "Enable WoWLAN for interface ${name}";
|
||||
requires = [ "network.target" ];
|
||||
after = [ "network.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
requires = ["network.target"];
|
||||
after = ["network.target"];
|
||||
wantedBy = ["multi-user.target"];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
};
|
||||
|
|
@ -25,11 +29,12 @@ let
|
|||
${pkgs.iw}/bin/iw ${name} wowlan enable ${concatStringsSep " " cfg.methods}
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
options.my.wakeonwlan = let inherit (lib) types; in {
|
||||
in {
|
||||
options.my.wakeonwlan = let
|
||||
inherit (lib) types;
|
||||
in {
|
||||
interfaces = mkOption {
|
||||
default = { };
|
||||
default = {};
|
||||
description = "Wireless interfaces where you want to enable WoWLAN";
|
||||
example = literalExample ''
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue