foamat code

This commit is contained in:
2024-04-17 16:47:06 +02:00
parent 1c7a93963a
commit ebedd90923
23 changed files with 231 additions and 194 deletions

View File

@@ -1,8 +1,10 @@
{ config, pkgs, ... }:
{
config,
pkgs,
...
}: {
users.users."jonas".packages = with pkgs; [
discord
zoom
];
}
}

View File

@@ -1,8 +1,6 @@
{ ... }:
{
{...}: {
imports = [
./hyprland.nix
./plasma.nix
];
}
}

View File

@@ -1,9 +1,10 @@
{ lib, config, ... }:
let
cfg = config.desktop.de.hyprland;
in
{
lib,
config,
...
}: let
cfg = config.desktop.de.hyprland;
in {
options.desktop.de.hyprland = {
enable = lib.mkEnableOption "enable hyprland desktop environment";
};

View File

@@ -1,9 +1,11 @@
{ config, lib, pkgs, ... }:
let
cfg = config.desktop.de.plasma;
in
{
config,
lib,
pkgs,
...
}: let
cfg = config.desktop.de.plasma;
in {
options.desktop.de.plasma = {
enable = lib.mkEnableOption "Enable Plasma desktop environment with sddm";
};
@@ -18,4 +20,4 @@ in
libsForQt5.qtstyleplugin-kvantum
];
};
}
}

View File

@@ -1,9 +1,10 @@
{ config, lib, ... }:
let
cfg = config.desktop.dm;
in
{
config,
lib,
...
}: let
cfg = config.desktop.dm;
in {
options.desktop.dm = with lib; {
name = mkOption {
type = types.nullOr (types.enum ["sddm" "gdm"]);
@@ -34,7 +35,7 @@ in
xkbVariant = "";
xkbOptions = "caps:ctrl_modifier";
};
services.xserver.displayManager.autoLogin.enable = (cfg.autologin != null);
services.xserver.displayManager.autoLogin.enable = cfg.autologin != null;
services.xserver.displayManager.autoLogin.user = cfg.autologin;
};
}

View File

@@ -1,12 +1,14 @@
{ lib, config, ... }:
let
cfg = config.desktop.dm;
in
{
lib,
config,
...
}: let
cfg = config.desktop.dm;
in {
config = lib.mkIf (cfg.name == "gdm") {
services.xserver.displayManager.gdm = {
enable = true;
wayland = cfg.wayland;
};
};
}
}

View File

@@ -1,13 +1,14 @@
{ lib, config, ... }:
let
cfg = config.desktop.dm;
in
{
lib,
config,
...
}: let
cfg = config.desktop.dm;
in {
config = lib.mkIf (cfg.name == "sddm") {
services.xserver.displayManager.sddm = {
enable = true;
wayland.enable = cfg.wayland;
};
};
}
}

View File

@@ -1,6 +1,9 @@
{ config, pkgs, ... }:
{
config,
pkgs,
...
}: {
environment.systemPackages = with pkgs; [
fira-code
];
}
}

View File

@@ -1,6 +1,4 @@
{ config, ... }:
{
{config, ...}: {
# Enable Bluetooth
hardware.bluetooth.enable = true;
}
}

View File

@@ -1,6 +1,4 @@
{ config, ... }:
{
{config, ...}: {
# Enable CUPS to print documents.
services.printing.enable = true;
}
}

View File

@@ -1,6 +1,4 @@
{ config, ... }:
{
{config, ...}: {
# Enable sound with pipewire.
sound.enable = true;
hardware.pulseaudio.enable = false;
@@ -17,4 +15,4 @@
# no need to redefine it in your config for now)
#media-session.enable = true;
};
}
}

View File

@@ -1,5 +1,8 @@
{ config, pkgs, ... }:
{
config,
pkgs,
...
}: {
# Include udev rules for yubikey.
services.udev.packages = with pkgs; [
yubikey-personalization

View File

@@ -1,9 +1,11 @@
{ config, pkgs, ... }:
{
config,
pkgs,
...
}: {
programs.steam.enable = true;
users.users."jonas".packages = with pkgs; [
lutris
spotify
];
}
}

View File

@@ -1,5 +1,3 @@
{ config, ... }:
{
{config, ...}: {
virtualisation.docker.enable = true;
}
}