adding audacity and fixing mem script

This commit is contained in:
Chris Cochrun 2022-06-30 11:25:53 -05:00
parent 6ad3e2f63a
commit 41d62a174e
5 changed files with 66 additions and 15 deletions

View file

@ -256,6 +256,7 @@ ark
dash dash
light light
kget kget
audacity
krename krename
kwallet-pam kwallet-pam
plasma5Packages.kwallet plasma5Packages.kwallet
@ -641,6 +642,7 @@ Now in the =hardware-configuration.nix= file, I didn't change much because I wan
** Kaladin ** Kaladin
Kaladin is my desktop machine. A powerhouse for the most part with a recent i7 and 64gb of memory and an Nvidia 1080. Basically I use this for video editing, animation, and some other things. Here is it's configuration. Kaladin is my desktop machine. A powerhouse for the most part with a recent i7 and 64gb of memory and an Nvidia 1080. Basically I use this for video editing, animation, and some other things. Here is it's configuration.
*** config
#+begin_src nix :tangle system/kaladin/configuration.nix :noweb yes #+begin_src nix :tangle system/kaladin/configuration.nix :noweb yes
{ config, pkgs, ... }: { config, pkgs, ... }:
@ -685,7 +687,10 @@ Kaladin is my desktop machine. A powerhouse for the most part with a recent i7 a
# NVIDIA # NVIDIA
services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.videoDrivers = [ "nvidia" ];
hardware.opengl.enable = true; hardware = {
opengl.enable = true;
nvidia.modesettings.enable = true;
};
<<desktop>> <<desktop>>
@ -757,7 +762,7 @@ Kaladin is my desktop machine. A powerhouse for the most part with a recent i7 a
(import (builtins.fetchTarball { (import (builtins.fetchTarball {
url = https://github.com/nix-community/emacs-overlay/archive/master.tar.gz; url = https://github.com/nix-community/emacs-overlay/archive/master.tar.gz;
sha256 = "1rhmvww15mkix7fg8gd7r5hwlszi4zlwzxyr02yfwfsf5hh0n0d9"; sha256 = "07nj3ab2jbcmr66krxy6wli23srw0vgx1jhjg2b89amzllnzbi93";
})) }))
<<overlays>> <<overlays>>
@ -796,6 +801,7 @@ Kaladin is my desktop machine. A powerhouse for the most part with a recent i7 a
} }
#+end_src #+end_src
*** hardware
And here is it's hardware config. And here is it's hardware config.
#+begin_src nix :tangle system/kaladin/hardware-configuration.nix #+begin_src nix :tangle system/kaladin/hardware-configuration.nix
{ config, lib, pkgs, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
@ -811,24 +817,44 @@ And here is it's hardware config.
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" =
{ device = "/dev/nvme0n1p2"; { device = "/dev/disk/by-uuid/9b5a1a62-0de6-4e07-a541-634736980d10";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=root" "noatime" "ssd" "space_cache" "compress=zstd" ]; options = [ "subvol=@" "noatime" "ssd" "space_cache" "clear_cache" "compress=zstd" ];
}; };
fileSystems."/home" = fileSystems."/home" =
{ device = "/dev/nvme0n1p2"; { device = "/dev/disk/by-uuid/9b5a1a62-0de6-4e07-a541-634736980d10";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=home" "noatime" "ssd" "space_cache" "compress=zstd" ]; options = [ "subvol=@home" "noatime" "ssd" "space_cache" "clear_cache" "compress=zstd" ];
};
fileSystems."/nix" =
{ device = "/dev/disk/by-uuid/9b5a1a62-0de6-4e07-a541-634736980d10";
fsType = "btrfs";
options = [ "subvol=@nix" "noatime" "ssd" "space_cache" "clear_cache" "compress=zstd" ];
};
fileSystems."/var/log" =
{ device = "/dev/disk/by-uuid/9b5a1a62-0de6-4e07-a541-634736980d10";
fsType = "btrfs";
options = [ "subvol=@log" "noatime" "ssd" "space_cache" "clear_cache" "compress=zstd" ];
}; };
fileSystems."/boot" = fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/F9BD-D185"; { device = "/dev/disk/by-uuid/35A0-C1F1";
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = [ ]; 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.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp7s0.useDHCP = lib.mkDefault true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
} }

View file

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env bash
# Get the percentage of used memory and print it # Get the percentage of used memory and print it
read used total <<< $(free -m | awk '/Mem/{printf $2" "$3}') read used total <<< $(free -m | awk '/Mem/{printf $2" "$3}')

View file

@ -48,7 +48,10 @@
# NVIDIA # NVIDIA
services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.videoDrivers = [ "nvidia" ];
hardware.opengl.enable = true; hardware = {
opengl.enable = true;
nvidia.modesettings.enable = true;
};
services.xserver = { services.xserver = {
enable = true; enable = true;
@ -167,6 +170,7 @@
dash dash
light light
kget kget
audacity
krename krename
kwallet-pam kwallet-pam
plasma5Packages.kwallet plasma5Packages.kwallet
@ -280,7 +284,7 @@
(import (builtins.fetchTarball { (import (builtins.fetchTarball {
url = https://github.com/nix-community/emacs-overlay/archive/master.tar.gz; url = https://github.com/nix-community/emacs-overlay/archive/master.tar.gz;
sha256 = "1rhmvww15mkix7fg8gd7r5hwlszi4zlwzxyr02yfwfsf5hh0n0d9"; sha256 = "07nj3ab2jbcmr66krxy6wli23srw0vgx1jhjg2b89amzllnzbi93";
})) }))
(self: super: (self: super:

View file

@ -11,24 +11,44 @@
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" =
{ device = "/dev/nvme0n1p2"; { device = "/dev/disk/by-uuid/9b5a1a62-0de6-4e07-a541-634736980d10";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=root" "noatime" "ssd" "space_cache" "compress=zstd" ]; options = [ "subvol=@" "noatime" "ssd" "space_cache" "clear_cache" "compress=zstd" ];
}; };
fileSystems."/home" = fileSystems."/home" =
{ device = "/dev/nvme0n1p2"; { device = "/dev/disk/by-uuid/9b5a1a62-0de6-4e07-a541-634736980d10";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=home" "noatime" "ssd" "space_cache" "compress=zstd" ]; options = [ "subvol=@home" "noatime" "ssd" "space_cache" "clear_cache" "compress=zstd" ];
};
fileSystems."/nix" =
{ device = "/dev/disk/by-uuid/9b5a1a62-0de6-4e07-a541-634736980d10";
fsType = "btrfs";
options = [ "subvol=@nix" "noatime" "ssd" "space_cache" "clear_cache" "compress=zstd" ];
};
fileSystems."/var/log" =
{ device = "/dev/disk/by-uuid/9b5a1a62-0de6-4e07-a541-634736980d10";
fsType = "btrfs";
options = [ "subvol=@log" "noatime" "ssd" "space_cache" "clear_cache" "compress=zstd" ];
}; };
fileSystems."/boot" = fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/F9BD-D185"; { device = "/dev/disk/by-uuid/35A0-C1F1";
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = [ ]; 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.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp7s0.useDHCP = lib.mkDefault true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
} }

View file

@ -184,6 +184,7 @@
dash dash
light light
kget kget
audacity
krename krename
kwallet-pam kwallet-pam
plasma5Packages.kwallet plasma5Packages.kwallet