modules: system: printing: move from 'profiles'
All checks were successful
ci/woodpecker/push/check Pipeline was successful

This isn't really a cross-cutting module, it should be a module rather
than a profile.
This commit is contained in:
Bruno BELANYI 2023-11-11 17:56:56 +00:00
parent 32ec402ad0
commit 27564cad42
6 changed files with 15 additions and 6 deletions

View file

@ -15,6 +15,7 @@
./secrets ./secrets
./services.nix ./services.nix
./sound.nix ./sound.nix
./system.nix
]; ];
# Set your time zone. # Set your time zone.

View file

@ -9,8 +9,6 @@
gtk.enable = true; gtk.enable = true;
# Laptop specific configuration # Laptop specific configuration
laptop.enable = true; laptop.enable = true;
# Printers are hell, but so is the unability to print
printing.enable = true;
# i3 configuration # i3 configuration
wm.windowManager = "i3"; wm.windowManager = "i3";
# X configuration # X configuration

View file

@ -0,0 +1,10 @@
# Core system configuration
{ ... }:
{
my.system = {
# Printers are hell, but so is the unability to print
printing = {
enable = true;
};
};
}

View file

@ -10,6 +10,7 @@
./nix ./nix
./packages ./packages
./podman ./podman
./printing
./users ./users
]; ];
} }

View file

@ -1,10 +1,10 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let let
cfg = config.my.profiles.printing; cfg = config.my.system.printing;
in in
{ {
options.my.profiles.printing = with lib; { options.my.system.printing = with lib; {
enable = mkEnableOption "printing profile"; enable = mkEnableOption "printing configuration";
papersize = mkOption { papersize = mkOption {
type = with types; either str (enum [ type = with types; either str (enum [

View file

@ -6,7 +6,6 @@
./devices ./devices
./gtk ./gtk
./laptop ./laptop
./printing
./wm ./wm
./x ./x
]; ];