mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
Add communication tools module
This commit is contained in:
parent
8704153097
commit
6e03df40e7
7
flake.lock
generated
7
flake.lock
generated
@ -219,15 +219,16 @@
|
|||||||
"nixpkgs-regression": "nixpkgs-regression"
|
"nixpkgs-regression": "nixpkgs-regression"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1653643505,
|
"lastModified": 1652510778,
|
||||||
"narHash": "sha256-VReVQKEfedov22lbZYQjOcIoxjOcLCSVWF8A2szoZ/k=",
|
"narHash": "sha256-zldZ4SiwkISFXxrbY/UdwooIZ3Z/I6qKxtpc3zD0T/o=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nix",
|
"repo": "nix",
|
||||||
"rev": "ec07a70979a86cc436de7e46e03789b4606d25ab",
|
"rev": "65cd26eebbbf80eaf0d74092f09b737606cb4b5a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
|
"ref": "latest-release",
|
||||||
"repo": "nix",
|
"repo": "nix",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
url = "github:NixOS/nix";
|
url = "github:NixOS/nix?ref=latest-release";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,8 @@
|
|||||||
{ config, pkgs, ...}:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
brightnessctl
|
brightnessctl
|
||||||
element-desktop
|
libreoffice-fresh
|
||||||
signal-desktop
|
|
||||||
teams
|
|
||||||
zoom-us
|
|
||||||
];
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
@ -19,6 +16,8 @@
|
|||||||
elss = {
|
elss = {
|
||||||
programs = {
|
programs = {
|
||||||
aspell.enable = true;
|
aspell.enable = true;
|
||||||
|
# Enable communication programs
|
||||||
|
communication.enable = true;
|
||||||
emacs.enable = true;
|
emacs.enable = true;
|
||||||
obsstudio.enable = true;
|
obsstudio.enable = true;
|
||||||
python.enable = true;
|
python.enable = true;
|
||||||
|
|||||||
20
modules/communication.nix
Normal file
20
modules/communication.nix
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
with lib; {
|
||||||
|
options.elss.programs.communication.enable = mkEnableOption "enable the basic graphical communication tools";
|
||||||
|
|
||||||
|
config =
|
||||||
|
let
|
||||||
|
cfg = config.elss.programs.communication;
|
||||||
|
in
|
||||||
|
mkIf cfg.enable {
|
||||||
|
elss.graphical.enable = true;
|
||||||
|
environment.systemPackages = [
|
||||||
|
element-desktop
|
||||||
|
jitsi-meet-electron
|
||||||
|
signal-dektop
|
||||||
|
skypeforlinux
|
||||||
|
teams
|
||||||
|
zoom-us
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -1,8 +1,8 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
with lib; {
|
with lib; {
|
||||||
options.elss.graphical= {
|
options.elss.graphical = {
|
||||||
enable = mkEnableOption "configure i3-based graphical layer";
|
enable = mkEnableOption "configure i3-based graphical layer";
|
||||||
greeterCursorsize = mkOption{
|
greeterCursorsize = mkOption {
|
||||||
type = types.int;
|
type = types.int;
|
||||||
default = 16;
|
default = 16;
|
||||||
description = ''
|
description = ''
|
||||||
@ -17,63 +17,63 @@ with lib; {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config =
|
config =
|
||||||
let
|
let
|
||||||
cfg = config.elss.graphical;
|
cfg = config.elss.graphical;
|
||||||
#cursorsize = if config.variables.hostName == "nucturne" then 14 else 16;
|
#cursorsize = if config.variables.hostName == "nucturne" then 14 else 16;
|
||||||
#xserverDPI = if config.variables.hostName == "stel-xps" then 180 else null;
|
#xserverDPI = if config.variables.hostName == "stel-xps" then 180 else null;
|
||||||
in
|
in
|
||||||
{
|
mkIf cfg.enable {
|
||||||
elss.users.x11.enable = true;
|
elss.users.x11.enable = true;
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
xserver = {
|
xserver = {
|
||||||
|
enable = true;
|
||||||
|
dpi = cfg.dpi;
|
||||||
|
displayManager.lightdm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dpi = cfg.dpi;
|
greeters.gtk.cursorTheme.size = cfg.greeterCursorsize;
|
||||||
displayManager.lightdm = {
|
|
||||||
enable = true;
|
|
||||||
greeters.gtk.cursorTheme.size = cfg.greeterCursorsize;
|
|
||||||
};
|
|
||||||
windowManager.i3 = {
|
|
||||||
enable = true;
|
|
||||||
extraPackages = with pkgs; [
|
|
||||||
rofi # launcher
|
|
||||||
polybarFull # bar
|
|
||||||
i3lock # lock screen
|
|
||||||
xss-lock
|
|
||||||
autorandr
|
|
||||||
];
|
|
||||||
extraSessionCommands = ''
|
|
||||||
${pkgs.autorandr}/bin/autorandr -c
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
layout = "us";
|
|
||||||
xkbOptions = "eurosign:e";
|
|
||||||
};
|
};
|
||||||
gnome.gnome-keyring.enable = true;
|
windowManager.i3 = {
|
||||||
|
enable = true;
|
||||||
printing.enable = true;
|
extraPackages = with pkgs; [
|
||||||
|
rofi # launcher
|
||||||
|
polybarFull # bar
|
||||||
|
i3lock # lock screen
|
||||||
|
xss-lock
|
||||||
|
autorandr
|
||||||
|
];
|
||||||
|
extraSessionCommands = ''
|
||||||
|
${pkgs.autorandr}/bin/autorandr -c
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
layout = "us";
|
||||||
|
xkbOptions = "eurosign:e";
|
||||||
};
|
};
|
||||||
|
gnome.gnome-keyring.enable = true;
|
||||||
|
|
||||||
sound.enable = true;
|
printing.enable = true;
|
||||||
|
|
||||||
hardware = {
|
|
||||||
pulseaudio.enable = true;
|
|
||||||
bluetooth.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services.blueman.enable = true;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
firefox
|
|
||||||
thunderbird
|
|
||||||
okular
|
|
||||||
texlive.combined.scheme-full
|
|
||||||
usbutils
|
|
||||||
keepassxc
|
|
||||||
gnome.libsecret
|
|
||||||
arandr
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sound.enable = true;
|
||||||
|
|
||||||
|
hardware = {
|
||||||
|
pulseaudio.enable = true;
|
||||||
|
bluetooth.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.blueman.enable = true;
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
firefox
|
||||||
|
thunderbird
|
||||||
|
okular
|
||||||
|
texlive.combined.scheme-full
|
||||||
|
usbutils
|
||||||
|
keepassxc
|
||||||
|
gnome.libsecret
|
||||||
|
arandr
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user