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/* include /etc/sway/config.d/*
'') '')
+ swayRc + swayRc
+ config.module.desktop.sway.extraConfig or "" + config.module.sway.extraConfig or ""
; ;
} }

View file

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

View file

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

View file

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

View file

@ -9,7 +9,7 @@
module = { module = {
autoupdate.enable = true; autoupdate.enable = true;
builder.client.enable = true; builder.client.enable = true;
desktop.sway.enable = true; sway.enable = true;
kernel.enable = true; kernel.enable = true;
keyd.enable = true; keyd.enable = true;
print.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 = { module = {
autoupdate.enable = true; autoupdate.enable = true;
builder.client.enable = true; builder.client.enable = true;
desktop.sway.enable = true; sway.enable = true;
kernel.enable = true; kernel.enable = true;
keyd.enable = true; keyd.enable = true;
powerlimit.thinkpad.enable = true; powerlimit.thinkpad.enable = true;

View file

@ -3,9 +3,9 @@
lib, lib,
... ...
}: let }: let
cfg = config.module.desktop.bluetooth; cfg = config.module.bluetooth;
in { 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 { config = lib.mkIf cfg.enable {
services.blueman.enable = true; services.blueman.enable = true;

View file

@ -3,9 +3,9 @@
config, config,
... ...
}: let }: let
cfg = config.module.desktop.brightness; cfg = config.module.brightness;
in { 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 { config = lib.mkIf cfg.enable {
programs.light.enable = true; programs.light.enable = true;

View file

@ -3,9 +3,9 @@
lib, lib,
... ...
}: let }: let
cfg = config.module.desktop.dm; cfg = config.module.dm;
in { 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 { config = lib.mkIf cfg.enable {
services.xserver = { services.xserver = {

View file

@ -5,12 +5,12 @@
pkgs, pkgs,
... ...
}: let }: let
cfg = config.module.desktop.gnome; cfg = config.module.gnome;
in { 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 { config = lib.mkIf cfg.enable {
module.desktop = { module = {
dm.enable = true; dm.enable = true;
sound.enable = true; sound.enable = true;
wayland.enable = true; wayland.enable = true;

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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