Update flake

This commit is contained in:
Invariantspace 2024-01-16 18:48:06 -08:00
parent 8e4f10a696
commit c3a2bf746e
11 changed files with 69 additions and 74 deletions

View file

@ -1,7 +1,8 @@
{ ... }: {
{ ... }:
{
security.rtkit.enable = true;
# Enable pipewire
services.pipewire = {
enable = true;
alsa = {
@ -11,7 +12,5 @@
pulse.enable = true;
};
# Enable noisetorch
programs.noisetorch.enable = true;
}

View file

@ -5,7 +5,6 @@
{ pkgs, ... }:
{
# Configure boot
boot = {
initrd.systemd.enable = true;
@ -28,31 +27,28 @@
};
};
# Set your time zone.
time.timeZone = "Asia/Shanghai";
# Enable bluetooth
hardware.bluetooth.enable = true;
# Enable hardware accelerated video decoding
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
vaapiVdpau
libvdpau-va-gl
];
# Configure hardware
hardware = {
bluetooth.enable = true;
opengl = {
enable = true;
extraPackages = with pkgs; [
vaapiVdpau
libvdpau-va-gl
];
};
};
# Enable firmware update
services.fwupd.enable = true;
# Configure system services
services = {
automatic-timezoned.enable = true;
fwupd.enable = true;
};
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable CUPS to print documents.
# services.printing.enable = true;
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
@ -61,16 +57,6 @@
# enableSSHSupport = true;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you
# accidentally delete configuration.nix.
# system.copySystemConfiguration = true;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
@ -78,6 +64,5 @@
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.11"; # Did you read the comment?
}

View file

@ -1,4 +1,6 @@
{ inputs, ... }: {
{ inputs, ... }:
{
imports = with inputs; [
disko.nixosModules.disko
hardware.nixosModules.asus-zephyrus-ga402

View file

@ -1,5 +1,6 @@
{ config, ... }: {
{ config, ... }:
{
programs = {
adb.enable = true;
kdeconnect.enable = true;
@ -15,5 +16,4 @@
};
users.users.${config.constants.userName}.extraGroups = [ "adbusers" ];
}

View file

@ -1,4 +1,6 @@
{ ... }: {
{ ... }:
{
disko.devices = {
# Partition the physical disk
disk.storage = {
@ -76,5 +78,4 @@
};
};
};
}

View file

@ -1,4 +1,5 @@
{ config, pkgs, ... }:
let usr = config.constants.userName; in {
home-manager.users.${usr} = {
home.packages = with pkgs; [

View file

@ -1,4 +1,6 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
# Configure default fonts
fonts = {
packages = with pkgs; [

View file

@ -1,4 +1,6 @@
{ config, ... }: {
{ config, ... }:
{
networking = let const = config.constants; in {
domain = const.domain;
hostId = "30f8f777";
@ -9,5 +11,6 @@
nftables.enable = true;
wireless.iwd.enable = true;
};
services.resolved.enable = true;
}

View file

@ -1,4 +1,6 @@
{ ... }: {
{ ... }:
{
services.tailscale = {
enable = true;
port = 22276;

View file

@ -1,5 +1,6 @@
{ config, lib, ... }: {
{ config, lib, ... }:
{
boot = {
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
loader.grub.zfsSupport = true;
@ -78,6 +79,5 @@
];
};
};
}