push
This commit is contained in:
10
home/bug/.config/nixos/boot.nix
Normal file
10
home/bug/.config/nixos/boot.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
boot = {
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
33
home/bug/.config/nixos/environment.nix
Normal file
33
home/bug/.config/nixos/environment.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment = {
|
||||
# env
|
||||
sessionVariables = {
|
||||
WLR_NO_HARDWARE_CURSORS = "1";
|
||||
NIXOS_OZONE_WL = "1";
|
||||
};
|
||||
|
||||
# packages
|
||||
systemPackages = with pkgs; [
|
||||
rofi-wayland
|
||||
waybar
|
||||
swww
|
||||
kitty
|
||||
ags
|
||||
gammastep
|
||||
fcitx5
|
||||
hypridle
|
||||
easyeffects
|
||||
wl-clipboard
|
||||
foot
|
||||
cliphist
|
||||
slurp
|
||||
grim
|
||||
swappy
|
||||
tesseract
|
||||
hyprpicker
|
||||
libnotify
|
||||
];
|
||||
};
|
||||
}
|
||||
22
home/bug/.config/nixos/hardware.nix
Normal file
22
home/bug/.config/nixos/hardware.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
hardware = {
|
||||
# open gl
|
||||
opengl.enable = true;
|
||||
graphics.enable = true;
|
||||
|
||||
# nvidia drivers
|
||||
nvidia = {
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = false;
|
||||
powerManagement.finegrained = false;
|
||||
open = true;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
|
||||
# pipewire
|
||||
pulseaudio.enable = false;
|
||||
};
|
||||
}
|
||||
21
home/bug/.config/nixos/locale.nix
Normal file
21
home/bug/.config/nixos/locale.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
time.timeZone = "America/Chicago";
|
||||
|
||||
i18n = {
|
||||
defaultLocale = "en_US.UTF-8";
|
||||
|
||||
extraLocaleSettings = {
|
||||
LC_ADDRESS = "en_US.UTF-8";
|
||||
LC_IDENTIFICATION = "en_US.UTF-8";
|
||||
LC_MEASUREMENT = "en_US.UTF-8";
|
||||
LC_MONETARY = "en_US.UTF-8";
|
||||
LC_NAME = "en_US.UTF-8";
|
||||
LC_NUMERIC = "en_US.UTF-8";
|
||||
LC_PAPER = "en_US.UTF-8";
|
||||
LC_TELEPHONE = "en_US.UTF-8";
|
||||
LC_TIME = "en_US.UTF-8";
|
||||
};
|
||||
};
|
||||
}
|
||||
17
home/bug/.config/nixos/main.nix
Normal file
17
home/bug/.config/nixos/main.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./boot.nix
|
||||
./environment.nix
|
||||
./hardware.nix
|
||||
./locale.nix
|
||||
./misc.nix
|
||||
./networking.nix
|
||||
./programs.nix
|
||||
./services.nix
|
||||
./users.nix
|
||||
];
|
||||
}
|
||||
18
home/bug/.config/nixos/misc.nix
Normal file
18
home/bug/.config/nixos/misc.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# portal
|
||||
xdg.portal.enable = true;
|
||||
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||
|
||||
# gnome autologin workaround
|
||||
systemd.services."getty@tty1".enable = false;
|
||||
systemd.services."autovt@tty1".enable = false;
|
||||
|
||||
# unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
# pipewire
|
||||
security.rtkit.enable = true;
|
||||
}
|
||||
14
home/bug/.config/nixos/networking.nix
Normal file
14
home/bug/.config/nixos/networking.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
networking = {
|
||||
hostName = "nix";
|
||||
networkmanager.enable = true;
|
||||
|
||||
# Open ports in the firewall.
|
||||
# firewall.allowedTCPPorts = [ ... ];
|
||||
# firewall.allowedUDPPorts = [ ... ];
|
||||
# Or disable the firewall altogether.
|
||||
# firewall.enable = false;
|
||||
};
|
||||
}
|
||||
23
home/bug/.config/nixos/programs.nix
Normal file
23
home/bug/.config/nixos/programs.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs = {
|
||||
# firefox
|
||||
firefox.enable = true;
|
||||
|
||||
# steam
|
||||
steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
localNetworkGameTransfers.openFirewall = true;
|
||||
};
|
||||
|
||||
# hyprland
|
||||
hyprland = {
|
||||
enable = true;
|
||||
# nvidiaPatches = true;
|
||||
xwayland.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
52
home/bug/.config/nixos/services.nix
Normal file
52
home/bug/.config/nixos/services.nix
Normal file
@@ -0,0 +1,52 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
services = {
|
||||
# openssh
|
||||
openssh.enable = true;
|
||||
|
||||
# printing
|
||||
printing.enable = true;
|
||||
|
||||
# sound
|
||||
pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
# jack.enable = true;
|
||||
};
|
||||
|
||||
# x11
|
||||
xserver = {
|
||||
enable = true;
|
||||
|
||||
# enable nvidia drivers
|
||||
videoDrivers = ["nvidia"];
|
||||
|
||||
# touchpad
|
||||
libinput.enable = true;
|
||||
|
||||
# x11 keymap
|
||||
xkb = {
|
||||
layout = "us";
|
||||
variant = "";
|
||||
};
|
||||
|
||||
displayManager = {
|
||||
# gnome de
|
||||
gdm.enable = true;
|
||||
gnome.enable = true;
|
||||
|
||||
# auto login
|
||||
autoLogin = {
|
||||
enable = true;
|
||||
user = "bug";
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
# flatpak
|
||||
flatpak.enable = true;
|
||||
};
|
||||
}
|
||||
20
home/bug/.config/nixos/users.nix
Normal file
20
home/bug/.config/nixos/users.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
users.users.bug = {
|
||||
isNormalUser = true;
|
||||
description = "Bug";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
packages = with pkgs; [
|
||||
vscodium
|
||||
neofetch
|
||||
git
|
||||
btop
|
||||
luajit
|
||||
luarocks
|
||||
nicotine-plus
|
||||
discord
|
||||
zed-editor
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user