Pocket: Create a new host.

This commit is contained in:
Dmitry Voronin 2024-11-07 12:12:53 +03:00
parent 1e7f750a3b
commit fa7654144a
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
17 changed files with 70 additions and 36 deletions

View file

@ -32,6 +32,6 @@ in {
include /etc/sway/config.d/*
'')
+ swayRc
+ config.module.desktop.sway.extraConfig or ""
+ config.module.sway.extraConfig or ""
;
}

View file

@ -9,7 +9,7 @@
amd.gpu.enable = true;
autoupdate.enable = true;
builder.client.enable = true;
desktop.sway.enable = true;
sway.enable = true;
kernel.enable = true;
keyd.enable = true;
print.enable = true;

View file

@ -21,7 +21,7 @@
powersave = true;
};
};
desktop.sway = {
sway = {
enable = true;
extraConfig = ''
output "ASUSTek COMPUTER INC ASUS VA24E R2LMTF127165" mode 1920x1080@74.986Hz transform 180 pos 780,0

View file

@ -7,7 +7,7 @@
module = {
builder.server.enable = true;
desktop.sway.enable = true;
sway.enable = true;
kernel.enable = true;
keyd.enable = true;
amd = {

View file

@ -9,7 +9,7 @@
module = {
autoupdate.enable = true;
builder.client.enable = true;
desktop.sway.enable = true;
sway.enable = true;
kernel.enable = true;
keyd.enable = true;
print.enable = true;

View file

@ -0,0 +1,36 @@
{ ... }: {
home.nixos.enable = true;
user = {
root.enable = true;
voronind.enable = true;
};
module = {
autoupdate.enable = true;
builder.client.enable = true;
sway.enable = true;
keyd.enable = true;
print.enable = true;
kernel = {
enable = true;
latest = true;
};
hwmon = {
file = "temp1_input";
path = "/sys/devices/platform/coretemp.0/hwmon";
};
intel.cpu = {
enable = true;
powersave = true;
};
package = {
common.enable = true;
core.enable = true;
creative.enable = true;
desktop.enable = true;
dev.enable = true;
extra.enable = true;
gaming.enable = true;
};
};
}

View file

@ -12,7 +12,7 @@
module = {
autoupdate.enable = true;
builder.client.enable = true;
desktop.sway.enable = true;
sway.enable = true;
kernel.enable = true;
keyd.enable = true;
powerlimit.thinkpad.enable = true;

View file

@ -3,9 +3,9 @@
lib,
...
}: let
cfg = config.module.desktop.bluetooth;
cfg = config.module.bluetooth;
in {
options.module.desktop.bluetooth.enable = lib.mkEnableOption "the bluetooth support.";
options.module.bluetooth.enable = lib.mkEnableOption "the bluetooth support.";
config = lib.mkIf cfg.enable {
services.blueman.enable = true;

View file

@ -3,9 +3,9 @@
config,
...
}: let
cfg = config.module.desktop.brightness;
cfg = config.module.brightness;
in {
options.module.desktop.brightness.enable = lib.mkEnableOption "the brightness control.";
options.module.brightness.enable = lib.mkEnableOption "the brightness control.";
config = lib.mkIf cfg.enable {
programs.light.enable = true;

View file

@ -3,9 +3,9 @@
lib,
...
}: let
cfg = config.module.desktop.dm;
cfg = config.module.dm;
in {
options.module.desktop.dm.enable = lib.mkEnableOption "the display manager.";
options.module.dm.enable = lib.mkEnableOption "the display manager.";
config = lib.mkIf cfg.enable {
services.xserver = {

View file

@ -5,12 +5,12 @@
pkgs,
...
}: let
cfg = config.module.desktop.gnome;
cfg = config.module.gnome;
in {
options.module.desktop.gnome.enable = lib.mkEnableOption "the Gnome DE.";
options.module.gnome.enable = lib.mkEnableOption "the Gnome DE.";
config = lib.mkIf cfg.enable {
module.desktop = {
module = {
dm.enable = true;
sound.enable = true;
wayland.enable = true;

View file

@ -5,9 +5,9 @@
pkgs,
...
}: let
cfg = config.module.desktop.polkit;
cfg = config.module.polkit;
in {
options.module.desktop.polkit.enable = lib.mkEnableOption "the polkit.";
options.module.polkit.enable = lib.mkEnableOption "the polkit.";
config = lib.mkIf cfg.enable {
security.polkit.enable = true;

View file

@ -5,9 +5,9 @@
pkgs,
...
}: let
cfg = config.module.desktop.portal;
cfg = config.module.portal;
in {
options.module.desktop.portal.enable = lib.mkEnableOption "the portals.";
options.module.portal.enable = lib.mkEnableOption "the portals.";
config = lib.mkIf cfg.enable {
xdg.portal = {

View file

@ -3,9 +3,9 @@
lib,
...
}: let
cfg = config.module.desktop.sound;
cfg = config.module.sound;
in {
options.module.desktop.sound.enable = lib.mkEnableOption "the sound.";
options.module.sound.enable = lib.mkEnableOption "the sound.";
config = lib.mkIf cfg.enable {
hardware.pulseaudio.enable = false;

View file

@ -4,9 +4,9 @@
pkgs,
...
}: let
cfg = config.module.desktop.sway;
cfg = config.module.sway;
in {
options.module.desktop.sway = {
options.module.sway = {
enable = lib.mkEnableOption "the Sway WM.";
extraConfig = lib.mkOption {
default = "";
@ -18,16 +18,14 @@ in {
services.gnome.gnome-keyring.enable = lib.mkForce false;
environment.variables.XDG_CURRENT_DESKTOP = "sway";
module = {
desktop = {
bluetooth.enable = true;
brightness.enable = true;
portal.enable = true;
realtime.enable = true;
sound.enable = true;
waybar.enable = true;
wayland.enable = true;
};
realtime.enable = true;
};
programs.sway = {
enable = true;
wrapperFeatures = {

View file

@ -4,9 +4,9 @@
pkgs,
...
}: let
cfg = config.module.desktop.waybar;
cfg = config.module.waybar;
in {
options.module.desktop.waybar.enable = lib.mkEnableOption "the Waybar.";
options.module.waybar.enable = lib.mkEnableOption "the Waybar.";
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [

View file

@ -4,9 +4,9 @@
pkgs,
...
}: let
cfg = config.module.desktop.wayland;
cfg = config.module.wayland;
in {
options.module.desktop.wayland.enable = lib.mkEnableOption "the wayland.";
options.module.wayland.enable = lib.mkEnableOption "the wayland.";
config = {
programs.xwayland.enable = true;