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
./services.nix
./sound.nix
./system.nix
];
# Set your time zone.

View file

@ -9,8 +9,6 @@
gtk.enable = true;
# Laptop specific configuration
laptop.enable = true;
# Printers are hell, but so is the unability to print
printing.enable = true;
# i3 configuration
wm.windowManager = "i3";
# 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
./packages
./podman
./printing
./users
];
}

View file

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

View file

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