mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-10-01 22:44:51 +02:00
more buldak configuration
This commit is contained in:
parent
43733e4a4a
commit
9d41a6fa81
4 changed files with 94 additions and 14 deletions
|
@ -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
|
||||
|
|
5
hosts/buldak/features/default.nix
Normal file
5
hosts/buldak/features/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./discord.nix
|
||||
];
|
||||
}
|
31
hosts/buldak/features/discord.nix
Normal file
31
hosts/buldak/features/discord.nix
Normal file
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
21
hosts/buldak/features/software.nix
Normal file
21
hosts/buldak/features/software.nix
Normal file
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue