feat: add ssh keys files
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
imports = [
|
||||
./programs
|
||||
./profiles
|
||||
./packages
|
||||
];
|
||||
options = {};
|
||||
config = {};
|
||||
|
||||
7
modules/home-manager/packages/default.nix
Normal file
7
modules/home-manager/packages/default.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{...}: {
|
||||
imports = [
|
||||
./lmms.nix
|
||||
];
|
||||
options = {};
|
||||
config = {};
|
||||
}
|
||||
63
modules/home-manager/packages/lmms.nix
Normal file
63
modules/home-manager/packages/lmms.nix
Normal file
@@ -0,0 +1,63 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
package = pkgs.stdenv.mkDerivation rec {
|
||||
pname = "lmms";
|
||||
version = "1.2.2";
|
||||
|
||||
src = builtins.fetchGit {
|
||||
url = "https://github.com/LMMS/lmms.git";
|
||||
ref = "main";
|
||||
rev = "729593c0228c2553248099a09f4fcb6dbe8312e1";
|
||||
submodules = true;
|
||||
shallow = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = with pkgs; [cmake libsForQt5.qt5.qttools pkg-config];
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
carla
|
||||
alsa-lib
|
||||
fftwFloat
|
||||
fltk13
|
||||
fluidsynth
|
||||
lame
|
||||
libgig
|
||||
libjack2
|
||||
libpulseaudio
|
||||
libsamplerate
|
||||
libsndfile
|
||||
libsoundio
|
||||
libvorbis
|
||||
portaudio
|
||||
libsForQt5.qt5.qtbase
|
||||
libsForQt5.qt5.qtx11extras
|
||||
SDL # TODO: switch to SDL2 in the next version
|
||||
];
|
||||
|
||||
patches = [
|
||||
(pkgs.fetchpatch {
|
||||
url = "https://raw.githubusercontent.com/archlinux/svntogit-community/cf64acc45e3264c6923885867e2dbf8b7586a36b/trunk/lmms-carla-export.patch";
|
||||
sha256 = "sha256-wlSewo93DYBN2PvrcV58dC9kpoo9Y587eCeya5OX+j4=";
|
||||
})
|
||||
];
|
||||
|
||||
cmakeFlags = ["-DWANT_QT5=ON"];
|
||||
|
||||
meta = with lib; {
|
||||
description = "DAW similar to FL Studio (music production software)";
|
||||
mainProgram = "lmms";
|
||||
homepage = "https://lmms.io";
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = ["x86_64-linux" "i686-linux"];
|
||||
maintainers = [];
|
||||
};
|
||||
};
|
||||
in {
|
||||
home.packages = [
|
||||
# package
|
||||
];
|
||||
}
|
||||
@@ -129,6 +129,10 @@ in {
|
||||
name = mkOption {
|
||||
type = passwdEntry str;
|
||||
};
|
||||
openssh = mkOption {
|
||||
type = anything;
|
||||
default = {};
|
||||
};
|
||||
packages = mkOption {
|
||||
type = listOf package;
|
||||
default = [];
|
||||
@@ -186,6 +190,7 @@ in {
|
||||
isSystemUser
|
||||
linger
|
||||
name
|
||||
openssh
|
||||
pamMount
|
||||
shell
|
||||
subGidRanges
|
||||
@@ -217,7 +222,7 @@ in {
|
||||
})
|
||||
cfg.users;
|
||||
|
||||
home-manager.backupFileExtension = "backup~";
|
||||
home-manager.backupFileExtension = "backup";
|
||||
home-manager.extraSpecialArgs = {inherit inputs;};
|
||||
home-manager.users =
|
||||
mapAttrs
|
||||
|
||||
Reference in New Issue
Block a user