properly import with correct optionals
This commit is contained in:
parent
dcdfdbaa47
commit
714093946c
12 changed files with 88 additions and 81 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, lib, config, ... }: lib.mkIf(config.withContainers) {
|
{ lib, config, pkgs, ... }: lib.mkIf config.withContainers {
|
||||||
virtualisation.podman = {
|
virtualisation.podman = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dockerCompat = true;
|
dockerCompat = true;
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
{ inputs, pkgs, lib, ... }: {
|
{ inputs, pkgs, lib, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./colors.nix
|
|
||||||
./containers
|
./containers
|
||||||
./games
|
./games
|
||||||
./gnome
|
./gnome
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, config, pkgs, ... }: lib.mkIf (config.withGames) {
|
{ lib, config, pkgs, ... }: lib.mkIf config.withGames {
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
programs.gamescope.enable = true;
|
programs.gamescope.enable = true;
|
||||||
programs.gamemode.enable = true;
|
programs.gamemode.enable = true;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, config, ... }: lib.mkIf (config.withGnome) {
|
{ lib, config, ... }: lib.mkIf config.withGnome {
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
desktopManager.gnome.enable = true;
|
desktopManager.gnome.enable = true;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, config, pkgs, ... }: lib.mkIf (config.withNiri) {
|
{ lib, config, pkgs, ... }: lib.mkIf config.withNiri {
|
||||||
programs.niri.enable = true;
|
programs.niri.enable = true;
|
||||||
|
|
||||||
home-manager.users.twoneis = {
|
home-manager.users.twoneis = {
|
||||||
|
|
|
@ -1,31 +1,34 @@
|
||||||
{ lib, config, ... }: lib.mkIf (config.user) {
|
{ lib, config, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./programs.nix
|
./programs.nix
|
||||||
./themes.nix
|
./themes.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Audio
|
config = lib.mkIf config.user{
|
||||||
security.rtkit.enable = true;
|
|
||||||
|
|
||||||
services.pipewire = {
|
# Audio
|
||||||
enable = true;
|
security.rtkit.enable = true;
|
||||||
alsa.enable = true;
|
|
||||||
alsa.support32Bit = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
jack.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Bluetooth
|
services.pipewire = {
|
||||||
hardware.bluetooth = {
|
enable = true;
|
||||||
enable = true;
|
alsa.enable = true;
|
||||||
powerOnBoot = true;
|
alsa.support32Bit = true;
|
||||||
settings = {
|
pulse.enable = true;
|
||||||
General = {
|
jack.enable = true;
|
||||||
Enable = "Source,Sink,Media,Socket";
|
};
|
||||||
Experimental = 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;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ pkgs, ... }: {
|
{ lib, config, pkgs, ... }: lib.mkIf config.user {
|
||||||
home-manager.users.twnoneis = {
|
home-manager.users.twoneis = {
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
profiles = {
|
profiles = {
|
||||||
|
|
|
@ -1,70 +1,72 @@
|
||||||
{ config, pkgs, ... }: {
|
{ lib, config, pkgs, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./firefox.nix
|
./firefox.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
config = lib.mkIf config.user {
|
||||||
57621 # spotifyd
|
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
|
|
||||||
];
|
];
|
||||||
|
|
||||||
home.file = {
|
services = {
|
||||||
".config/vesktop/settings.json" = {
|
# Needed for some features in nautilus such as auto-mounting and trash
|
||||||
source = ./vesktop.conf.json;
|
gvfs.enable = true;
|
||||||
};
|
|
||||||
".config/vesktop/settings/settings.json" = {
|
|
||||||
source = ./vencord.conf.json;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.pandoc = {
|
home-manager.users.twoneis = {
|
||||||
enable = true;
|
home.packages = with pkgs; [
|
||||||
};
|
signal-desktop
|
||||||
|
vesktop
|
||||||
|
fractal
|
||||||
|
loupe
|
||||||
|
snapshot
|
||||||
|
gnome.nautilus
|
||||||
|
libreoffice-qt6-fresh
|
||||||
|
];
|
||||||
|
|
||||||
programs.mpv = {
|
home.file = {
|
||||||
enable = true;
|
".config/vesktop/settings.json" = {
|
||||||
};
|
source = ./vesktop.conf.json;
|
||||||
|
};
|
||||||
services.spotifyd = {
|
".config/vesktop/settings/settings.json" = {
|
||||||
enable = true;
|
source = ./vencord.conf.json;
|
||||||
settings = {
|
|
||||||
global = {
|
|
||||||
device_name = config.networking.hostName;
|
|
||||||
bitrate = 320;
|
|
||||||
volume_normalisation = true;
|
|
||||||
autoplay = false;
|
|
||||||
zeroconf_port = 57621;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
programs.thunderbird = {
|
programs.pandoc = {
|
||||||
enable = true;
|
enable = true;
|
||||||
profiles = {
|
};
|
||||||
"default" = {
|
|
||||||
isDefault = 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 = {
|
programs.thunderbird = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = import ./alacritty.conf.nix;
|
profiles = {
|
||||||
|
"default" = {
|
||||||
|
isDefault = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.alacritty = {
|
||||||
|
enable = true;
|
||||||
|
settings = import ./alacritty.conf.nix;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
home.file = {
|
home.file = {
|
||||||
".gdbinit" = {
|
".gdbinit" = {
|
||||||
source = ./gdbinit;
|
source = ./gdbinit.conf;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, config, ... }: lib.mkIf (config.withVM) {
|
{ lib, config, ... }: lib.mkIf config.withVM {
|
||||||
virtualisation.libvirtd.enable = true;
|
virtualisation.libvirtd.enable = true;
|
||||||
programs.virt-manager.enable = true;
|
programs.virt-manager.enable = true;
|
||||||
users.users.twoneis.extraGroups = [ "libvirtd" ];
|
users.users.twoneis.extraGroups = [ "libvirtd" ];
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
./devices/ellaca
|
./devices/ellaca
|
||||||
./modules
|
./modules
|
||||||
./options.nix
|
./options.nix
|
||||||
|
./colors.nix
|
||||||
niri.nixosModules.niri
|
niri.nixosModules.niri
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
];
|
];
|
||||||
|
@ -30,6 +31,7 @@
|
||||||
./devices/pleniscenta
|
./devices/pleniscenta
|
||||||
./modules
|
./modules
|
||||||
./options.nix
|
./options.nix
|
||||||
|
./colors.nix
|
||||||
niri.nixosModules.niri
|
niri.nixosModules.niri
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
];
|
];
|
||||||
|
@ -47,6 +49,7 @@
|
||||||
./devices/inkvine
|
./devices/inkvine
|
||||||
./modules
|
./modules
|
||||||
./options.nix
|
./options.nix
|
||||||
|
./colors.nix
|
||||||
niri.nixosModules.niri
|
niri.nixosModules.niri
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue