mirror of
https://github.com/larstvei/nix-config.git
synced 2025-12-31 12:10:12 +00:00
Disable graphical environment for vm
This commit is contained in:
parent
7b4e396685
commit
203af3bc02
@ -4,6 +4,7 @@
|
||||
./hardware
|
||||
../../modules/base
|
||||
../../modules/nixos
|
||||
../../modules/nixos/graphical
|
||||
];
|
||||
|
||||
home-manager.users.larstvei.imports = [
|
||||
|
||||
@ -3,11 +3,12 @@
|
||||
./hardware
|
||||
../../modules/base
|
||||
../../modules/nixos
|
||||
# ../../modules/nixos-graphical
|
||||
];
|
||||
|
||||
home-manager.users.larstvei.imports = [
|
||||
../../modules/home/minimal
|
||||
../../modules/desktop
|
||||
# ../../modules/desktop
|
||||
];
|
||||
|
||||
networking.hostName = "larstvei-vm";
|
||||
|
||||
@ -1,9 +1,20 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
fonts.packages = with pkgs; [
|
||||
fonts = {
|
||||
packages = with pkgs; [
|
||||
iosevka
|
||||
source-code-pro
|
||||
source-sans
|
||||
source-serif
|
||||
];
|
||||
fontconfig = {
|
||||
enable = true;
|
||||
defaultFonts = {
|
||||
serif = [ "Source Serif 4" ];
|
||||
sansSerif = [ "Source Sans 3" ];
|
||||
monospace = [ "Source Code Pro" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@ -24,49 +24,11 @@
|
||||
|
||||
console.keyMap = "us";
|
||||
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = rec {
|
||||
initial_session = {
|
||||
command = "hyprland > /dev/null 2>&1";
|
||||
user = "larstvei";
|
||||
};
|
||||
default_session = initial_session;
|
||||
};
|
||||
};
|
||||
|
||||
fonts = {
|
||||
fontconfig = {
|
||||
enable = true;
|
||||
defaultFonts = {
|
||||
serif = [ "Source Serif 4" ];
|
||||
sansSerif = [ "Source Sans 3" ];
|
||||
monospace = [ "Source Code Pro" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
programs._1password.enable = true;
|
||||
programs._1password-gui.enable = true;
|
||||
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
withUWSM = true;
|
||||
package = pkgs.hyprland;
|
||||
portalPackage = pkgs.xdg-desktop-portal-hyprland;
|
||||
};
|
||||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-hyprland
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
];
|
||||
config.hyprland."org.freedesktop.impl.portal.Settings" = "darkman";
|
||||
};
|
||||
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
29
modules/nixos/graphical/default.nix
Normal file
29
modules/nixos/graphical/default.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = rec {
|
||||
initial_session = {
|
||||
command = "hyprland > /dev/null 2>&1";
|
||||
user = "larstvei";
|
||||
};
|
||||
default_session = initial_session;
|
||||
};
|
||||
};
|
||||
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
withUWSM = true;
|
||||
package = pkgs.hyprland;
|
||||
portalPackage = pkgs.xdg-desktop-portal-hyprland;
|
||||
};
|
||||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-hyprland
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
];
|
||||
config.hyprland."org.freedesktop.impl.portal.Settings" = "darkman";
|
||||
};
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user