modules: system: printing: move from 'profiles'
All checks were successful
ci/woodpecker/push/check Pipeline was successful
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:
parent
32ec402ad0
commit
27564cad42
|
@ -15,6 +15,7 @@
|
||||||
./secrets
|
./secrets
|
||||||
./services.nix
|
./services.nix
|
||||||
./sound.nix
|
./sound.nix
|
||||||
|
./system.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
|
|
|
@ -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
|
||||||
|
|
10
hosts/nixos/aramis/system.nix
Normal file
10
hosts/nixos/aramis/system.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# Core system configuration
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
my.system = {
|
||||||
|
# Printers are hell, but so is the unability to print
|
||||||
|
printing = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -10,6 +10,7 @@
|
||||||
./nix
|
./nix
|
||||||
./packages
|
./packages
|
||||||
./podman
|
./podman
|
||||||
|
./printing
|
||||||
./users
|
./users
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 [
|
|
@ -6,7 +6,6 @@
|
||||||
./devices
|
./devices
|
||||||
./gtk
|
./gtk
|
||||||
./laptop
|
./laptop
|
||||||
./printing
|
|
||||||
./wm
|
./wm
|
||||||
./x
|
./x
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue