mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-06 02:40:14 +00:00
setup more default.nix
This commit is contained in:
5
modules/desktop/default.nix
Normal file
5
modules/desktop/default.nix
Normal file
@ -0,0 +1,5 @@
|
||||
{ ... }: {
|
||||
|
||||
imports = [ ./xorg.nix ./fonts.nix ./i3.nix ];
|
||||
|
||||
}
|
@ -1,10 +1,14 @@
|
||||
{ pkgs, gui, ... }: {
|
||||
{ pkgs, lib, gui, ... }: {
|
||||
|
||||
fonts.fonts = with pkgs;
|
||||
[
|
||||
gui.font.package # Used for Vim and Terminal
|
||||
# siji # More icons for Polybar
|
||||
];
|
||||
fonts.fontconfig.defaultFonts.monospace = [ gui.font.name ];
|
||||
config = lib.mkIf gui.enable {
|
||||
|
||||
fonts.fonts = with pkgs;
|
||||
[
|
||||
gui.font.package # Used for Vim and Terminal
|
||||
# siji # More icons for Polybar
|
||||
];
|
||||
fonts.fontconfig.defaultFonts.monospace = [ gui.font.name ];
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -1,34 +1,37 @@
|
||||
{ config, pkgs, identity, gui, ... }: {
|
||||
{ config, pkgs, lib, identity, gui, ... }: {
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver = {
|
||||
enable = gui.enable;
|
||||
config = lib.mkIf gui.enable {
|
||||
|
||||
# Enable touchpad support
|
||||
libinput.enable = true;
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver = {
|
||||
enable = gui.enable;
|
||||
|
||||
# Login screen
|
||||
displayManager = {
|
||||
lightdm = {
|
||||
enable = config.services.xserver.enable;
|
||||
# Enable touchpad support
|
||||
libinput.enable = true;
|
||||
|
||||
# Make the login screen dark
|
||||
greeters.gtk.theme.name = gui.gtkTheme;
|
||||
# Login screen
|
||||
displayManager = {
|
||||
lightdm = {
|
||||
enable = config.services.xserver.enable;
|
||||
|
||||
# Make the login screen dark
|
||||
greeters.gtk.theme.name = gui.gtkTheme;
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs;
|
||||
[
|
||||
xclip # Clipboard
|
||||
];
|
||||
|
||||
home-manager.users.${identity.user}.programs.fish.shellAliases = {
|
||||
pbcopy = "xclip -selection clipboard -in";
|
||||
pbpaste = "xclip -selection clipboard -out";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs;
|
||||
[
|
||||
xclip # Clipboard
|
||||
];
|
||||
|
||||
home-manager.users.${identity.user}.programs.fish.shellAliases = {
|
||||
pbcopy = "xclip -selection clipboard -in";
|
||||
pbpaste = "xclip -selection clipboard -out";
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user