adds rustup, bisq, keet, libreoffice

This commit is contained in:
2023-12-22 18:58:23 -05:00
parent bb56346bbe
commit db651698ca
7 changed files with 122 additions and 3 deletions
+16
View File
@@ -7,17 +7,33 @@
programs.zsh.enable = true; programs.zsh.enable = true;
boot.binfmt.registrations.appimage = {
wrapInterpreterInShell = false;
interpreter = "${pkgs.appimage-run}/bin/appimage-run";
recognitionType = "magic";
offset = 0;
mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff'';
magicOrExtension = ''\x7fELF....AI\x02'';
};
users.users.${username} = { users.users.${username} = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = [ "networkmanager" "wheel" ];
shell = pkgs.zsh; shell = pkgs.zsh;
packages = with pkgs; [ packages = with pkgs; [
bisq-desktop
cargo
cura cura
dig dig
element-desktop element-desktop
firefox firefox
freecad freecad
gcc
keet
libreoffice
nmap nmap
rustc
rustup
sparrow sparrow
sublime-music sublime-music
thunderbird thunderbird
+1
View File
@@ -24,6 +24,7 @@
"$HOME/go/bin" "$HOME/go/bin"
"$HOME/.local/bin" "$HOME/.local/bin"
"$HOME/bin" "$HOME/bin"
"$HOME/.cargo/bin"
]; ];
}; };
} }
+3 -3
View File
@@ -29,14 +29,14 @@
services.tlp = { services.tlp = {
enable = true; enable = true;
settings = { settings = {
CPU_SCALING_GOVERNOR_ON_AC = "performance"; CPU_SCALING_GOVERNOR_ON_AC = "powersave";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; CPU_ENERGY_PERF_POLICY_ON_AC = "power";
CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
CPU_MIN_PERF_ON_AC = 0; CPU_MIN_PERF_ON_AC = 0;
CPU_MAX_PERF_ON_AC = 100; CPU_MAX_PERF_ON_AC = 40;
CPU_MIN_PERF_ON_BAT = 0; CPU_MIN_PERF_ON_BAT = 0;
CPU_MAX_PERF_ON_BAT = 40; CPU_MAX_PERF_ON_BAT = 40;
}; };
+44
View File
@@ -0,0 +1,44 @@
{ pkgs, lib, username, ... }:
{
imports = [ ./hardware-configuration.nix ./services.nix ];
networking.hostName = "laptop";
networking.networkmanager.enable = true;
networking.firewall.enable = true;
networking.firewall.allowedTCPPorts = [ ];
networking.firewall.allowedUDPPorts = [ 51820 ];
security.pki.certificateFiles = [ "/root/ominous-law.local.crt" ];
hardware.bluetooth.enable = true;
boot.loader = {
systemd-boot.enable = true;
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
};
};
boot.initrd.secrets."/crypto_keyfile.bin" = null;
services.power-profiles-daemon.enable = false;
services.thermald.enable = true;
services.tlp = {
enable = true;
settings = {
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
CPU_MIN_PERF_ON_AC = 0;
CPU_MAX_PERF_ON_AC = 100;
CPU_MIN_PERF_ON_BAT = 0;
CPU_MAX_PERF_ON_BAT = 40;
};
};
}
@@ -0,0 +1,40 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/99ac3f1e-e178-4e52-be17-4669476ed652";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-300dbb06-4573-4a20-9842-e83d572fd003".device = "/dev/disk/by-uuid/300dbb06-4573-4a20-9842-e83d572fd003";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/43E8-BD26";
fsType = "vfat";
};
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
+13
View File
@@ -0,0 +1,13 @@
{ pkgs, ... }:
{
imports = [
../../modules/home/git.nix
../../modules/home/vim.nix
../../modules/home/zsh.nix
];
modules.git.enable = true;
modules.vim.enable = true;
modules.zsh.enable = true;
}
+5
View File
@@ -0,0 +1,5 @@
{ pkgs, ... }:
{
imports = [];
}