mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-26 06:05:37 +00:00
networking and fonts
This commit is contained in:
parent
992496b1f0
commit
5404476552
@ -27,6 +27,7 @@
|
|||||||
package = pkgs.victor-mono;
|
package = pkgs.victor-mono;
|
||||||
name = "Victor Mono";
|
name = "Victor Mono";
|
||||||
};
|
};
|
||||||
|
hostname = "nixos";
|
||||||
|
|
||||||
in {
|
in {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
@ -34,7 +35,7 @@
|
|||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
gui = true;
|
gui = true;
|
||||||
inherit user fullName font;
|
inherit user fullName font hostname;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
@ -43,10 +44,13 @@
|
|||||||
./nixos/home.nix
|
./nixos/home.nix
|
||||||
./modules/desktop/xorg.nix
|
./modules/desktop/xorg.nix
|
||||||
./modules/desktop/i3.nix
|
./modules/desktop/i3.nix
|
||||||
|
./modules/desktop/fonts.nix
|
||||||
|
./modules/hardware/boot.nix
|
||||||
./modules/hardware/mouse.nix
|
./modules/hardware/mouse.nix
|
||||||
./modules/hardware/keyboard.nix
|
./modules/hardware/keyboard.nix
|
||||||
./modules/hardware/monitors.nix
|
./modules/hardware/monitors.nix
|
||||||
./modules/hardware/audio.nix
|
./modules/hardware/audio.nix
|
||||||
|
./modules/hardware/networking.nix
|
||||||
./modules/system/timezone.nix
|
./modules/system/timezone.nix
|
||||||
./modules/system/doas.nix
|
./modules/system/doas.nix
|
||||||
./modules/system/user.nix
|
./modules/system/user.nix
|
||||||
|
10
modules/desktop/fonts.nix
Normal file
10
modules/desktop/fonts.nix
Normal 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 ];
|
||||||
|
|
||||||
|
}
|
7
modules/hardware/boot.nix
Normal file
7
modules/hardware/boot.nix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{ ... }: {
|
||||||
|
|
||||||
|
# Use the systemd-boot EFI boot loader.
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
}
|
13
modules/hardware/networking.nix
Normal file
13
modules/hardware/networking.nix
Normal 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;
|
||||||
|
|
||||||
|
}
|
@ -8,31 +8,9 @@
|
|||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
nix.extraOptions = "experimental-features = nix-command flakes";
|
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:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ 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
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
# started in user sessions.
|
# started in user sessions.
|
||||||
|
Loading…
Reference in New Issue
Block a user