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,9 +1,11 @@
{ lib, config, ... }: lib.mkIf (config.user) {
{ lib, config, ... }: {
imports = [
./programs.nix
./themes.nix
];
config = lib.mkIf config.user{
# Audio
security.rtkit.enable = true;
@ -28,4 +30,5 @@
};
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,8 +1,9 @@
{ config, pkgs, ... }: {
{ lib, config, pkgs, ... }: {
imports = [
./firefox.nix
];
config = lib.mkIf config.user {
networking.firewall.allowedTCPPorts = [
57621 # spotifyd
];
@ -67,4 +68,5 @@
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
];