Starting my literate config and hiding secrets
This commit is contained in:
parent
0c92894205
commit
c2e30c84bd
7 changed files with 633 additions and 33 deletions
|
@ -1,7 +1,3 @@
|
|||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ config, pkgs, callPackage, ... }:
|
||||
|
||||
{
|
||||
|
@ -42,8 +38,16 @@
|
|||
# Set default shell to be dash for speed
|
||||
environment.binsh = "${pkgs.dash}/bin/dash";
|
||||
|
||||
hardware.uinput.enable = true;
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver.enable = true;
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
windowManager.awesome = {
|
||||
enable = true;
|
||||
package = pkgs.myAwesome;
|
||||
};
|
||||
};
|
||||
|
||||
# Enable the Plasma 5 Desktop Environment.
|
||||
services.xserver.displayManager.sddm.enable = true;
|
||||
|
@ -76,7 +80,6 @@
|
|||
# Turn on flatpak
|
||||
services.flatpak.enable = true;
|
||||
|
||||
#NEWS!!!
|
||||
# Some other things
|
||||
services.thermald.enable = true;
|
||||
services.tlp = {
|
||||
|
@ -84,8 +87,13 @@
|
|||
settings = {
|
||||
CPU_SCALING_GOVERNOR_ON_AC="performance";
|
||||
CPU_SCALING_GOVERNOR_ON_BAT="powersave";
|
||||
CPU_ENERGY_PERF_POLICY_ON_AC="balance_performance";
|
||||
CPU_ENERGY_PERF_POLICY_ON_BAT="power";
|
||||
SCHED_POWERSAVE_ON_AC=0;
|
||||
SCHED_POWERSAVE_ON_BAT=1;
|
||||
START_CHARGE_THRESH_BAT1=70;
|
||||
STOP_CHARGE_THRESH_BAT1=80;
|
||||
USB_ALLOWLIST="32ac:0002";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -153,16 +161,32 @@
|
|||
neochat haskellPackages.greenclip
|
||||
pulsemixer any-nix-shell wtype
|
||||
spotdl kdenlive ffmpeg neofetch
|
||||
xdotool
|
||||
xdotool fennel
|
||||
];
|
||||
|
||||
# EMACS
|
||||
services.emacs.package = pkgs.emacsPgtkNativeComp;
|
||||
nixpkgs.overlays = [
|
||||
|
||||
(import (builtins.fetchTarball {
|
||||
url = https://github.com/nix-community/emacs-overlay/archive/master.tar.gz;
|
||||
sha256 = "1pd14gigm5bznzd8k88dq9scicw1zqknm87bnqmd0z556g9ir60f";
|
||||
}))
|
||||
|
||||
(self: super:
|
||||
{
|
||||
myAwesome = super.awesome.overrideAttrs (old: rec {
|
||||
pname = "myAwesome";
|
||||
version = "git-20220508-c539e0e";
|
||||
src = super.fetchFromGitHub {
|
||||
owner = "awesomeWM";
|
||||
repo = "awesome";
|
||||
rev = "c539e0e4350a42f813952fc28dd8490f42d934b3";
|
||||
sha256 = "EDAL7NnLF2BiVI8DAlEciiZtDmwXOzCPypGTrlN/OoQ=";
|
||||
};
|
||||
});
|
||||
}
|
||||
)
|
||||
];
|
||||
services.emacs.enable = true;
|
||||
|
||||
|
@ -194,4 +218,3 @@
|
|||
system.stateVersion = "21.11"; # Did you read the comment?
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
# 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, ... }:
|
||||
|
||||
{
|
||||
|
@ -10,8 +7,8 @@
|
|||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" "acpi_call" ];
|
||||
boot.extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/500ad375-8fe0-4888-8f57-ee9d5ea1fd9f";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue