mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 10:11:54 -05:00
add 'laptopMode' option and config
This commit is contained in:
parent
db26ccee2f
commit
70c1e7dd3b
|
@ -167,6 +167,12 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
laptopMode = lib.mkOption {
|
||||
description = "Enable laptop configuration.";
|
||||
default = osConfig.ar.laptopMode;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
services = {
|
||||
easyeffects = {
|
||||
enable = lib.mkEnableOption "EasyEffects user service.";
|
||||
|
|
|
@ -1,14 +1,11 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
osConfig,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports =
|
||||
if (osConfig.networking.hostName == "mauville")
|
||||
then [./ultrawide.nix]
|
||||
else [./laptop.nix];
|
||||
imports = [./laptop.nix];
|
||||
|
||||
programs.waybar.settings.mainBar."bluetooth" = {
|
||||
"on-click" = lib.mkForce "${lib.getExe pkgs.rofi-bluetooth} -i";
|
||||
};
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
pkgs,
|
||||
...
|
||||
}: {
|
||||
config = lib.mkIf config.ar.home.laptopMode {
|
||||
wayland.windowManager = {
|
||||
sway.config = {
|
||||
assigns = {
|
||||
|
@ -33,4 +34,5 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
{
|
||||
}
|
|
@ -42,6 +42,7 @@
|
|||
sway.enable = true;
|
||||
};
|
||||
|
||||
laptopMode = true;
|
||||
services.flatpak.enable = true;
|
||||
|
||||
users = {
|
||||
|
|
|
@ -46,6 +46,8 @@
|
|||
sway.enable = true;
|
||||
};
|
||||
|
||||
laptopMode = true;
|
||||
|
||||
users.aly = {
|
||||
enable = true;
|
||||
password = "$y$j9T$NSS7QcEtN4yiigPyofwlI/$nxdgz0lpySa0heDMjGlHe1gX3BWf48jK6Tkfg4xMEs6";
|
||||
|
|
|
@ -66,6 +66,8 @@
|
|||
sway.enable = true;
|
||||
};
|
||||
|
||||
laptopMode = true;
|
||||
|
||||
users.aly = {
|
||||
enable = true;
|
||||
password = "$y$j9T$TitXX3J690cnK41XciNMg/$APKHM/os6FKd9H9aXGxaHaQ8zP5SenO9EO94VYafl43";
|
||||
|
|
|
@ -41,6 +41,8 @@
|
|||
sway.enable = true;
|
||||
};
|
||||
|
||||
laptopMode = true;
|
||||
|
||||
users.aly = {
|
||||
enable = true;
|
||||
password = "$y$j9T$VdtiEyMOegHpcUwgmCVFD0$K8Ne6.zk//VJNq2zxVQ0xE0Wg3LohvAQd3Xm9aXdM15";
|
||||
|
|
|
@ -34,6 +34,8 @@
|
|||
sway.enable = lib.mkEnableOption "Sway wayland session.";
|
||||
};
|
||||
|
||||
laptopMode = lib.mkEnableOption "Enable laptop configuration.";
|
||||
|
||||
services.flatpak.enable = lib.mkEnableOption "Flatpak support with GUI.";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue