improved organisation
moved host modules to hosts/modules and modified deploy script
This commit is contained in:
parent
9636eab7f6
commit
c3b02c5f7b
18 changed files with 27 additions and 20 deletions
12
hosts/modules/core/bluetooth.nix
Executable file
12
hosts/modules/core/bluetooth.nix
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
# Enable Bluetooth
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.bluetooth.powerOnBoot = false;
|
||||
|
||||
# TODO: this should be managed by home-manager
|
||||
environment.systemPackages = with pkgs; [
|
||||
overskride
|
||||
];
|
||||
}
|
||||
15
hosts/modules/core/bootloader/grub.nix
Executable file
15
hosts/modules/core/bootloader/grub.nix
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
{...}:
|
||||
|
||||
{
|
||||
boot.loader = {
|
||||
efi = {
|
||||
canTouchEfiVariables = true;
|
||||
efiSysMountPoint = "/boot/efi";
|
||||
};
|
||||
grub = {
|
||||
efiSupport = true;
|
||||
#efiInstallAsRemovable = true; # in case canTouchEfiVariables doesn't work on your system
|
||||
device = "nodev";
|
||||
};
|
||||
};
|
||||
}
|
||||
8
hosts/modules/core/bootloader/systemd-boot.nix
Executable file
8
hosts/modules/core/bootloader/systemd-boot.nix
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
{...}:
|
||||
|
||||
{
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
}
|
||||
16
hosts/modules/core/garbage-collector.nix
Executable file
16
hosts/modules/core/garbage-collector.nix
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
# Optimize storage and automatic scheduled GC running
|
||||
# If you want to run GC manually, use commands:
|
||||
# `nix-store --optimize` for finding and eliminating redundant copies of identical store paths
|
||||
# `nix-store --gc` for optimizing the nix store and removing unreferenced and obsolete store paths
|
||||
# `nix-collect-garbage -d` for deleting old generations of user profiles
|
||||
nix.settings.auto-optimise-store = true;
|
||||
nix.optimise.automatic = true;
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 14d";
|
||||
};
|
||||
}
|
||||
0
hosts/modules/core/sound/default.nix
Executable file
0
hosts/modules/core/sound/default.nix
Executable file
29
hosts/modules/core/sound/pipewire.nix
Executable file
29
hosts/modules/core/sound/pipewire.nix
Executable file
|
|
@ -0,0 +1,29 @@
|
|||
# Credit: https://github.com/XNM1/linux-nixos-hyprland-config-dotfiles/
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
# Enable sound with pipewire.
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
|
||||
wireplumber.enable = true;
|
||||
|
||||
# use the example session manager (no others are packaged yet so this is enabled by default,
|
||||
# no need to redefine it in your config for now)
|
||||
# media-session.enable = true;
|
||||
};
|
||||
|
||||
# TODO: these should instead be manager but home-manager
|
||||
environment.systemPackages = with pkgs; [
|
||||
helvum
|
||||
easyeffects
|
||||
];
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue