add greetd.nix

This commit is contained in:
2023-08-07 21:12:17 +02:00
parent 1741067800
commit 718220bc41
11 changed files with 329 additions and 358 deletions

View File

@ -2,6 +2,7 @@
imports = [
./boot.nix
./fonts.nix
./greetd.nix
./home-manager.nix
./locale.nix
./hyprland.nix

View File

@ -18,9 +18,9 @@
fontconfig = {
defaultFonts = {
serif = [ "Noto Serif CJK JP" "Noto Serif" ];
sansSerif = [ "Noto Sans CJK JP" "Noto Sans" ];
monospace = [ "Noto Mono CJK JP" "Noto Mono" ];
serif = [ "Noto Serif" ];
sansSerif = [ "Noto Sans" ];
monospace = [ "Noto Mono" ];
};
allowBitmaps = false;

21
modules/greetd.nix Normal file
View File

@ -0,0 +1,21 @@
{ pkgs, ... }:
{
services.greetd = {
enable = true;
restart = false;
settings = {
default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland";
user = "greeter";
};
initial_session = {
command = "${pkgs.hyprland}/bin/Hyprland";
user = "stefan";
};
};
};
}

View File

@ -1,8 +1,11 @@
{ config, pkgs, ... }: {
environment.systemPackages = with pkgs; [
brightnessctl
git
neofetch
swww
tree
wget
wl-clipboard
];
}

46
modules/stylix.nix Normal file
View File

@ -0,0 +1,46 @@
{ pkgs, ... }:
let
theme = "monokai";
opacity = 0.95;
font-size = 11;
in
{
stylix.image = ../assets/wallpaper.png;
stylix.polarity = "dark";
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/${theme}.yaml";
stylix.opacity = {
terminal = opacity;
popups = opacity;
};
stylix.fonts = {
serif = {
package = pkgs.noto-fonts-cjk-sans;
name = "Noto Sans CJK JP";
};
sansSerif = {
package = pkgs.noto-fonts-cjk-sans;
name = "Noto Sans CJK JP";
};
monospace = {
package = pkgs.maple-mono;
name = "Maple Mono";
};
emoji = {
package = pkgs.noto-fonts-emoji;
name = "Noto Color Emoji";
};
sizes = {
applications = font-size;
desktop = font-size;
popups = font-size;
terminal = font-size;
};
};
}