Add fonts, file manager; fix pinentry
This commit is contained in:
parent
4a2200e076
commit
3a44478790
3 changed files with 44 additions and 6 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +1,2 @@
|
|||
home-manager/result
|
||||
etc-nixos/hardware_configuration.nix
|
||||
etc-nixos/hardware-configuration.nix
|
|
@ -12,10 +12,11 @@ let
|
|||
'';
|
||||
in
|
||||
{
|
||||
# packages
|
||||
# packages and other environment stuff
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
environment.systemPackages = [
|
||||
pkgs.mate.mate-polkit
|
||||
pkgs.nwg-displays
|
||||
pkgs.sway
|
||||
pkgs.swaybg
|
||||
pkgs.swaylock
|
||||
|
@ -30,8 +31,14 @@ in
|
|||
pkgs.fish
|
||||
pkgs.qemu
|
||||
pkgs.home-manager
|
||||
pkgs.mesa
|
||||
pkgs.meslo-lgs-nf
|
||||
pkgs.libvirt
|
||||
];
|
||||
|
||||
# enable opengl
|
||||
hardware.opengl.enable = true;
|
||||
|
||||
# fix swaylock never unlocking
|
||||
security.pam.services.swaylock = {
|
||||
text = ''
|
||||
|
@ -39,7 +46,7 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
# Set up fish
|
||||
# Set up shells
|
||||
programs.fish.enable = true;
|
||||
|
||||
# polkit (auth agent) config
|
||||
|
@ -64,7 +71,7 @@ in
|
|||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
pinentryFlavor = "gnome3";
|
||||
pinentryFlavor = "gtk2";
|
||||
settings = {
|
||||
default-cache-ttl = 60;
|
||||
max-cache-ttl = 120;
|
||||
|
@ -74,7 +81,7 @@ in
|
|||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.askiiart = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
||||
extraGroups = [ "wheel" "libvirtd" ]; # Enable ‘sudo’ for the user.
|
||||
shell = pkgs.fish;
|
||||
};
|
||||
|
||||
|
@ -93,4 +100,32 @@ in
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
# for qemu
|
||||
boot.extraModprobeConfig = "options kvm_amd nested=1";
|
||||
|
||||
# fonts
|
||||
fonts = {
|
||||
packages = with pkgs; [
|
||||
atkinson-hyperlegible
|
||||
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
||||
noto-fonts
|
||||
jetbrains-mono
|
||||
];
|
||||
|
||||
fontDir.enable = true;
|
||||
|
||||
enableDefaultPackages = true;
|
||||
|
||||
fontconfig.defaultFonts = {
|
||||
sansSerif = [ "Atkinson Hyperlegible" ];
|
||||
serif = [ "Atkinson Hyperlegible" ];
|
||||
monospace = [ "FiraCode Nerd Font" ];
|
||||
};
|
||||
};
|
||||
|
||||
# for external drives showing in file managers
|
||||
services.devmon.enable = true;
|
||||
services.gvfs.enable = true;
|
||||
services.udisks2.enable = true;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = [
|
||||
|
@ -18,5 +18,8 @@
|
|||
pkgs.virt-manager
|
||||
pkgs.youtube-music
|
||||
pkgs.gparted
|
||||
pkgs.cinnamon.nemo-with-extensions
|
||||
pkgs.cinnamon.mint-y-icons
|
||||
pkgs.pinentry-gtk2
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue