Commit faf26f5abdb1
Changed files (3)
modules
profiles
i3.nix → modules/profiles/i3.nix
@@ -1,6 +1,21 @@
-{ pkgs, config, lib, ... }:
+{ config, lib, pkgs, ... }:
+with lib;
+
+let
+ cfg = config.profiles.i3;
+in
{
+ options = {
+ profiles.i3 = {
+ enable = mkOption {
+ default = false;
+ description = "Enable i3 profile";
+ type = types.bool;
+ };
+ };
+ };
+ config = mkIf cfg.enable {
xsession.windowManager.i3 = {
enable = true;
config = {
@@ -237,4 +252,5 @@
format = "/ %free"
}
'';
+ };
}
modules/module-list.nix
@@ -2,6 +2,7 @@
{
imports = [
+ ./profiles/i3.nix
./services/shairport-sync.nix
];
}
desktop.nix
@@ -1,7 +1,8 @@
{ pkgs, prefix, ... }:
{
- imports = [ ./fish.nix ./ssh.nix ./i3.nix ./base.nix ];
+ imports = [ ./fish.nix ./ssh.nix ./base.nix ];
+ profiles.i3.enable = true;
home.keyboard = {
layout = "fr(bepo),fr";
variant = "oss";