Merge branch 'main' into feature/8-neovim-lua

This commit is contained in:
Ethan Lane 2024-09-21 13:48:34 +01:00
commit e74756e61f
7 changed files with 55 additions and 21 deletions

View file

@ -52,17 +52,20 @@ in {
dunst dunst
easytag easytag
firefox firefox
flac
flameshot flameshot
flatpak flatpak
font-awesome font-awesome
gimp gimp
git git
gnome.gnome-keyring gnome.gnome-keyring
grip
grub2 grub2
hack-font hack-font
htop htop
hugo hugo
i3 i3
i3-swallow
i3lock-fancy i3lock-fancy
keepassxc keepassxc
keepmenu keepmenu
@ -82,6 +85,7 @@ in {
os-prober os-prober
pavucontrol pavucontrol
picom picom
playerctl
plexamp plexamp
pm2 pm2
polybar polybar
@ -93,6 +97,8 @@ in {
rofi-emoji rofi-emoji
slack slack
steam steam
sublime-music
sxiv
tldr tldr
unzip unzip
vim vim

View file

@ -50,6 +50,12 @@ bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle
# Use playerctl to control playback
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioPause exec playerctl play-pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
# Use Mouse+$mod to drag floating windows to their wanted position # Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod floating_modifier $mod

14
docs/Cleanup.md Normal file
View file

@ -0,0 +1,14 @@
# Cleanup
This document refers to information about cleaning the system, such as deleting
old generations, unused nix shells, etc.
## Delete Old Generations
Run the following commands to clean the system up and delete old generations:
```bash
nix-collect-garbage --delete-old
sudo nox-collect-garbage -d
sudo /run/current-system/bin/switch-to-configuration boot
```

12
docs/Grub.md Normal file
View file

@ -0,0 +1,12 @@
# Grub
This document is for information regarding Grub.
## Reinstall Grub
If the grub install breaks and you ever need to reinstall grub, the following
command is how you do it:
```bash
sudo NIXOS_INSTALL_BOOTLOADER=1 /nix/var/nix/profiles/system/bin/switch-to-configuration boot
```

View file

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1720042825, "lastModified": 1726818100,
"narHash": "sha256-A0vrUB6x82/jvf17qPCpxaM+ulJnD8YZwH9Ci0BsAzE=", "narHash": "sha256-z2V74f5vXqkN5Q+goFlhbFXY/dNaBAyeLpr2bxu4Eic=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "e1391fb22e18a36f57e6999c7a9f966dc80ac073", "rev": "1bbc1a5a1f4de7401c92db85b2119ed21bb4139d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -23,11 +23,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1725001927, "lastModified": 1726688310,
"narHash": "sha256-eV+63gK0Mp7ygCR0Oy4yIYSNcum2VQwnZamHxYTNi+M=", "narHash": "sha256-Xc9lEtentPCEtxc/F1e6jIZsd4MPDYv4Kugl9WtXlz0=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "6e99f2a27d600612004fbd2c3282d614bfee6421", "rev": "dbebdd67a6006bb145d98c8debf9140ac7e651d0",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -55,6 +55,7 @@
gnome.gnome-keyring.enable = true; gnome.gnome-keyring.enable = true;
rsyncd.enable = true; rsyncd.enable = true;
openssh.enable = true; openssh.enable = true;
printing.enable = true;
pipewire = { pipewire = {
enable = true; enable = true;
@ -116,6 +117,8 @@
yt-mp3 = "yt-dlp -xi --audio-format mp3"; yt-mp3 = "yt-dlp -xi --audio-format mp3";
yt-mp3-meta = "yt-dlp -xi --audio-format mp3 --parse-metadata \"playlist_index:%(track_number)s\" --add-metadata"; yt-mp3-meta = "yt-dlp -xi --audio-format mp3 --parse-metadata \"playlist_index:%(track_number)s\" --add-metadata";
yt-mp3-meta-cookies = "yt-dlp -xi --audio-format mp3 --parse-metadata \"playlist_index:%(track_number)s\" --add-metadata --cookies-from-browser firefox"; yt-mp3-meta-cookies = "yt-dlp -xi --audio-format mp3 --parse-metadata \"playlist_index:%(track_number)s\" --add-metadata --cookies-from-browser firefox";
s = "swallow";
}; };
}; };

View file

@ -4,35 +4,28 @@
{ config, lib, pkgs, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = [ ]; imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "ata_piix" "ohci_pci" "sd_mod" "sr_mod" ]; boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ]; boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" =
{ device = "/dev/disk/by-uuid/2df2d138-ab85-430b-961f-40509de6e998"; { device = "/dev/disk/by-uuid/9f9649cd-58a1-49cb-85c4-279ad926a312";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = swapDevices = [ ];
{ device = "/dev/disk/by-uuid/A41B-7CC9";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/27a3e9d3-43d1-4bd7-81bd-1169db2637ee"; }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's # (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction # still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true; networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s3.useDHCP = lib.mkDefault true; # networking.interfaces.enp1s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
virtualisation.virtualbox.guest.enable = true;
} }