properly import with correct optionals

This commit is contained in:
twoneis 2024-07-02 03:42:35 +02:00
parent dcdfdbaa47
commit 714093946c
12 changed files with 88 additions and 81 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, lib, config, ... }: lib.mkIf(config.withContainers) {
{ lib, config, pkgs, ... }: lib.mkIf config.withContainers {
virtualisation.podman = {
enable = true;
dockerCompat = true;

View file

@ -1,6 +1,5 @@
{ inputs, pkgs, lib, ... }: {
imports = [
./colors.nix
./containers
./games
./gnome

View file

@ -1,4 +1,4 @@
{ lib, config, pkgs, ... }: lib.mkIf (config.withGames) {
{ lib, config, pkgs, ... }: lib.mkIf config.withGames {
programs.steam.enable = true;
programs.gamescope.enable = true;
programs.gamemode.enable = true;

View file

@ -1,4 +1,4 @@
{ lib, config, ... }: lib.mkIf (config.withGnome) {
{ lib, config, ... }: lib.mkIf config.withGnome {
services.xserver = {
enable = true;
desktopManager.gnome.enable = true;

View file

@ -1,4 +1,4 @@
{ lib, config, pkgs, ... }: lib.mkIf (config.withNiri) {
{ lib, config, pkgs, ... }: lib.mkIf config.withNiri {
programs.niri.enable = true;
home-manager.users.twoneis = {

View file

@ -1,31 +1,34 @@
{ lib, config, ... }: lib.mkIf (config.user) {
{ lib, config, ... }: {
imports = [
./programs.nix
./themes.nix
];
# Audio
security.rtkit.enable = true;
config = lib.mkIf config.user{
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
# Audio
security.rtkit.enable = true;
# Bluetooth
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
settings = {
General = {
Enable = "Source,Sink,Media,Socket";
Experimental = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
# Bluetooth
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
settings = {
General = {
Enable = "Source,Sink,Media,Socket";
Experimental = true;
};
};
};
};
services.blueman.enable = true;
services.blueman.enable = true;
};
}

View file

@ -1,5 +1,5 @@
{ pkgs, ... }: {
home-manager.users.twnoneis = {
{ lib, config, pkgs, ... }: lib.mkIf config.user {
home-manager.users.twoneis = {
programs.firefox = {
enable = true;
profiles = {

View file

@ -1,70 +1,72 @@
{ config, pkgs, ... }: {
{ lib, config, pkgs, ... }: {
imports = [
./firefox.nix
];
networking.firewall.allowedTCPPorts = [
57621 # spotifyd
];
services = {
# Needed for some features in nautilus such as auto-mounting and trash
gvfs.enable = true;
};
home-manager.users.twoneis = {
home.packages = with pkgs; [
signal-desktop
vesktop
fractal
loupe
snapshot
gnome.nautilus
libreoffice-qt6-fresh
config = lib.mkIf config.user {
networking.firewall.allowedTCPPorts = [
57621 # spotifyd
];
home.file = {
".config/vesktop/settings.json" = {
source = ./vesktop.conf.json;
};
".config/vesktop/settings/settings.json" = {
source = ./vencord.conf.json;
};
services = {
# Needed for some features in nautilus such as auto-mounting and trash
gvfs.enable = true;
};
programs.pandoc = {
enable = true;
};
home-manager.users.twoneis = {
home.packages = with pkgs; [
signal-desktop
vesktop
fractal
loupe
snapshot
gnome.nautilus
libreoffice-qt6-fresh
];
programs.mpv = {
enable = true;
};
services.spotifyd = {
enable = true;
settings = {
global = {
device_name = config.networking.hostName;
bitrate = 320;
volume_normalisation = true;
autoplay = false;
zeroconf_port = 57621;
home.file = {
".config/vesktop/settings.json" = {
source = ./vesktop.conf.json;
};
".config/vesktop/settings/settings.json" = {
source = ./vencord.conf.json;
};
};
};
programs.thunderbird = {
enable = true;
profiles = {
"default" = {
isDefault = true;
programs.pandoc = {
enable = true;
};
programs.mpv = {
enable = true;
};
services.spotifyd = {
enable = true;
settings = {
global = {
device_name = config.networking.hostName;
bitrate = 320;
volume_normalisation = true;
autoplay = false;
zeroconf_port = 57621;
};
};
};
};
programs.alacritty = {
enable = true;
settings = import ./alacritty.conf.nix;
programs.thunderbird = {
enable = true;
profiles = {
"default" = {
isDefault = true;
};
};
};
programs.alacritty = {
enable = true;
settings = import ./alacritty.conf.nix;
};
};
};
}

View file

@ -17,7 +17,7 @@
home.file = {
".gdbinit" = {
source = ./gdbinit;
source = ./gdbinit.conf;
};
};

View file

@ -1,4 +1,4 @@
{ lib, config, ... }: lib.mkIf (config.withVM) {
{ lib, config, ... }: lib.mkIf config.withVM {
virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true;
users.users.twoneis.extraGroups = [ "libvirtd" ];

View file

@ -12,6 +12,7 @@
./devices/ellaca
./modules
./options.nix
./colors.nix
niri.nixosModules.niri
home-manager.nixosModules.home-manager
];
@ -30,6 +31,7 @@
./devices/pleniscenta
./modules
./options.nix
./colors.nix
niri.nixosModules.niri
home-manager.nixosModules.home-manager
];
@ -47,6 +49,7 @@
./devices/inkvine
./modules
./options.nix
./colors.nix
niri.nixosModules.niri
home-manager.nixosModules.home-manager
];