Compare commits
3 commits
26521600a1
...
0b77381bb0
Author | SHA1 | Date | |
---|---|---|---|
0b77381bb0 | |||
1c8e7e9b93 | |||
985f687cc4 |
4 changed files with 62 additions and 38 deletions
|
@ -8,9 +8,13 @@
|
|||
sisyphus = {
|
||||
desktop.sway.enable = true;
|
||||
|
||||
hardware.nvidia = {
|
||||
enable = true;
|
||||
model = "Quadro T2000";
|
||||
hardware = {
|
||||
eid.enable = true;
|
||||
nvidia = {
|
||||
enable = true;
|
||||
model = "Quadro T2000";
|
||||
};
|
||||
yubikey.enable = true;
|
||||
};
|
||||
|
||||
networking = {
|
||||
|
@ -31,7 +35,6 @@
|
|||
};
|
||||
|
||||
services = {
|
||||
monero.enable = true;
|
||||
pipewire.enable = true;
|
||||
tailscale.enable = true;
|
||||
};
|
||||
|
@ -39,7 +42,7 @@
|
|||
users.tdpeuter.enable = true;
|
||||
|
||||
virtualisation = {
|
||||
qemu.enable = true;
|
||||
docker.enable = true;
|
||||
virtualbox.enable = true;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./eid
|
||||
./nvidia
|
||||
./yubikey
|
||||
];
|
||||
|
|
18
nixos/modules/hardware/eid/default.nix
Normal file
18
nixos/modules/hardware/eid/default.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ config, lib, pkgs-unstable, ... }:
|
||||
|
||||
let
|
||||
cfg = config.sisyphus.hardware.eid;
|
||||
in {
|
||||
options.sisyphus.hardware.eid.enable = lib.mkEnableOption "Electronic identity card (eID)";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.pcscd = {
|
||||
enable = true;
|
||||
plugins = [ pkgs-unstable.ccid ];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs-unstable; [
|
||||
eid-mw
|
||||
];
|
||||
};
|
||||
}
|
|
@ -18,42 +18,44 @@ in {
|
|||
DisableFirefoxStudies = true;
|
||||
DisablePocket = true;
|
||||
DisableTelemetry = true;
|
||||
ExtensionSettings = {};
|
||||
OfferToSaveLogins = false;
|
||||
};
|
||||
# Support smart cards
|
||||
pkcs11Modules = with pkgs-unstable; [
|
||||
eid-mw
|
||||
];
|
||||
};
|
||||
profiles.tdpeuter = {
|
||||
search = {
|
||||
default = "DuckDuckGo";
|
||||
force = true;
|
||||
engines = {
|
||||
"Bing".metaData.hidden = true;
|
||||
"eBay".metaData.hidden = true;
|
||||
|
||||
"Nix Packages" = {
|
||||
urls = [{
|
||||
template = "https://search.nixos.org/packages";
|
||||
params = [
|
||||
{ name = "type"; value = "packages"; }
|
||||
{ name = "query"; value = "{searchTerms}"; }
|
||||
];
|
||||
}];
|
||||
profiles.tdpeuter.search = {
|
||||
default = "DuckDuckGo";
|
||||
force = true;
|
||||
engines = {
|
||||
"Bing".metaData.hidden = true;
|
||||
"eBay".metaData.hidden = true;
|
||||
|
||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||
definedAliases = [ "@np" ];
|
||||
};
|
||||
"GitHub" = {
|
||||
urls = [{
|
||||
template = "https://github.com/search";
|
||||
params = [
|
||||
{ name = "q"; value = "{searchTerms}"; }
|
||||
{ name = "type"; value = "repositories"; }
|
||||
];
|
||||
}];
|
||||
"Nix Packages" = {
|
||||
urls = [{
|
||||
template = "https://search.nixos.org/packages";
|
||||
params = [
|
||||
{ name = "type"; value = "packages"; }
|
||||
{ name = "query"; value = "{searchTerms}"; }
|
||||
];
|
||||
}];
|
||||
|
||||
icon = "${pkgs.icosystem}/share/icons/icosystem/scalable/apps/github-mark.svg";
|
||||
definedAliases = [ "@gh" ];
|
||||
};
|
||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||
definedAliases = [ "@np" ];
|
||||
};
|
||||
"GitHub" = {
|
||||
urls = [{
|
||||
template = "https://github.com/search";
|
||||
params = [
|
||||
{ name = "q"; value = "{searchTerms}"; }
|
||||
{ name = "type"; value = "repositories"; }
|
||||
];
|
||||
}];
|
||||
|
||||
icon = "${pkgs.icosystem}/share/icons/icosystem/scalable/apps/github-mark.svg";
|
||||
definedAliases = [ "@gh" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue