Various changey fixes
This commit is contained in:
parent
506b0f6c89
commit
4afa2740be
|
@ -2,7 +2,7 @@
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
/* `otf-font-awesome` is required to be installed for icons */
|
/* `otf-font-awesome` is required to be installed for icons */
|
||||||
font-family: "iosevka-lyte", Roboto, Helvetica, Arial, sans-serif;
|
font-family: "Iosevka", Roboto, Helvetica, Arial, sans-serif;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,5 +63,6 @@ mkdir -p $NOTES_PATH $USER_LOGS_PATH $SCROTS_PATH
|
||||||
# start a tmux session by default if possible and we're not already in
|
# start a tmux session by default if possible and we're not already in
|
||||||
# a terminal multiplexer
|
# a terminal multiplexer
|
||||||
if has_command tmux && string match -v -q '*tmux*' $TERM && string match -v -q '*screen*' $TERM
|
if has_command tmux && string match -v -q '*tmux*' $TERM && string match -v -q '*screen*' $TERM
|
||||||
|
tmux start-server
|
||||||
tmux attach -t default || tmux new -s default
|
tmux attach -t default || tmux new -s default
|
||||||
end
|
end
|
||||||
|
|
10
env/laptop/hardware.nix
vendored
10
env/laptop/hardware.nix
vendored
|
@ -12,6 +12,8 @@
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
boot.kernelParams = [ "resume=/swapfile" "resume_offset=874496" ];
|
||||||
|
boot.resumeDevice = "/dev/disk/by-uuid/d1d92974-c0c0-4566-8131-c3dda9b21122";
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-uuid/d1d92974-c0c0-4566-8131-c3dda9b21122";
|
{ device = "/dev/disk/by-uuid/d1d92974-c0c0-4566-8131-c3dda9b21122";
|
||||||
|
@ -23,7 +25,13 @@
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [
|
||||||
|
{
|
||||||
|
device = "/swapfile";
|
||||||
|
priority = 0;
|
||||||
|
size = 16000;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
nix.maxJobs = lib.mkDefault 4;
|
nix.maxJobs = lib.mkDefault 4;
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
|
|
61
env/nix/personal-machine.nix
vendored
61
env/nix/personal-machine.nix
vendored
|
@ -3,9 +3,11 @@
|
||||||
{
|
{
|
||||||
imports = [ /etc/nixos/hardware-configuration.nix ];
|
imports = [ /etc/nixos/hardware-configuration.nix ];
|
||||||
|
|
||||||
boot.loader = {
|
boot = {
|
||||||
systemd-boot.enable = true;
|
loader = {
|
||||||
efi.canTouchEfiVariables = true;
|
systemd-boot.enable = true;
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
|
@ -27,7 +29,35 @@
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
wget vim neovim git curl fish bash tmux pciutils usbutils w3m networkmanager sway zsh kitty firefox-devedition-bin ripgrep lightdm fortune sd fzf dmenu ranger nodejs python3 rsync pass brightnessctl wl-clipboard waybar mako vulkan-tools htop rustup clang
|
fish bash tmux
|
||||||
|
vim neovim
|
||||||
|
networkmanager
|
||||||
|
wget curl w3m
|
||||||
|
git
|
||||||
|
kitty
|
||||||
|
pciutils usbutils binutils
|
||||||
|
sway waybar mako wl-clipboard
|
||||||
|
firefox-devedition-bin
|
||||||
|
ripgrep sd
|
||||||
|
nodejs python3
|
||||||
|
fzf
|
||||||
|
fortune
|
||||||
|
dmenu
|
||||||
|
ranger
|
||||||
|
rsync
|
||||||
|
pass
|
||||||
|
brightnessctl
|
||||||
|
vulkan-tools # TODO: vulkan?
|
||||||
|
htop
|
||||||
|
rustup
|
||||||
|
clang
|
||||||
|
pavucontrol
|
||||||
|
pamixer
|
||||||
|
strongswan
|
||||||
|
gnumake
|
||||||
|
elixir
|
||||||
|
docker docker-compose
|
||||||
|
postgresql
|
||||||
];
|
];
|
||||||
variables = {
|
variables = {
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
|
@ -36,10 +66,19 @@
|
||||||
|
|
||||||
fonts.fonts = with pkgs; [ iosevka ];
|
fonts.fonts = with pkgs; [ iosevka ];
|
||||||
|
|
||||||
|
virtualisation.docker.enable = true;
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
|
bluetooth = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
pulseaudio = {
|
pulseaudio = {
|
||||||
enable = true;
|
enable = true;
|
||||||
support32Bit = true;
|
support32Bit = true;
|
||||||
|
package = pkgs.pulseaudioFull;
|
||||||
|
# extraConfig = "
|
||||||
|
# load-module module-switch-on-connect
|
||||||
|
# ";
|
||||||
};
|
};
|
||||||
opengl = {
|
opengl = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -65,12 +104,6 @@
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
openssh.enable = true;
|
openssh.enable = true;
|
||||||
xserver = {
|
|
||||||
enable = true;
|
|
||||||
displayManager.lightdm = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
|
@ -79,9 +112,15 @@
|
||||||
|
|
||||||
users.users.daniel = {
|
users.users.daniel = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" ];
|
extraGroups = [ "wheel" "docker" ];
|
||||||
shell = pkgs.fish;
|
shell = pkgs.fish;
|
||||||
home = "/home/daniel/.home";
|
home = "/home/daniel/.home";
|
||||||
|
packages = with pkgs; [
|
||||||
|
steam
|
||||||
|
pulsemixer
|
||||||
|
file
|
||||||
|
appimage-run
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
system.stateVersion = "20.03";
|
system.stateVersion = "20.03";
|
||||||
|
|
7
env/nix/pkgs/home.nix
vendored
Normal file
7
env/nix/pkgs/home.nix
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
home.stateVersion = "20.03";
|
||||||
|
}
|
|
@ -116,6 +116,9 @@ links=(
|
||||||
|
|
||||||
# XDG user directories
|
# XDG user directories
|
||||||
"apps/shell/user-dirs" "$XDG_CONFIG_HOME/user-dirs.dirs"
|
"apps/shell/user-dirs" "$XDG_CONFIG_HOME/user-dirs.dirs"
|
||||||
|
|
||||||
|
# XDG user directories
|
||||||
|
"env/nix/pkgs" "$XDG_CONFIG_HOME/nixpkgs"
|
||||||
)
|
)
|
||||||
|
|
||||||
chmod 700 -R "$HOME/.bin"
|
chmod 700 -R "$HOME/.bin"
|
||||||
|
|
Reference in a new issue