From 9d41a6fa812ab47a2ea871d7955a18dd6a21882f Mon Sep 17 00:00:00 2001 From: misschloe777 Date: Sat, 27 Sep 2025 04:09:32 +0200 Subject: [PATCH] more buldak configuration --- hosts/buldak/configuration.nix | 51 ++++++++++++++++++++++-------- hosts/buldak/features/default.nix | 5 +++ hosts/buldak/features/discord.nix | 31 ++++++++++++++++++ hosts/buldak/features/software.nix | 21 ++++++++++++ 4 files changed, 94 insertions(+), 14 deletions(-) create mode 100644 hosts/buldak/features/default.nix create mode 100644 hosts/buldak/features/discord.nix create mode 100644 hosts/buldak/features/software.nix diff --git a/hosts/buldak/configuration.nix b/hosts/buldak/configuration.nix index a8dbc7d..de2540a 100644 --- a/hosts/buldak/configuration.nix +++ b/hosts/buldak/configuration.nix @@ -2,23 +2,30 @@ # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). -{ config, pkgs, ... }: +{ + config, + pkgs, + inputs, + ... +}: { - imports = - [ # Include the results of the hardware scan. - ./hardware-configuration.nix - ./features/default.nix - ../../shared/client/tailscale.nix - ../../shared/client/niri.nix - ../../shared/client/nh.nix - ]; + imports = [ + # Include the results of the hardware scan. + ./hardware-configuration.nix + ../../shared/client/tailscale.nix + ../../shared/client/niri.nix + ../../shared/client/nh.nix + ../../shared + ./features + ]; # Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - boot.initrd.luks.devices."luks-d265e9b2-2ef5-445a-83f2-ec022e0eec7b".device = "/dev/disk/by-uuid/d265e9b2-2ef5-445a-83f2-ec022e0eec7b"; + boot.initrd.luks.devices."luks-d265e9b2-2ef5-445a-83f2-ec022e0eec7b".device = + "/dev/disk/by-uuid/d265e9b2-2ef5-445a-83f2-ec022e0eec7b"; networking.hostName = "buldak"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. @@ -56,12 +63,24 @@ # Configure console keymap console.keyMap = "fr"; + programs.zsh.enable = true; + environment.pathsToLink = [ "/share/zsh" ]; + # Define a user account. Don't forget to set a password with ‘passwd’. users.users.misschloe777 = { isNormalUser = true; description = "misschloe777"; - extraGroups = [ "networkmanager" "wheel" ]; - packages = with pkgs; []; + shell = pkgs.zsh; + extraGroups = [ + "networkmanager" + "wheel" + "audio" + "video" + "podman" + ]; + packages = with pkgs; [ + inputs.zen-browser.packages."${system}".default + ]; }; # Allow unfree packages @@ -70,8 +89,12 @@ # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ - # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. - # wget + # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. + # wget + ]; + + nixpkgs.config.permittedInsecurePackages = [ + "libsoup-2.74.3" ]; # Some programs need SUID wrappers, can be configured further or are diff --git a/hosts/buldak/features/default.nix b/hosts/buldak/features/default.nix new file mode 100644 index 0000000..5d61ddb --- /dev/null +++ b/hosts/buldak/features/default.nix @@ -0,0 +1,5 @@ +{ + imports = [ + ./discord.nix + ]; +} diff --git a/hosts/buldak/features/discord.nix b/hosts/buldak/features/discord.nix new file mode 100644 index 0000000..8cdb9fe --- /dev/null +++ b/hosts/buldak/features/discord.nix @@ -0,0 +1,31 @@ +{ + config, + pkgs, + inputs, + ... +}: +let + moonlight-client = pkgs.discord.override { + withMoonlight = true; + }; +in +{ + environment.systemPackages = with pkgs; [ + moonlight-client + inputs.moonlight.packages.${pkgs.system}.moonlight + vesktop + ]; + # screen record support + xdg = { + autostart.enable = true; + icons.enable = true; + portal = { + enable = true; + extraPortals = with pkgs; [ + xdg-desktop-portal-wlr + xdg-desktop-portal-gtk + ]; + wlr.enable = true; + }; + }; +} diff --git a/hosts/buldak/features/software.nix b/hosts/buldak/features/software.nix new file mode 100644 index 0000000..4aff9de --- /dev/null +++ b/hosts/buldak/features/software.nix @@ -0,0 +1,21 @@ +{ pkgs, ... }: +{ + environment.systemPackages = with pkgs; [ + zathura + bitwarden + nil + obs-studio + osu-lazer-bin + ]; + + virtualisation.containers.enable = true; + virtualisation = { + podman = { + enable = true; + # Create a `docker` alias for podman, to use it as a drop-in replacement + dockerCompat = true; + # Required for containers under podman-compose to be able to talk to each other. + defaultNetwork.settings.dns_enabled = true; + }; + }; +}