Change config name
This commit is contained in:
parent
94eda4ba47
commit
aa4d45d063
62 changed files with 82 additions and 81 deletions
|
|
@ -2,7 +2,7 @@
|
|||
let
|
||||
solarized = import ./solarized.nix;
|
||||
|
||||
#nixosConfig.myConfig.terminalEmulator.command = pkgs.writeShellScriptBin "alacritty-sway-cwd" ''
|
||||
#nixosConfig.jalr.terminalEmulator.command = pkgs.writeShellScriptBin "alacritty-sway-cwd" ''
|
||||
# this_alacritty_pid="$(swaymsg -t get_tree | ${pkgs.jq} -e 'recurse(.nodes[]?) | select((.focused==true) and (.app_id=="Alacritty")).pid')"
|
||||
|
||||
# if [ "$this_alacritty_pid" ]; then
|
||||
|
|
@ -141,7 +141,7 @@ in
|
|||
{
|
||||
|
||||
programs.alacritty = {
|
||||
enable = nixosConfig.myConfig.gui.enable;
|
||||
enable = nixosConfig.jalr.gui.enable;
|
||||
};
|
||||
|
||||
# The option `home-manager.users.jalr.xdg.configFile.dark.alacritty/alacritty-dark.yml' does not exist
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ let
|
|||
xdg = config.xdg;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf nixosConfig.myConfig.aws.enable {
|
||||
config = lib.mkIf nixosConfig.jalr.aws.enable {
|
||||
# https://github.com/aws/aws-sdk/issues/30
|
||||
home.sessionVariables = {
|
||||
AWS_CONFIG_FILE = "${xdg.configHome}/aws/config";
|
||||
|
|
@ -19,7 +19,7 @@ in
|
|||
(name: value:
|
||||
lib.attrsets.nameValuePair ("profile ${name}") (value)
|
||||
)
|
||||
nixosConfig.myConfig.aws.accounts
|
||||
nixosConfig.jalr.aws.accounts
|
||||
//
|
||||
{
|
||||
"default" = {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ nixosConfig, lib, pkgs, ... }:
|
||||
lib.mkIf nixosConfig.myConfig.gui.enable {
|
||||
lib.mkIf nixosConfig.jalr.gui.enable {
|
||||
home.packages = with pkgs; [
|
||||
claws-mail
|
||||
];
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
lsof
|
||||
ncdu
|
||||
ripgrep
|
||||
] ++ (if ! nixosConfig.myConfig.workstation.enable then [ ] else [
|
||||
] ++ (if ! nixosConfig.jalr.workstation.enable then [ ] else [
|
||||
direnv
|
||||
dnsutils
|
||||
screen
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ nixosConfig, lib, pkgs, ... }:
|
||||
|
||||
lib.mkIf nixosConfig.myConfig.tradebyte.enable {
|
||||
lib.mkIf nixosConfig.jalr.tradebyte.enable {
|
||||
home.packages = with pkgs; [
|
||||
master.ferdium
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ nixosConfig, lib, pkgs, ... }:
|
||||
|
||||
lib.mkIf nixosConfig.myConfig.gui.enable {
|
||||
lib.mkIf nixosConfig.jalr.gui.enable {
|
||||
home.packages = with pkgs; [
|
||||
mumble
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ nixosConfig, lib, pkgs, ... }:
|
||||
|
||||
lib.mkIf nixosConfig.myConfig.gui.enable {
|
||||
lib.mkIf nixosConfig.jalr.gui.enable {
|
||||
home.packages = with pkgs; [
|
||||
qtox
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ nixosConfig, lib, pkgs, ... }:
|
||||
|
||||
lib.mkIf nixosConfig.myConfig.gui.enable {
|
||||
lib.mkIf nixosConfig.jalr.gui.enable {
|
||||
home.packages = with pkgs; [
|
||||
tdesktop
|
||||
];
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
./${nixosConfig.myConfig.terminalEmulator}.nix
|
||||
./${nixosConfig.jalr.terminalEmulator}.nix
|
||||
./aws.nix
|
||||
./claws-mail.nix
|
||||
./cli.nix
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{ nixosConfig, pkgs, ... }:
|
||||
{
|
||||
programs.firefox = {
|
||||
enable = nixosConfig.myConfig.gui.enable;
|
||||
enable = nixosConfig.jalr.gui.enable;
|
||||
package = pkgs.firefox-esr;
|
||||
profiles = {
|
||||
default = {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ nixosConfig, lib, pkgs, ... }:
|
||||
|
||||
lib.mkIf nixosConfig.myConfig.gui.enable {
|
||||
lib.mkIf nixosConfig.jalr.gui.enable {
|
||||
home.packages = with pkgs; [
|
||||
master.betaflight-configurator
|
||||
fpvout
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
programs = {
|
||||
git = {
|
||||
enable = true;
|
||||
userName = nixosConfig.myConfig.git.user.name;
|
||||
userEmail = nixosConfig.myConfig.git.user.email;
|
||||
userName = nixosConfig.jalr.git.user.name;
|
||||
userEmail = nixosConfig.jalr.git.user.email;
|
||||
signing = {
|
||||
key = nixosConfig.myConfig.gpg.defaultKey;
|
||||
signByDefault = nixosConfig.myConfig.git.signByDefault;
|
||||
key = nixosConfig.jalr.gpg.defaultKey;
|
||||
signByDefault = nixosConfig.jalr.git.signByDefault;
|
||||
};
|
||||
extraConfig = {
|
||||
init.defaultBranch = "main";
|
||||
|
|
|
|||
|
|
@ -8,6 +8,6 @@ let
|
|||
pkgs.gnuradio3_8Packages;
|
||||
};
|
||||
in
|
||||
(lib.mkIf nixosConfig.myConfig.gui.enable {
|
||||
(lib.mkIf nixosConfig.jalr.gui.enable {
|
||||
home.packages = [ gnuradioEnv ];
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ nixosConfig, lib, pkgs, ... }:
|
||||
|
||||
lib.mkIf nixosConfig.myConfig.gui.enable {
|
||||
lib.mkIf nixosConfig.jalr.gui.enable {
|
||||
home.packages = with pkgs; [
|
||||
gimp
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ nixosConfig, lib, pkgs, ... }:
|
||||
|
||||
lib.mkIf nixosConfig.myConfig.gui.enable {
|
||||
lib.mkIf nixosConfig.jalr.gui.enable {
|
||||
home.packages = with pkgs; [
|
||||
inkscape
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ nixosConfig, lib, pkgs, ... }:
|
||||
|
||||
lib.mkIf nixosConfig.myConfig.gui.enable {
|
||||
lib.mkIf nixosConfig.jalr.gui.enable {
|
||||
home.packages = with pkgs; [
|
||||
krita
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ nixosConfig, lib, pkgs, ... }:
|
||||
lib.mkIf nixosConfig.myConfig.gui.enable {
|
||||
lib.mkIf nixosConfig.jalr.gui.enable {
|
||||
home.packages = with pkgs; [
|
||||
gcr # required for pinentry-gnome
|
||||
geeqie
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ nixosConfig, lib, pkgs, ... }:
|
||||
lib.mkIf nixosConfig.myConfig.gui.enable {
|
||||
lib.mkIf nixosConfig.jalr.gui.enable {
|
||||
home.packages = with pkgs; [
|
||||
jameica
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ nixosConfig, lib, pkgs, ... }:
|
||||
lib.mkIf nixosConfig.myConfig.gui.enable {
|
||||
lib.mkIf nixosConfig.jalr.gui.enable {
|
||||
home.packages = with pkgs; [
|
||||
kicad
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ nixosConfig, lib, pkgs, ... }:
|
||||
|
||||
lib.mkIf nixosConfig.myConfig.gui.enable {
|
||||
lib.mkIf nixosConfig.jalr.gui.enable {
|
||||
home.packages = with pkgs; [
|
||||
mpv
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ nixosConfig, lib, pkgs, ... }:
|
||||
|
||||
lib.mkIf nixosConfig.myConfig.gui.enable {
|
||||
lib.mkIf nixosConfig.jalr.gui.enable {
|
||||
home.packages = with pkgs; [
|
||||
mute-indicator
|
||||
];
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@
|
|||
-- init.lua
|
||||
-- this configuration applies to servers and workstations
|
||||
''
|
||||
] ++ lib.optional nixosConfig.myConfig.workstation.enable ''
|
||||
] ++ lib.optional nixosConfig.jalr.workstation.enable ''
|
||||
-- this configuration applies to workstations only
|
||||
-- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md
|
||||
local lsp = require('lspconfig')
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{
|
||||
programs.obs-studio = {
|
||||
enable = nixosConfig.myConfig.gui.enable;
|
||||
enable = nixosConfig.jalr.gui.enable;
|
||||
plugins = with pkgs; [
|
||||
obs-studio-plugins.wlrobs
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ nixosConfig, lib, pkgs, ... }:
|
||||
lib.mkIf nixosConfig.myConfig.gui.enable {
|
||||
lib.mkIf nixosConfig.jalr.gui.enable {
|
||||
home.packages = with pkgs; [
|
||||
openscad
|
||||
];
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ in
|
|||
pw
|
||||
] ++
|
||||
(
|
||||
if nixosConfig.myConfig.gui.enable
|
||||
if nixosConfig.jalr.gui.enable
|
||||
then with pkgs; [
|
||||
qtpass
|
||||
pass-wayland
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ nixosConfig, lib, pkgs, ... }:
|
||||
lib.mkIf nixosConfig.myConfig.gui.enable {
|
||||
lib.mkIf nixosConfig.jalr.gui.enable {
|
||||
home.packages = with pkgs; [
|
||||
pcmanfm
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ nixosConfig, lib, pkgs, ... }:
|
||||
lib.mkIf nixosConfig.myConfig.workstation.enable {
|
||||
lib.mkIf nixosConfig.jalr.workstation.enable {
|
||||
home.packages = with pkgs; [
|
||||
python310
|
||||
python310Packages.virtualenv
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ nixosConfig, lib, pkgs, ... }:
|
||||
|
||||
lib.mkIf nixosConfig.myConfig.gui.enable {
|
||||
lib.mkIf nixosConfig.jalr.gui.enable {
|
||||
home.packages = with pkgs; [
|
||||
audacity
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ nixosConfig, lib, pkgs, ... }:
|
||||
|
||||
lib.mkIf nixosConfig.myConfig.gui.enable {
|
||||
lib.mkIf nixosConfig.jalr.gui.enable {
|
||||
home.packages = with pkgs; [
|
||||
easyeffects
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ nixosConfig, lib, pkgs, ... }:
|
||||
|
||||
lib.mkIf nixosConfig.myConfig.gui.enable {
|
||||
lib.mkIf nixosConfig.jalr.gui.enable {
|
||||
home.packages = with pkgs; [
|
||||
easyeffects
|
||||
pavucontrol
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
let
|
||||
solarized = import ../solarized.nix;
|
||||
terminalEmulator =
|
||||
if nixosConfig.myConfig.terminalEmulator == "alacritty"
|
||||
if nixosConfig.jalr.terminalEmulator == "alacritty"
|
||||
then
|
||||
pkgs.writeShellScript "alacritty-sway-cwd" ''
|
||||
this_alacritty_pid="$(${pkgs.sway}/bin/swaymsg -t get_tree | ${pkgs.jq}/bin/jq -e 'recurse(.nodes[]?) | select((.focused==true) and (.app_id=="Alacritty")).pid')"
|
||||
|
|
@ -18,7 +18,7 @@ let
|
|||
|
||||
exec ${pkgs.alacritty}/bin/alacritty
|
||||
''
|
||||
else nixosConfig.myConfig.terminalEmulator;
|
||||
else nixosConfig.jalr.terminalEmulator;
|
||||
cfg = config.wayland.windowManager.sway.config;
|
||||
wallpaper = pkgs.fetchurl {
|
||||
url = "https://raw.githubusercontent.com/swaywm/sway/3b2bc894a5ebbcbbd6707d45a25d171779c2e874/assets/Sway_Wallpaper_Blue_1920x1080.png";
|
||||
|
|
@ -29,13 +29,13 @@ let
|
|||
move-to-output = pkgs.callPackage ./move-to-output { };
|
||||
in
|
||||
{
|
||||
imports = lib.optionals nixosConfig.myConfig.gui.enable [
|
||||
imports = lib.optionals nixosConfig.jalr.gui.enable [
|
||||
./gammastep.nix
|
||||
./waybar.nix
|
||||
./wofi.nix
|
||||
./yubikey-touch-detector.nix
|
||||
];
|
||||
} // (lib.mkIf nixosConfig.myConfig.gui.enable {
|
||||
} // (lib.mkIf nixosConfig.jalr.gui.enable {
|
||||
home.packages = with pkgs; [
|
||||
sway-contrib.grimshot # screenshots
|
||||
wdisplays # graphical output manager
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ nixosConfig, lib, pkgs, ... }:
|
||||
lib.mkIf nixosConfig.myConfig.gui.enable {
|
||||
lib.mkIf nixosConfig.jalr.gui.enable {
|
||||
home.packages = with pkgs; [
|
||||
(
|
||||
tor-browser-bundle-bin.override {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
options.myConfig = {
|
||||
options.jalr = {
|
||||
git = {
|
||||
user = {
|
||||
name = lib.mkOption {
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ in
|
|||
./default.nix
|
||||
];
|
||||
|
||||
myConfig = {
|
||||
jalr = {
|
||||
git = {
|
||||
user = {
|
||||
name = "Jakob Lechner";
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
./default.nix
|
||||
];
|
||||
|
||||
myConfig = {
|
||||
jalr = {
|
||||
git = {
|
||||
user = {
|
||||
name = "Jakob Lechner";
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@
|
|||
# boot.loader.efi.efiSysMountPoint = "/boot/efi";
|
||||
# Define on which hard drive you want to install Grub.
|
||||
|
||||
myConfig = {
|
||||
jalr = {
|
||||
bootloader = "grub2";
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@
|
|||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3748", GROUP="users", MODE="0660"
|
||||
'';
|
||||
|
||||
myConfig = {
|
||||
jalr = {
|
||||
bootloader = "systemd-boot";
|
||||
uefi.enable = true;
|
||||
gui.enable = true;
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
|
||||
services.udisks2.enable = true;
|
||||
|
||||
myConfig = {
|
||||
jalr = {
|
||||
bootloader = "systemd-boot";
|
||||
uefi.enable = true;
|
||||
gui.enable = true;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
myConfig.qbittorrent = {
|
||||
jalr.qbittorrent = {
|
||||
enable = true;
|
||||
downloadDir = "/sturzbach";
|
||||
fqdn = "sturzbach.jalr.de";
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@
|
|||
SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="6860", GROUP="dialout", MODE="0660"
|
||||
'';
|
||||
|
||||
myConfig = {
|
||||
jalr = {
|
||||
bootloader = "grub2";
|
||||
gui.enable = true;
|
||||
workstation.enable = true;
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
myConfig = {
|
||||
jalr = {
|
||||
bootloader = "systemd-boot";
|
||||
uefi.enable = true;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.myConfig;
|
||||
cfg = config.jalr;
|
||||
in
|
||||
{
|
||||
options.myConfig = {
|
||||
options.jalr = {
|
||||
autologin = {
|
||||
enable = pkgs.lib.mkEnableOption "Enable tty1 autologin";
|
||||
username = pkgs.lib.mkOption {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
options.myConfig.aws = {
|
||||
options.jalr.aws = {
|
||||
enable = lib.mkEnableOption "Enable AWS CLI";
|
||||
accounts = with lib; mkOption {
|
||||
type = with types; attrsOf (submodule ({ config, name, ... }: {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
options.myConfig = {
|
||||
options.jalr = {
|
||||
bootloader = lib.mkOption {
|
||||
type = lib.types.nullOr (lib.types.enum [ "systemd-boot" "grub2" ]);
|
||||
default = null;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
lib.mkIf (config.myConfig.bootloader == "grub2") {
|
||||
lib.mkIf (config.jalr.bootloader == "grub2") {
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
lib.mkIf (config.myConfig.bootloader == "systemd-boot") {
|
||||
lib.mkIf (config.jalr.bootloader == "systemd-boot") {
|
||||
boot = {
|
||||
loader = {
|
||||
systemd-boot = {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
options.myConfig = {
|
||||
options.jalr = {
|
||||
gui.enable = lib.mkEnableOption "GUI";
|
||||
workstation.enable = lib.mkEnableOption "Workstation";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, config, ... }:
|
||||
|
||||
{
|
||||
config = lib.mkIf config.myConfig.workstation.enable {
|
||||
config = lib.mkIf config.jalr.workstation.enable {
|
||||
services.dnsmasq = {
|
||||
enable = true;
|
||||
resolveLocalQueries = true;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{
|
||||
console.font = "Lat2-Terminus16";
|
||||
fonts.fonts = with pkgs; lib.mkIf config.myConfig.gui.enable [
|
||||
fonts.fonts = with pkgs; lib.mkIf config.jalr.gui.enable [
|
||||
(nerdfonts.override { fonts = [ "Iosevka" ]; })
|
||||
font-awesome
|
||||
powerline-fonts
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let portRange = {
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
};
|
||||
let
|
||||
portRange = {
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
};
|
||||
in
|
||||
lib.mkIf config.myConfig.gui.enable {
|
||||
lib.mkIf config.jalr.gui.enable {
|
||||
programs.kdeconnect.enable = true;
|
||||
networking.firewall.allowedTCPPortRanges = [ portRange ];
|
||||
networking.firewall.allowedUDPPortRanges = [ portRange ];
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.myConfig;
|
||||
cfg = config.jalr;
|
||||
in
|
||||
{
|
||||
options.myConfig = {
|
||||
options.jalr = {
|
||||
libvirt = {
|
||||
enable = pkgs.lib.mkEnableOption "Enable libvirt";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.libvirt.enable {
|
||||
environment.systemPackages = with pkgs; lib.mkIf config.myConfig.gui.enable [
|
||||
environment.systemPackages = with pkgs; lib.mkIf config.jalr.gui.enable [
|
||||
spice-gtk
|
||||
virt-manager
|
||||
];
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
})
|
||||
]
|
||||
# Tradebyte access points use legacy crypto
|
||||
++ lib.optional config.myConfig.tradebyte.enable (
|
||||
++ lib.optional config.jalr.tradebyte.enable (
|
||||
final: prev:
|
||||
let
|
||||
inherit (prev) callPackage;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
lib.mkIf config.myConfig.gui.enable {
|
||||
lib.mkIf config.jalr.gui.enable {
|
||||
#boot = {
|
||||
# kernelModules = [ "v4l2loopback" ];
|
||||
# extraModprobeConfig = ''
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
lib.mkIf config.myConfig.gui.enable {
|
||||
lib.mkIf config.jalr.gui.enable {
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = false;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
lib.mkIf config.myConfig.gui.enable {
|
||||
lib.mkIf config.jalr.gui.enable {
|
||||
services.printing = {
|
||||
enable = true;
|
||||
drivers = [ pkgs.brlaser ];
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
{ config, inputs, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.myConfig.qbittorrent;
|
||||
cfg = config.jalr.qbittorrent;
|
||||
in
|
||||
{
|
||||
options.myConfig.qbittorrent = {
|
||||
options.jalr.qbittorrent = {
|
||||
enable = lib.mkEnableOption "the qbittorrent service";
|
||||
homeDir = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.myConfig;
|
||||
cfg = config.jalr;
|
||||
in
|
||||
{
|
||||
options.myConfig = {
|
||||
options.jalr = {
|
||||
sdr = {
|
||||
enable = pkgs.lib.mkEnableOption "Enable software defined radio";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
lib.mkIf config.myConfig.gui.enable {
|
||||
lib.mkIf config.jalr.gui.enable {
|
||||
programs.sway = {
|
||||
enable = true;
|
||||
# FIXME: move to home manager
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
options.myConfig = {
|
||||
options.jalr = {
|
||||
tradebyte.enable = lib.mkEnableOption "TB.config";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.myConfig;
|
||||
cfg = config.jalr;
|
||||
in
|
||||
{
|
||||
options.myConfig = {
|
||||
options.jalr = {
|
||||
uefi.enable = pkgs.lib.mkEnableOption "System uses UEFI" // { default = false; };
|
||||
};
|
||||
config = lib.mkIf cfg.uefi.enable {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
lib.mkIf config.myConfig.gui.enable {
|
||||
lib.mkIf config.jalr.gui.enable {
|
||||
programs.wireshark = {
|
||||
enable = true;
|
||||
package = pkgs.wireshark;
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
config = lib.mkIf config.myConfig.workstation.enable {
|
||||
config = lib.mkIf config.jalr.workstation.enable {
|
||||
programs = {
|
||||
ssh.startAgent = false;
|
||||
gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
pinentryFlavor = if config.myConfig.gui.enable then "gnome3" else "tty";
|
||||
pinentryFlavor = if config.jalr.gui.enable then "gnome3" else "tty";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue