networking and fonts

This commit is contained in:
Noah Masur 2022-04-28 22:25:05 -04:00
parent 992496b1f0
commit 5404476552
5 changed files with 36 additions and 24 deletions

View File

@ -27,6 +27,7 @@
package = pkgs.victor-mono;
name = "Victor Mono";
};
hostname = "nixos";
in {
nixosConfigurations = {
@ -34,7 +35,7 @@
inherit system;
specialArgs = {
gui = true;
inherit user fullName font;
inherit user fullName font hostname;
};
modules = [
home-manager.nixosModules.home-manager
@ -43,10 +44,13 @@
./nixos/home.nix
./modules/desktop/xorg.nix
./modules/desktop/i3.nix
./modules/desktop/fonts.nix
./modules/hardware/boot.nix
./modules/hardware/mouse.nix
./modules/hardware/keyboard.nix
./modules/hardware/monitors.nix
./modules/hardware/audio.nix
./modules/hardware/networking.nix
./modules/system/timezone.nix
./modules/system/doas.nix
./modules/system/user.nix

10
modules/desktop/fonts.nix Normal file
View File

@ -0,0 +1,10 @@
{ pkgs, font, ... }: {
fonts.fonts = with pkgs; [
font.package # Used for Vim and Terminal
font-awesome # Icons for i3
# siji # More icons for Polybar
];
fonts.fontconfig.defaultFonts.monospace = [ font.name ];
}

View File

@ -0,0 +1,7 @@
{ ... }: {
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
}

View File

@ -0,0 +1,13 @@
{ hostname, ... }: {
networking.hostName = hostname; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
networking.useDHCP = false;
networking.interfaces.enp0s31f6.useDHCP = true;
networking.interfaces.wlp3s0.useDHCP = true;
}

View File

@ -8,31 +8,9 @@
nixpkgs.config.allowUnfree = true;
nix.extraOptions = "experimental-features = nix-command flakes";
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# networking.hostName = "nixos"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
networking.useDHCP = false;
networking.interfaces.enp0s31f6.useDHCP = true;
networking.interfaces.wlp3s0.useDHCP = true;
# Install fonts
fonts.fonts = with pkgs; [
font.package # Used for Vim and Terminal
font-awesome # Icons for i3
# siji # More icons for Polybar
];
fonts.fontconfig.defaultFonts.monospace = [ font.name ];
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [ fish git vim wget curl ];
environment.systemPackages = with pkgs; [ git vim wget curl ];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.