Compare commits

..

24 commits

Author SHA1 Message Date
09a07b15da
treewide: config/home-manager -> modules/hm
Moved every remaining home-manager piece of configuration to its own hm
module.
2025-01-15 22:56:32 +01:00
d7356d3fde
modules/nix/services: add keyd 2025-01-15 14:55:03 +01:00
c846cc95ae
flake: update inputs 2025-01-14 21:41:13 +01:00
94d59b47b3
modules/nix/services: remove kanata 2025-01-14 21:41:09 +01:00
4429b604dd
config/home-manager: remove services/udiskie.nix 2025-01-14 21:41:01 +01:00
376024d4a5
treewide: config/home-manager/services -> modules/hm/services 2025-01-14 20:06:31 +01:00
b808281674
treewide: config/home-manager -> modules/hm
Started moving HM config to the new local modules system. Conditionally
toggling based on profiles and modules.
2025-01-14 19:33:31 +01:00
2b77ac239e
treewide: config/nixos/services -> modules/nix/services
Moved every service in their own module, and conditionally enable them
based on profiles.
2025-01-14 15:10:49 +01:00
7aadc0c8fe
modules/nix/programs/hyprland: make chromium/electron apps run on Wayland 2025-01-14 14:44:38 +01:00
ec285bcc52
treewide: config/nixos/programs -> modules/nix/programs
Here, we also use the option we just added, `local.modules.hyprland.enable` to toggle Hyprland, as well as the profiles. Also removed other unused configuration, such as KDE/Gnome.
2025-01-14 14:18:55 +01:00
76a2caa9c7
options/modules: add options for Hyprland 2025-01-14 14:18:54 +01:00
9f3d6ae768
config/nix/programs: cleanup unused files 2025-01-14 13:56:56 +01:00
f3c08b8431
treewide: config/nixos/programs/fonts -> modules/nix/core/fonts 2025-01-14 13:55:17 +01:00
c37f00205b
treewide: config/nixos/nix -> modules/nix/core/nix.nix 2025-01-14 13:49:29 +01:00
a734372732
treewide: config/nixos/network -> modules/nix/core/networking 2025-01-14 13:43:23 +01:00
07a9c5f510
treewide: move hardware into modules 2025-01-14 12:34:01 +01:00
7d1baf7eb5
options: use mkIf for assertions 2025-01-14 12:33:41 +01:00
9b01b40253
hosts: set profiles
We set profiles before moving the config so nothing breaks and we keep a
working commit history :)
2025-01-14 12:33:00 +01:00
65ea8beba0
options: remove isServer since we have server profile 2025-01-14 12:30:19 +01:00
7906864ae1
options/profiles: add laptop profile 2025-01-14 12:30:19 +01:00
99b6b41de3
treewide: migrate config/system/core to modules
Moved everything from core into modules. I want to get all the NixOS
stuff moved first, and do home-manager after. I used the different
profiles to disable configuration that might break my server, as it has
its own configuration already. This will need to be refactored later, as
I want to ultimately only use the local module system.
2025-01-14 12:01:33 +01:00
b89a42ef13
modules/options: add profiles
The next step in the refactoring is to add different profiles, so that
we may toggle them easily in our hosts. Here's the profiles I went for:

- desktop: enables everything a desktop computer needs (graphics,
productivity apps, base apps such as browsers...)
- gaming: enables gaming configurations (steam, gamescope...)
- server: enables server configurations (website hosting, git forge...)

I made sure the server profile can not be enabled if desktop/gaming are
enabled, as it would not make sense to have desktop applications and
configurations on a server.
2025-01-14 11:59:59 +01:00
851024052d
modules: move style to nix/style
This is temporary, as we're going to get rid of that awkward style
module that was meant to be shared, but ended up being too specific to
my use-case. We just put it in a nix directory for now, as we will with
everything else. This will be refactored later to be mixed with the
relevant program's configuration.
2025-01-14 11:02:13 +01:00
bb55875491
treewide: move shared/nixosModules to modules
The idea of this refactor is, as the configuration is getting bigger and
more complex, to move everything into a local modules system. The idea
is to simplify hosts declaration and add a new layer of abstraction to
avoid the long and redundant imports in hosts/default.nix, that I am
currently using.

First, we're going to move everything to the modules directory, and
split options from the proper configuration. That allows us to have an
easier time understanding how the options are structured, as they will
follow the directory structure and won't be mixed with the module
configuration.
2025-01-14 10:56:34 +01:00
3 changed files with 2 additions and 8 deletions

View file

@ -159,9 +159,6 @@
utility = { utility = {
vim-wakatime.enable = true; vim-wakatime.enable = true;
surround.enable = true; surround.enable = true;
motion.leap = {
enable = true;
};
}; };
lsp = { lsp = {

View file

@ -43,11 +43,6 @@
env = [ env = [
"GDK_SCALE,1" "GDK_SCALE,1"
]; ];
cursor = {
no_hardware_cursors = 1;
};
monitor = [ monitor = [
"eDP-1, preferred, auto, 1.33" "eDP-1, preferred, auto, 1.33"
]; ];

View file

@ -10,6 +10,8 @@
inputs.hyprland-qtutils.packages.${pkgs.system}.default inputs.hyprland-qtutils.packages.${pkgs.system}.default
]; ];
environment.sessionVariables.NIXOS_OZONE_WL = "1";
programs.hyprland = { programs.hyprland = {
enable = true; enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland; package = inputs.hyprland.packages.${pkgs.system}.hyprland;