moderat tidy up of home.nix
This commit is contained in:
parent
7f73c1af20
commit
4ca6cff337
12 changed files with 110 additions and 115 deletions
|
|
@ -12,6 +12,7 @@
|
|||
./web
|
||||
./git
|
||||
./obs
|
||||
./sync
|
||||
./chat
|
||||
./yazi
|
||||
./btop
|
||||
|
|
@ -20,9 +21,7 @@
|
|||
./music
|
||||
./fetch
|
||||
./kitty
|
||||
./syncthing
|
||||
./multimedia
|
||||
./music/production.nix
|
||||
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@
|
|||
|
||||
{
|
||||
|
||||
imports = [ ./homestuck.nix ./lookingGlass.nix ];
|
||||
imports = [
|
||||
./lookingGlass.nix # for GPU passthrough on virtual machines
|
||||
./homestuck.nix # a small module to add a .desktop entry for The unofficial Homestuck Collection
|
||||
];
|
||||
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
|
|
|
|||
|
|
@ -1,17 +1,30 @@
|
|||
# # Chore: pick an offline music player already lol
|
||||
## Requirements:
|
||||
## - have last.fm support
|
||||
## - match other UI styles
|
||||
## - handle large amounts of FLAC/HiRes audio
|
||||
## - optionally support metadata editing
|
||||
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
imports = [
|
||||
./production.nix # programs for creation of music :D
|
||||
];
|
||||
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
|
||||
## Media | Chore: Pick a music player
|
||||
## Utilities
|
||||
puddletag # Music metadata editing
|
||||
|
||||
## Music players
|
||||
spotify # corpo trash
|
||||
strawberry # QT music player
|
||||
#lollypop # GTK music player
|
||||
spotify # Corpo music streaming
|
||||
#lollypop # GTK/Gnome native music player
|
||||
#pragha # Music player
|
||||
#tauon # Music player
|
||||
puddletag # Music metadata editing
|
||||
|
||||
];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -8,19 +8,17 @@
|
|||
## Misc. Tools
|
||||
metronome # GTK metronome
|
||||
|
||||
## Text based programmatic music production
|
||||
supercollider-with-plugins
|
||||
|
||||
## Visual node based audio production
|
||||
bespokesynth # Modular synth and sequencer
|
||||
vcv-rack # Analogue modular synth emulator
|
||||
puredata # Programmatic synth and sequencer
|
||||
|
||||
## Digital Audio Workstations
|
||||
audacity # Audio editing and DAW
|
||||
reaper # Digital audio workstation
|
||||
ardour # Digital Audio Workstation
|
||||
|
||||
## Modular and programmatic music production
|
||||
supercollider-with-plugins
|
||||
bespokesynth # Modular synth and sequencer
|
||||
vcv-rack # Analogue modular synth emulator
|
||||
puredata # Programmatic synth and sequencer
|
||||
|
||||
## Models and synths
|
||||
neural-amp-modeler-lv2 # Guitar amp emulator
|
||||
#cardinal # vcv-rack but as an open source VST
|
||||
|
|
@ -31,6 +29,7 @@
|
|||
};
|
||||
|
||||
## Neovim plugins for Supercollider synth
|
||||
## - full nvim environment for supercollider is WIP
|
||||
programs.nixvim.extraPlugins = with pkgs.vimPlugins;
|
||||
[ nvim-treesitter-parsers.supercollider ];
|
||||
|
||||
|
|
|
|||
|
|
@ -10,39 +10,21 @@
|
|||
# need to set up auto luks unlock with sops-nix
|
||||
|
||||
## Provides LUKS key for Asphodel
|
||||
environment.etc."crypttab".text = ''
|
||||
data /dev/disk/by-uuid/45f5f6ad-a676-4bc1-ad4b-e3e26b5697f4 ${config.sops.secrets.Asphodel-key.path}
|
||||
'';
|
||||
#environment.etc."crypttab".text = ''
|
||||
#data /dev/disk/by-uuid/45f5f6ad-a676-4bc1-ad4b-e3e26b5697f4 ${config.sops.secrets.Asphodel-key.path}
|
||||
#'';
|
||||
|
||||
## Mounts Asphodel to typical media location
|
||||
fileSystems."/run/media/${primaryUser}/Asphodel".device =
|
||||
"/dev/mapper/Asphodel";
|
||||
#fileSystems."/run/media/${primaryUser}/Asphodel".device = "/dev/mapper/Asphodel";
|
||||
|
||||
home = {
|
||||
home.file = { # Files and directories to copy to ${homeDir}
|
||||
|
||||
## Directories to copy to /home/${username/}
|
||||
file = {
|
||||
|
||||
## Path to automount disks to
|
||||
#"Disks" = {
|
||||
#source = ./Disks;
|
||||
#target = "${disksPath}";
|
||||
#recursive = true;
|
||||
#};
|
||||
|
||||
## (current) Flake path
|
||||
#"flakes/nixdots" = {
|
||||
#source = ../../../../nixdots;
|
||||
#recursive = true;
|
||||
#};
|
||||
|
||||
## (future) Flake path
|
||||
#"SerenityOS" = {
|
||||
#source = ./SerenityOS;
|
||||
#target = "${flakePath}";
|
||||
#recursive = true;
|
||||
#};
|
||||
|
||||
};
|
||||
## Example format for home.file
|
||||
#"Foo" = { # Name for the copied file
|
||||
#source = ./Foo; # Source is relative to this file
|
||||
#target = "Desired/Path/To/Foo"; # Target path for Foo within ${homeDir}
|
||||
#recursive = true; # Unsure if necessary for most things
|
||||
#};
|
||||
|
||||
};
|
||||
|
||||
|
|
@ -59,6 +41,13 @@
|
|||
#};
|
||||
};
|
||||
|
||||
## Syncthing program service
|
||||
syncthing = {
|
||||
enable = true;
|
||||
tray.enable = true;
|
||||
#guiAddress = "home.syncthing";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
31
home/programs/sync/postActivation.nix
Normal file
31
home/programs/sync/postActivation.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ inputs, outputs, lib, config, pkgs, primaryUser, homeDir, flakePath, disksPath
|
||||
, ... }:
|
||||
|
||||
{
|
||||
|
||||
## Work in progress - to fix/configure:
|
||||
## - automatically copy flake repo to desired path
|
||||
## - automatically copy sync directories to to desired paths
|
||||
## - expand script with a try/catch block to provide output for failed links
|
||||
## - expand script to only run if desired directories are NOT already linked
|
||||
|
||||
## To utilise this script place the following option into some system-level module
|
||||
imports = [ ../home/scripts/automount/postActivation.nix ];
|
||||
|
||||
## Runs after using `sudo nixos-rebuild switch --flake .#<hostname>`
|
||||
system.activationScripts.disksLink = {
|
||||
supportsDryActivation = false;
|
||||
## Prints status of run commmand with a cute message if successful
|
||||
text = ''
|
||||
cd ~ && ln -s Disks /run/media/${primaryUser}/*
|
||||
echo "Current variables required are:"
|
||||
echo "primaryUser - ${primaryUser}"
|
||||
echo "homeDir - ${homeDir}"
|
||||
echo "current paths linked are:"
|
||||
echo "flakePath - ${flakePath}"
|
||||
echo "disksPath - ${disksPath}"
|
||||
echo "<3"
|
||||
'';
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
{
|
||||
|
||||
services = {
|
||||
|
||||
syncthing = {
|
||||
enable = false;
|
||||
#tray.enable = true;
|
||||
#guiAddress = "home.syncthing";
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
{ pkgs, flakePath, disksPath, primaryUser, ... }:
|
||||
|
||||
{
|
||||
|
||||
imports = [ ];
|
||||
|
||||
## Runs after using `sudo nixos-rebuild switch --flake .#<hostname>`
|
||||
system.activationScripts.disksLink = {
|
||||
supportsDryActivation = false;
|
||||
## Prints status of run commmand with a cute message if successful
|
||||
text = ''
|
||||
cd ~ && ln -s Disks /run/media/${primaryUser}/*
|
||||
echo "disksPaths linked successfully <3"
|
||||
'';
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -1,6 +1,10 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ ./automount ./startup.nix ./desktop.nix ./battery.nix ./nix-utils.nix ];
|
||||
imports = [
|
||||
./startup.nix # Programs and scripts executed upon entering desktop environments
|
||||
./desktop.nix # Programs and scripts essential to operating desktop environments
|
||||
./battery.nix # Script for interfacing with batteries present on certain devices
|
||||
./nix-utils.nix # Programs and scripts for interacting with NixOS infrastructure
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue