This commit is contained in:
Ethan Lane 2024-07-17 09:19:17 +01:00
commit 9967a9d918
4 changed files with 32 additions and 8 deletions

View file

@ -49,6 +49,7 @@ in {
lightdm lightdm
lua lua
meslo-lgs-nf meslo-lgs-nf
mpv
neovim neovim
networkmanager networkmanager
nextcloud-client nextcloud-client
@ -64,6 +65,7 @@ in {
pm2 pm2
plexamp plexamp
polybar polybar
ranger
rofi rofi
rofi-emoji rofi-emoji
steam steam

View file

@ -23,11 +23,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1720244366, "lastModified": 1720691131,
"narHash": "sha256-WrDV0FPMVd2Sq9hkR5LNHudS3OSMmUrs90JUTN+MXpA=", "narHash": "sha256-CWT+KN8aTPyMIx8P303gsVxUnkinIz0a/Cmasz1jyIM=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "49ee0e94463abada1de470c9c07bfc12b36dcf40", "rev": "a046c1202e11b62cbede5385ba64908feb7bfac4",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -43,11 +43,20 @@
i18n.defaultLocale = "en_GB.UTF-8"; i18n.defaultLocale = "en_GB.UTF-8";
security.rtkit.enable = true;
services = { services = {
flatpak.enable = true; flatpak.enable = true;
dbus.enable = true; dbus.enable = true;
picom.enable = true; picom.enable = true;
pipewire = {
enable = true;
pulse.enable = true;
alsa.enable = true;
alsa.support32Bit = true;
};
xserver = { xserver = {
enable = true; enable = true;
windowManager.i3.enable = true; windowManager.i3.enable = true;
@ -55,6 +64,7 @@
displayManager = { displayManager = {
lightdm.enable = true; lightdm.enable = true;
lightdm.greeters.gtk.enable = true;
}; };
}; };
}; };
@ -86,9 +96,9 @@
gcm = "git commit -m"; gcm = "git commit -m";
gco = "git checkout"; gco = "git checkout";
yt-mp3 = "yt-mp3 -xi --audio-format mp3"; yt-mp3 = "yt-dlp -xi --audio-format mp3";
yt-mp3-meta = "yt-mp3 -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-mp3 -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";
}; };
}; };
@ -114,7 +124,6 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
docker docker
pulseaudio
]; ];
virtualisation.docker.enable = true; virtualisation.docker.enable = true;
@ -125,7 +134,7 @@
extraPortals = [pkgs.xdg-desktop-portal-gtk]; extraPortals = [pkgs.xdg-desktop-portal-gtk];
}; };
hardware.pulseaudio.enable = true; hardware.opengl.enable = true;
system.stateVersion = "24.05"; system.stateVersion = "24.05";
} }

View file

@ -8,4 +8,17 @@
networking = { networking = {
hostName = "vylpes-virt"; hostName = "vylpes-virt";
}; };
services.xserver.displayManager.setupCommands = ''
${pkgs.xorg.xrandr}/bin/xrandr -s 1920x1080
'';
services.xserver.displayManager.sessionCommands = ''
${pkgs.xorg.xrdb}/bin/xrdb -merge <<EOF
Xft.dpi: 96
Xcursor.theme: Adwaita
EOF
'';
virtualisation.virtualbox.guest.enable = true;
} }