Compare commits
No commits in common. "42b8f67be810965a07f38e05d8a1b62020ee9b7f" and "c9fc8cf3bcf7db2f503053aa8349463dcfc30d78" have entirely different histories.
42b8f67be8
...
c9fc8cf3bc
|
@ -1,10 +1,4 @@
|
||||||
{
|
{ config, lib, pkgs, inputs, ... }:
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
with pkgs;
|
with pkgs;
|
||||||
|
|
||||||
|
@ -12,11 +6,9 @@ with pkgs;
|
||||||
# Kernel configuration
|
# Kernel configuration
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
|
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
|
||||||
|
kernelParams =
|
||||||
|
[ "zfs.zfs_arc_max=8589934592" "zfs.zfs_arc_min=1073741824" ];
|
||||||
blacklistedKernelModules = [ "btusb" "bluetooth" ];
|
blacklistedKernelModules = [ "btusb" "bluetooth" ];
|
||||||
kernelParams = [
|
|
||||||
"zfs.zfs_arc_max=8589934592"
|
|
||||||
"zfs.zfs_arc_min=1073741824"
|
|
||||||
];
|
|
||||||
supportedFilesystems = [ "zfs" ];
|
supportedFilesystems = [ "zfs" ];
|
||||||
zfs = {
|
zfs = {
|
||||||
requestEncryptionCredentials = true;
|
requestEncryptionCredentials = true;
|
||||||
|
@ -46,10 +38,7 @@ with pkgs;
|
||||||
nix = {
|
nix = {
|
||||||
settings = {
|
settings = {
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
trusted-users = [
|
trusted-users = [ "root" "coolneng" ];
|
||||||
"root"
|
|
||||||
"coolneng"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
gc = {
|
gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
|
@ -87,12 +76,7 @@ with pkgs;
|
||||||
users.users.coolneng = {
|
users.users.coolneng = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
home = "/home/coolneng";
|
home = "/home/coolneng";
|
||||||
extraGroups = [
|
extraGroups = [ "wheel" "video" "audio" "lp" ];
|
||||||
"wheel"
|
|
||||||
"video"
|
|
||||||
"audio"
|
|
||||||
"lp"
|
|
||||||
];
|
|
||||||
shell = fish;
|
shell = fish;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -113,25 +97,15 @@ with pkgs;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Use same version of nixpkgs for nix-shell
|
# Use same version of nixpkgs for nix-shell
|
||||||
nix.nixPath =
|
nix.nixPath = let path = toString ./.;
|
||||||
let
|
in [ "nixpkgs=${inputs.nixpkgs}" "nixos-config=${path}/configuration.nix" ];
|
||||||
path = toString ./.;
|
|
||||||
in
|
|
||||||
[
|
|
||||||
"nixpkgs=${inputs.nixpkgs}"
|
|
||||||
"nixos-config=${path}/configuration.nix"
|
|
||||||
];
|
|
||||||
|
|
||||||
# Auto-upgrade the system
|
# Auto-upgrade the system
|
||||||
system.autoUpgrade = {
|
system.autoUpgrade = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dates = "22:30";
|
dates = "22:30";
|
||||||
flake = "/home/coolneng/Projects/panacea";
|
flake = "/home/coolneng/Projects/panacea";
|
||||||
flags = [
|
flags = [ "--update-input" "nixpkgs" "--commit-lock-file" ];
|
||||||
"--update-input"
|
|
||||||
"nixpkgs"
|
|
||||||
"--commit-lock-file"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Add required dependencies to the auto-upgrade service
|
# Add required dependencies to the auto-upgrade service
|
||||||
|
|
|
@ -1,25 +1,16 @@
|
||||||
{
|
{ config, lib, pkgs, inputs, ... }:
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
with pkgs;
|
with pkgs;
|
||||||
|
|
||||||
let
|
let
|
||||||
# HACK Replace youtube-dl with yt-dlp in mopidy-youtube
|
# HACK Replace youtube-dl with yt-dlp in mopidy-youtube
|
||||||
mopidy-youtube-yt_dlp = mopidy-youtube.overrideAttrs (old: rec {
|
mopidy-youtube-yt_dlp = mopidy-youtube.overrideAttrs (old: rec {
|
||||||
propagatedBuildInputs = old.propagatedBuildInputs ++ [
|
propagatedBuildInputs = old.propagatedBuildInputs
|
||||||
python3.pkgs.yt-dlp
|
++ [ python3.pkgs.yt-dlp python3.pkgs.ytmusicapi ];
|
||||||
python3.pkgs.ytmusicapi
|
|
||||||
];
|
|
||||||
});
|
});
|
||||||
soundcloud_token = builtins.readFile ../secrets/soundcloud_token;
|
soundcloud_token = builtins.readFile ../secrets/soundcloud_token;
|
||||||
|
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
# Configure pipewire as sound server
|
# Configure pipewire as sound server
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -30,12 +21,9 @@ in
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
wireplumber.enable = true;
|
wireplumber.enable = true;
|
||||||
# Enable pipewire-pulse's audio via TCP
|
# Enable pipewire-pulse's audio via TCP
|
||||||
extraConfig.pipewire-pulse.tcp-server = {
|
extraConfig.pipewire-pulse = {
|
||||||
"pulse.properties" = {
|
"pulse.properties" = {
|
||||||
"server.address" = [
|
"server.address" = [ "unix:native" "tcp:127.0.0.1:4713" ];
|
||||||
"unix:native"
|
|
||||||
"tcp:127.0.0.1:4713"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
{
|
{ config, lib, pkgs, ... }:
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
with pkgs;
|
with pkgs;
|
||||||
|
|
||||||
|
|
|
@ -1,23 +1,12 @@
|
||||||
{
|
{ config, lib, pkgs, inputs, ... }:
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
with pkgs;
|
with pkgs;
|
||||||
|
|
||||||
let
|
let
|
||||||
custom-mpv = (
|
custom-mpv = (mpv-unwrapped.wrapper {
|
||||||
mpv-unwrapped.wrapper {
|
mpv = mpv-unwrapped;
|
||||||
mpv = mpv-unwrapped;
|
scripts = with mpvScripts; [ sponsorblock-minimal mpv-cheatsheet ];
|
||||||
scripts = with mpvScripts; [
|
});
|
||||||
sponsorblock-minimal
|
|
||||||
mpv-cheatsheet
|
|
||||||
];
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
patched-bitwig = bitwig-studio.overrideAttrs (old: rec {
|
patched-bitwig = bitwig-studio.overrideAttrs (old: rec {
|
||||||
src = "${inputs.local-bitwig}/bitwig-studio.deb";
|
src = "${inputs.local-bitwig}/bitwig-studio.deb";
|
||||||
|
@ -26,8 +15,7 @@ let
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
# Monitoring
|
# Monitoring
|
||||||
htop
|
htop
|
||||||
|
@ -114,7 +102,7 @@ in
|
||||||
shellcheck
|
shellcheck
|
||||||
shfmt
|
shfmt
|
||||||
## Nix
|
## Nix
|
||||||
nixfmt-rfc-style
|
nixfmt
|
||||||
## Python
|
## Python
|
||||||
nodePackages.pyright
|
nodePackages.pyright
|
||||||
black
|
black
|
||||||
|
|
Loading…
Reference in New Issue