bugfix
This commit is contained in:
parent
ba1f4a32c4
commit
a58f8530b7
8 changed files with 219 additions and 9 deletions
73
systems/BASED.nix
Normal file
73
systems/BASED.nix
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
{ pkgs, ... }: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
appimage-run
|
||||
bat
|
||||
bottom
|
||||
cifs-utils
|
||||
du-dust
|
||||
firefox
|
||||
git
|
||||
helix
|
||||
mpv
|
||||
nfs-utils
|
||||
nil
|
||||
nixpkgs-fmt
|
||||
onlyoffice-bin
|
||||
ouch
|
||||
ripgrep-all
|
||||
rustup
|
||||
skim
|
||||
tree
|
||||
wezterm
|
||||
wget
|
||||
zstd
|
||||
];
|
||||
|
||||
services.tailscale.enable = true;
|
||||
services.openssh.enable = true;
|
||||
services.flatpak.enable = true;
|
||||
services.printing.enable = true;
|
||||
|
||||
environment.variables = {
|
||||
EDITOR = "hx";
|
||||
VISUAL = "hx";
|
||||
};
|
||||
|
||||
imports = [ ./hardware-configuration.nix ];
|
||||
hardware.enableAllFirmware = true;
|
||||
hardware.bluetooth.enable = true;
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.networkmanager.enable = true;
|
||||
networking.firewall.enable = false;
|
||||
|
||||
services.xserver.enable = true;
|
||||
services.xserver.displayManager.sddm.enable = true;
|
||||
services.xserver.desktopManager.plasma5.enable = true;
|
||||
services.xserver.layout = "us";
|
||||
systemd.services.display-manager.restartIfChanged = false;
|
||||
environment.plasma5.excludePackages = with pkgs.libsForQt5; [
|
||||
elisa
|
||||
konsole
|
||||
];
|
||||
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
nix.settings = {
|
||||
experimental-features = "nix-command flakes";
|
||||
auto-optimise-store = true;
|
||||
};
|
||||
nixpkgs.config = { allowUnfree = true; };
|
||||
|
||||
time.timeZone = "US/Pacific";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
}
|
||||
28
systems/NOcomputer.nix
Normal file
28
systems/NOcomputer.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ pkgs, ... }: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
openrgb
|
||||
gwe
|
||||
];
|
||||
|
||||
fileSystems."/" = { options = [ "noatime" "compress-force=zstd:3" ]; };
|
||||
fileSystems."/var" = { options = [ "noatime" "compress-force=zstd:3" ]; };
|
||||
fileSystems."/tmp" = { options = [ "noatime" ]; };
|
||||
fileSystems."/home" = { options = [ "noatime" "compress-force=zstd:3" ]; };
|
||||
fileSystems."/home/tao/Games" = { options = [ "nosuid" "nodev" "noatime" "compress-force=zstd:3" "users" "rw" "exec" ]; };
|
||||
|
||||
services.udev.packages = [ pkgs.openrgb ];
|
||||
services.udev.extraRules = ''
|
||||
SUBSYSTEM=="tty", GROUP="dialout", ATTRS{interface}=="Black Magic GDB Server", SYMLINK+="ttyBmpGdb"
|
||||
SUBSYSTEM=="tty", GROUP="dialout", ATTRS{interface}=="Black Magic UART Port", SYMLINK+="ttyBmpTarg"
|
||||
'';
|
||||
|
||||
boot.kernelModules = [ "i2c-dev" ];
|
||||
|
||||
fonts.fonts = with pkgs; [
|
||||
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
||||
noto-fonts-cjk
|
||||
noto-fonts-emoji
|
||||
];
|
||||
|
||||
networking.hostname = "NOcomputer";
|
||||
}
|
||||
6
systems/NOlaptop.nix
Normal file
6
systems/NOlaptop.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{ ... }: {
|
||||
boot.kernelParams = [
|
||||
"mem_sleep_default=deep"
|
||||
"nvme.noacpi=1"
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue