disable xserver

This commit is contained in:
DACHXY 2024-12-26 21:29:02 +08:00
parent 150b3f79d6
commit 155d78a407
15 changed files with 532 additions and 176 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ ... }:
let configDir = ../config;
in
{

View file

@ -8,6 +8,7 @@
./programs.nix
./environment.nix
./virtualization.nix
# ./hyprland.nix
];
nixpkgs = {

View file

@ -23,14 +23,12 @@
};
gtk3 = {
# extraCss = gtk-css;
extraConfig = {
gtk-application-prefer-dark-theme = 1;
};
};
gtk4 = {
# extraCss = gtk-css;
extraConfig = {
gtk-application-prefer-dark-theme = 1;
};

38
home/user/hyprland.nix Normal file
View file

@ -0,0 +1,38 @@
{ pkgs, lib, inputs, ... }:
{
# Have not figured out how to config throught homeManager yet
wayland.windowManager.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
xwayland.enable = true;
systemd.enable = false;
plugins = [
inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprbars
inputs.hyprgrass.packages.${pkgs.system}.default
];
settings = {
"$mod" = "SUPER";
bind = [
"$mod, F, exec, firefox"
"$mod, enter, exec, kitty"
]
++ (
# workspaces
# binds $mod + [shift +] {1..9} to [move to] workspace {1..9}
builtins.concatLists (builtins.genList
(i:
let ws = i + 1;
in
[
"$mod, code:1${toString i}, workspace, ${toString ws}"
"$mod SHIFT, code:1${toString i}, movetoworkspace, ${toString ws}"
]
)
9)
);
};
};
}

View file

@ -33,11 +33,7 @@ in
pkgs.blueberry
# Gaming
# pkgs.steam
pkgs.steam-run
# (pkgs.lutris.override {
# extraPkgs = pkgs: [ pkgs.wineWowPackages.stable pkgs.winetricks ];
# })
# Downloads
pkgs.qbittorrent

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: {
{ pkgs, inputs, ... }: {
programs = {
neovim = {
enable = true;
@ -27,7 +27,6 @@
"font.name.monospace.zh-TW" = "Noto Sans Mono CJK TC";
};
# firefox = {
# enable = true;
# languagePacks = [
@ -42,4 +41,5 @@
# };
# };
};
}