Initial usable dragyx/flocke config
This commit is contained in:
parent
44453dbfc6
commit
f4e1faa2c6
13 changed files with 568 additions and 64 deletions
|
@ -0,0 +1,22 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
username = config.modules.other.system.username;
|
||||
cfg = config.modules.programs.rofi;
|
||||
in
|
||||
{
|
||||
options.modules.programs.rofi.enable = mkEnableOption "rofi";
|
||||
options.modules.other.system.wayland = mkOption {
|
||||
type = types.bool;
|
||||
description = "Does this system use wayland?";
|
||||
default = false;
|
||||
}; #FIXME: move this to the (hopefully then) refactored options directory
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
(if config.modules.other.system.wayland then rofi-wayland else rofi)
|
||||
];
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue