This commit is contained in:
Jan-Bulthuis 2025-01-28 10:42:20 +01:00
parent 9d73b0d728
commit ceff5dac07
10 changed files with 81 additions and 22 deletions

View File

@ -19,7 +19,8 @@
bluetooth.enable = true;
power-saving.enable = false;
pipewire.enable = true;
wpa_supplicant.enable = true;
networkmanager.enable = true;
# wpa_supplicant.enable = true;
};
# Hardware configuration

View File

@ -61,7 +61,6 @@ in
neovim.enable = true;
systemd-boot.enable = true;
tuigreet.enable = true;
networkmanager.enable = true;
};
# TODO: Remove everything below, it is here out of convenience and should be elsewhere
@ -82,7 +81,7 @@ in
"nvidia-settings"
];
nix.settings.experimental-features = "nix-command flakes";
networking.useDHCP = true;
# networking.useDHCP = true;
nixpkgs.hostPlatform = "x86_64-linux";
networking.firewall.allowedTCPPortRanges = [
{

View File

@ -6,7 +6,7 @@
with lib;
let
cfg = config.modules.power-saving;
cfg = config.modules.networkmanager;
in
{
options.modules.networkmanager = {

View File

@ -16,6 +16,7 @@
./fontconfig/default.nix
./gaming/default.nix
./git/default.nix
./keyring/default.nix
./mako/default.nix
./neovim/default.nix
./obsidian/default.nix

View File

@ -2,6 +2,7 @@
{
imports = [
./emulators/pcsx2.nix
./emulators/ryujinx.nix
./launchers/es-de.nix
./launchers/modrinth.nix

View File

@ -0,0 +1,22 @@
{
lib,
config,
pkgs,
...
}:
with lib;
let
cfg = config.modules.pcsx2;
in
{
options.modules.pcsx2 = {
enable = mkEnableOption "pcsx2";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
pcsx2
];
};
}

View File

@ -0,0 +1,23 @@
{
lib,
config,
pkgs,
...
}:
with lib;
let
cfg = config.modules.keyring;
in
{
options.modules.keyring = {
enable = mkEnableOption "keyring";
};
config = mkIf cfg.enable {
# Development packages
home.packages = with pkgs; [
seahorse
];
};
}

View File

@ -4,6 +4,7 @@
imports = [
# Import systemwide configuration files.
./docker.nix
./keyring.nix
./river.nix
./steam.nix
./waylock.nix

View File

@ -0,0 +1,18 @@
{
lib,
config,
pkgs,
...
}:
with lib;
let
enabled = any (user: user.modules.keyring.enable) (attrValues config.home-manager.users);
in
{
config = mkIf enabled {
services.gnome.gnome-keyring = {
enable = true;
};
};
}

View File

@ -23,15 +23,15 @@
];
# TODO: Move to gpg module
programs.gpg = {
enable = true;
mutableKeys = true;
mutableTrust = true;
};
services.gpg-agent = {
enable = true;
enableSshSupport = true;
};
# programs.gpg = {
# enable = true;
# mutableKeys = true;
# mutableTrust = true;
# };
# services.gpg-agent = {
# enable = true;
# enableSshSupport = true;
# };
# Enabled modules
modules = {
@ -66,6 +66,7 @@
steam.enable = true;
modrinth.enable = true;
es-de.enable = true;
pcsx2.enable = true;
ryujinx.enable = true;
# Media
@ -86,6 +87,7 @@
obsidian.enable = true;
zathura.enable = true;
eduvpn.enable = true;
keyring.enable = true;
# Development
neovim.enable = true;
@ -122,19 +124,10 @@
fonts.extraFonts = [ ];
# Color scheme
themes.oxocarbon = {
enable = false;
darkMode = false;
};
themes.catppuccin = {
enable = true;
flavor = "mocha";
};
themes.sakura.enable = false;
themes.nord = {
enable = false;
darkMode = true;
};
};
# TODO: Remove everything below, it is here out of convenience and should be elsewhere