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