setup more default.nix

This commit is contained in:
Noah Masur
2022-04-30 12:32:00 -04:00
parent 9d7307d16d
commit 0685a90aa3
10 changed files with 127 additions and 100 deletions

View File

@ -0,0 +1,5 @@
{ ... }: {
imports = [ ./xorg.nix ./fonts.nix ./i3.nix ];
}

View File

@ -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 ];
};
}

View File

@ -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";
};
}