Merge branch 'nixos-2205' into consensus

This commit is contained in:
Serĉanto de Scio 2022-06-10 11:31:11 +10:00
commit a836a3afaa
Signed by: sercanto
GPG key ID: 7DBA9F5689EFB6AA
10 changed files with 38 additions and 29 deletions

View file

@ -35,7 +35,7 @@
nixpkgs.config = { nixpkgs.config = {
allowUnfree = true; allowUnfree = true;
permittedInsecurePackages = ["openssl-1.0.2u" "minecraft"]; permittedInsecurePackages = ["openssl-1.0.2u"];
}; };
# Use the GRUB 2 boot loader. # Use the GRUB 2 boot loader.
@ -88,7 +88,6 @@
gnused gnused
google-authenticator # 2FA google-authenticator # 2FA
google-chrome # A freeware web browser developed by Google google-chrome # A freeware web browser developed by Google
googleearth # A world sphere viewer
graphviz # Graph visualization tools graphviz # Graph visualization tools
gvfs gvfs
imagemagick imagemagick
@ -99,12 +98,10 @@
libgphoto2 libgphoto2
libreoffice-fresh # Libreoffice - fresh version libreoffice-fresh # Libreoffice - fresh version
lxmenu-data lxmenu-data
minecraft
mkpasswd mkpasswd
mp3info # MP3 tag editor / query tool mp3info # MP3 tag editor / query tool
mpd mpd
mtpfs mtpfs
multimc
ncmpcpp ncmpcpp
nextcloud-client nextcloud-client
nvme-cli # NVM-Express user space tooling for Linux nvme-cli # NVM-Express user space tooling for Linux
@ -122,7 +119,6 @@
python39Packages.sphinx # A tool that makes it easy to create intelligent and beautifulul documentation for Python projects python39Packages.sphinx # A tool that makes it easy to create intelligent and beautifulul documentation for Python projects
radiotray-ng # Internet radio player radiotray-ng # Internet radio player
rdiff-backup # External backups rdiff-backup # External backups
shared_mime_info
shotwell shotwell
signal-desktop signal-desktop
smartmontools # Tools for monitoring the health of hard drives smartmontools # Tools for monitoring the health of hard drives
@ -150,10 +146,6 @@
zlib.dev zlib.dev
]; ];
environment.variables = {
GIO_EXTRA_MODULES = ["${pkgs.gvfs}/lib/gio/modules"];
};
services.acpid.enable = true; services.acpid.enable = true;
services.blueman.enable = true; services.blueman.enable = true;
services.kbfs.enable = true; services.kbfs.enable = true;
@ -191,7 +183,6 @@
pulseaudio = { pulseaudio = {
enable = true; enable = true;
systemWide = false; systemWide = false;
extraModules = [pkgs.pulseaudio-modules-bt];
package = pkgs.pulseaudioFull; package = pkgs.pulseaudioFull;
}; };
bluetooth = { bluetooth = {

View file

@ -56,16 +56,16 @@
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"nixpkgs": { "nixpkgs": {
"branch": "nixos-21.11", "branch": "nixos-22.05",
"builtin": false, "builtin": false,
"description": "A read-only mirror of NixOS/nixpkgs tracking the released channels. Send issues and PRs to", "description": "A read-only mirror of NixOS/nixpkgs tracking the released channels. Send issues and PRs to",
"homepage": "https://github.com/NixOS/nixpkgs", "homepage": "https://github.com/NixOS/nixpkgs",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9bc0e974545d5bc4c24e1ed047be0dc4e30e494b", "rev": "d9794b04bffb468b886c553557489977ae5f4c65",
"sha256": "09srdp53k3jc6qj66g85618xg4x2y705ljfn486g437icdp7mln5", "sha256": "1l41dhs1cmwx7q7s38d9dr9zyijfm6bhmv41zr7rsg94yplbr0f1",
"type": "tarball", "type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/9bc0e974545d5bc4c24e1ed047be0dc4e30e494b.tar.gz", "url": "https://github.com/NixOS/nixpkgs/archive/d9794b04bffb468b886c553557489977ae5f4c65.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"nixpkgsUnstable": { "nixpkgsUnstable": {

View file

@ -7,12 +7,19 @@
# Craige's Desktop Packages # Craige's Desktop Packages
imports = [ imports = [
../profiles/ebooks.nix ../profiles/ebooks.nix
../profiles/minecraftClient.nix
../profiles/spotify.nix # Spotify settings ../profiles/spotify.nix # Spotify settings
]; ];
nixpkgs.config.permittedInsecurePackages = [
"googleearth-pro-7.3.4.8248"
];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
byobu # text-based window manager and terminal multiplexer. byobu # text-based window manager and terminal multiplexer.
googleearth-pro # A world sphere viewer
gopass # password file manager gopass # password file manager
shared-mime-info # A database of common MIME types
yt-dlp # Command-line tool to download videos yt-dlp # Command-line tool to download videos
]; ];
} }

View file

@ -24,7 +24,7 @@
brave # Privacy-oriented browser brave # Privacy-oriented browser
chromium chromium
element-desktop # A feature-rich client for Matrix.org element-desktop # A feature-rich client for Matrix.org
firefoxWrapper # install Firefox with support for plugins firefox # install Firefox with support for plugins
gnome.gnome-tweaks # A tool to customize advanced GNOME 3 options gnome.gnome-tweaks # A tool to customize advanced GNOME 3 options
google-chrome # A freeware web browser developed by Google google-chrome # A freeware web browser developed by Google
libreoffice-fresh libreoffice-fresh
@ -70,7 +70,6 @@
hardware = { hardware = {
pulseaudio = { pulseaudio = {
enable = true; enable = true;
extraModules = [pkgs.pulseaudio-modules-bt];
package = pkgs.pulseaudioFull; package = pkgs.pulseaudioFull;
}; };
bluetooth = { bluetooth = {

View file

@ -7,12 +7,11 @@
sources = import ../nix/sources.nix; sources = import ../nix/sources.nix;
unstable = import sources.nixpkgsUnstable {}; unstable = import sources.nixpkgsUnstable {};
in { in {
nixpkgs.config = { imports = [
allowUnfree = true; ../profiles/minecraftClient.nix # Play Minecraft :-)
permittedInsecurePackages = ["minecraft"]; ];
};
# Retro Gaming Packages # Kid's Gaming Packages
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
angband # A single-player roguelike dungeon exploration game angband # A single-player roguelike dungeon exploration game
discord # cross-platform voice and text chat for gamers discord # cross-platform voice and text chat for gamers
@ -22,10 +21,8 @@ in {
freedroidrpg # Isometric 3D RPG similar to game Diablo freedroidrpg # Isometric 3D RPG similar to game Diablo
gcompris # Educational software suite, kids aged 2 to 10 gcompris # Educational software suite, kids aged 2 to 10
unstable.grapejuice # Simple Wine+Roblox management tool unstable.grapejuice # Simple Wine+Roblox management tool
jre # Required by Minecraft (via multimc)
#lincity_ng # City building game #lincity_ng # City building game
meritous # Action-adventure dungeon crawl game meritous # Action-adventure dungeon crawl game
minecraft # Official launcher for Minecraft
minetest # Infinite-world block sandbox game minetest # Infinite-world block sandbox game
nethack-x11 # Rogue-like game nethack-x11 # Rogue-like game
#opendungeons # real time strategy game sharing game elements with the Dungeon Keeper series and Evil Genius #opendungeons # real time strategy game sharing game elements with the Dungeon Keeper series and Evil Genius

View file

@ -0,0 +1,16 @@
# Minecraft client configuration for NixOS
{
pkgs,
config,
...
}: {
nixpkgs.config = {
allowUnfree = true;
permittedInsecurePackages = ["minecraft"];
};
environment.systemPackages = with pkgs; [
jre # Required by Minecraft (via polymc)
minecraft # Official launcher for Minecraft
polymc # A free, open source launcher for Minecraft
];
}

View file

@ -8,7 +8,7 @@
services.openssh = { services.openssh = {
enable = true; # Enable the OpenSSH daemon. enable = true; # Enable the OpenSSH daemon.
permitRootLogin = "prohibit-password"; permitRootLogin = "prohibit-password";
challengeResponseAuthentication = false; kbdInteractiveAuthentication = false;
passwordAuthentication = false; passwordAuthentication = false;
openFirewall = true; openFirewall = true;
hostKeys = [ hostKeys = [

View file

@ -16,6 +16,6 @@
withUtempter = true; withUtempter = true;
}; };
# avoid CVE-2021-4034 (PwnKit) security.polkit.enable = false; # avoid CVE-2021-4034 (PwnKit)
security.polkit.enable = false; services.udisks2.enable = false; # disable udisks2 which enables polkit
} }

View file

@ -27,7 +27,6 @@
wee-slack # A WeeChat plugin for Slack.com wee-slack # A WeeChat plugin for Slack.com
weechat-autosort # Automatically or manually keep your buffers sorted weechat-autosort # Automatically or manually keep your buffers sorted
weechat-matrix # Weechat communication over the Matrix protocol weechat-matrix # Weechat communication over the Matrix protocol
weechat-otr # WeeChat script for Off-the-Record messaging
]; ];
}; };
}) })

View file

@ -34,7 +34,7 @@
haskellPackages.dbus haskellPackages.dbus
haskellPackages.xmonad-contrib # Install xmonad-contrib. haskellPackages.xmonad-contrib # Install xmonad-contrib.
haskellPackages.xmonad-extras # Install xmonad-extras. haskellPackages.xmonad-extras # Install xmonad-extras.
haskellPackages.xmonad_0_17_0 haskellPackages.xmonad
]; ];
}; };
}; };
@ -49,7 +49,7 @@
# Install any additional fonts that I require to be used with xmonad # Install any additional fonts that I require to be used with xmonad
fonts.fonts = with pkgs; [ fonts.fonts = with pkgs; [
opensans-ttf # Used in in my xmobar configuration open-sans # Used in in my xmobar configuration
]; ];
# Install other packages that I require to be used with xmonad. # Install other packages that I require to be used with xmonad.