Skip to content

Commit

Permalink
hosts/framework: add ardour
Browse files Browse the repository at this point in the history
  • Loading branch information
linyinfeng committed Oct 7, 2024
1 parent 39b3e04 commit 9dc6f35
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
9 changes: 9 additions & 0 deletions home-manager/profiles/ardour/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{ pkgs, lib, ... }:
let
inherit (pkgs) ardour;
majorVersion = lib.versions.major ardour.version;
in
{
home.packages = with pkgs; [ ardour ];
home.global-persistence.directories = [ ".config/ardour${toString majorVersion}" ];
}
23 changes: 21 additions & 2 deletions nixos/hosts/framework/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,33 @@
};

home-manager.users.yinfeng =
{ suites, ... }:
{ suites, profiles, ... }:
{
imports = suites.full;
imports =
suites.full
++ (with profiles; [
ardour
]);
programs.firefox.profiles.main.settings = {
"media.ffmpeg.vaapi.enabled" = true;
"media.navigator.mediadatadecoder_vpx_enabled" = true;
};
};
# for ardour
security.pam.loginLimits = [
{
domain = "yinfeng";
item = "memlock";
type = "-";
value = "unlimited"; # 1 GiB
}
{
domain = "yinfeng";
item = "rtprio";
type = "-";
value = "unlimited";
}
];

boot.tmp.useTmpfs = true;
services.fstrim.enable = true;
Expand Down

0 comments on commit 9dc6f35

Please sign in to comment.