Brought atom up to date
This commit is contained in:
parent
8cac965a21
commit
f25ada0c71
47
config/hardware/atom.nix
Normal file
47
config/hardware/atom.nix
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> ];
|
||||||
|
|
||||||
|
system.stateVersion = "20.03";
|
||||||
|
|
||||||
|
boot = {
|
||||||
|
loader = {
|
||||||
|
grub = {
|
||||||
|
enable = true;
|
||||||
|
version = 2;
|
||||||
|
device = "/dev/sda";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
initrd = {
|
||||||
|
availableKernelModules =
|
||||||
|
[ "ahci" "ohci_pci" "ehci_pci" "usb_storage" "ums_realtek" "sd_mod" ];
|
||||||
|
kernelModules = [ ];
|
||||||
|
};
|
||||||
|
kernelModules = [ "kvm-amd" ];
|
||||||
|
extraModulePackages = [ ];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/" = {
|
||||||
|
device = "/dev/disk/by-label/nixos-root";
|
||||||
|
fsType = "btrfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [{ device = "/dev/disk/by-label/nixos-swap"; }];
|
||||||
|
|
||||||
|
hardware = {
|
||||||
|
bluetooth.enable = true;
|
||||||
|
|
||||||
|
opengl = {
|
||||||
|
driSupport = true;
|
||||||
|
driSupport32Bit = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
pulseaudio.support32Bit = true;
|
||||||
|
|
||||||
|
cpu.amd.updateMicrocode = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
nix.maxJobs = lib.mkDefault 2;
|
||||||
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
|
}
|
@ -1,9 +1,9 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
fudo.laptop.use-network-manager = false;
|
fudo.profile.laptop.use-network-manager = false;
|
||||||
|
|
||||||
fudo.slynk.enable = true;
|
fudo.slynk.enable = true;
|
||||||
|
|
||||||
services.xserver = { videoDrivers = [ "nvidia" ]; };
|
services.xserver = { videoDrivers = [ "radeon" ]; };
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# TODO: remove?
|
|
||||||
nixpkgs.config.permittedInsecurePackages = [
|
|
||||||
"openssh-with-gssapi-8.4p1" # CVE-2021-28041
|
|
||||||
];
|
|
||||||
|
|
||||||
fudo.slynk.enable = true;
|
fudo.slynk.enable = true;
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
|
@ -17,6 +17,11 @@ in {
|
|||||||
# '';
|
# '';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# TODO: remove?
|
||||||
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
|
"openssh-with-gssapi-8.4p1" # CVE-2021-28041
|
||||||
|
];
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
security.acme.acceptTerms = true;
|
security.acme.acceptTerms = true;
|
||||||
|
|
||||||
|
@ -1,24 +1,32 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
{
|
{
|
||||||
|
imports = [ ./common-ui.nix ];
|
||||||
|
|
||||||
options.fudo.profile.laptop = {
|
options.fudo.profile.laptop = {
|
||||||
use-network-manager =
|
use-network-manager =
|
||||||
mkEnableOption "Use NetworkManager instead of wpa_supplicant.";
|
mkEnableOption "Use NetworkManager instead of wpa_supplicant.";
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [ acpi upower wpa_supplicant ];
|
config = {
|
||||||
|
|
||||||
networking = if (config.fudo.profile.laptop.use-network-manager) then {
|
environment.systemPackages = with pkgs; [ acpi upower wpa_supplicant ];
|
||||||
networkmanager.enable = true;
|
|
||||||
} else {
|
networking = if (config.fudo.profile.laptop.use-network-manager) then {
|
||||||
networkmanager.enable = false;
|
networkmanager.enable = true;
|
||||||
wireless = {
|
} else {
|
||||||
enable = true;
|
networkmanager.enable = false;
|
||||||
userControlled = {
|
wireless = {
|
||||||
enable = true;
|
enable = true;
|
||||||
group = "wheel";
|
userControlled = {
|
||||||
|
enable = true;
|
||||||
|
group = "wheel";
|
||||||
|
};
|
||||||
|
networks = mapAttrs (network: networkOpts: {
|
||||||
|
psk = networkOpts.key;
|
||||||
|
}) config.fudo.wireless-networks;
|
||||||
};
|
};
|
||||||
networks = config.fudo.wireless-networks;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -41,6 +41,7 @@ let
|
|||||||
nix-prefetch-git
|
nix-prefetch-git
|
||||||
nmap
|
nmap
|
||||||
openldap
|
openldap
|
||||||
|
openssl
|
||||||
openttd
|
openttd
|
||||||
pciutils
|
pciutils
|
||||||
pv
|
pv
|
||||||
|
@ -122,9 +122,7 @@ in {
|
|||||||
};
|
};
|
||||||
settings = mkIf (cfg.ssh != null) {
|
settings = mkIf (cfg.ssh != null) {
|
||||||
server = {
|
server = {
|
||||||
START_SSH_SERVER = true;
|
|
||||||
SSH_DOMAIN = cfg.hostname;
|
SSH_DOMAIN = cfg.hostname;
|
||||||
# SSH_PORT = cfg.ssh.listen-port;
|
|
||||||
SSH_LISTEN_PORT = cfg.ssh.listen-port;
|
SSH_LISTEN_PORT = cfg.ssh.listen-port;
|
||||||
SSH_LISTEN_HOST = cfg.ssh.listen-ip;
|
SSH_LISTEN_HOST = cfg.ssh.listen-ip;
|
||||||
};
|
};
|
||||||
|
@ -19,7 +19,7 @@ let
|
|||||||
|
|
||||||
in {
|
in {
|
||||||
options.fudo.wireless-networks = mkOption {
|
options.fudo.wireless-networks = mkOption {
|
||||||
type = with types; listOf (submodule networkOpts);
|
type = with types; attrsOf (submodule networkOpts);
|
||||||
description = "A map of wireless networks to attributes (including key).";
|
description = "A map of wireless networks to attributes (including key).";
|
||||||
default = { };
|
default = { };
|
||||||
};
|
};
|
||||||
|
@ -79,9 +79,7 @@ in {
|
|||||||
bundlerEnv = pkgs.bundlerEnv;
|
bundlerEnv = pkgs.bundlerEnv;
|
||||||
};
|
};
|
||||||
|
|
||||||
cl-gemini = import ./cl-gemini.nix {
|
cl-gemini = import ./cl-gemini.nix { inherit pkgs localLispPackages; };
|
||||||
inherit pkgs localLispPackages;
|
|
||||||
};
|
|
||||||
|
|
||||||
fudo-service = import ./fudo-service.nix {
|
fudo-service = import ./fudo-service.nix {
|
||||||
fetchgit = pkgs.fetchgit;
|
fetchgit = pkgs.fetchgit;
|
||||||
@ -139,19 +137,18 @@ in {
|
|||||||
#fi
|
#fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
localLispPackages = (import ./lisp {
|
localLispPackages = (import ./lisp { inherit pkgs localLispPackages; })
|
||||||
inherit pkgs localLispPackages;
|
// pkgs.lispPackages;
|
||||||
}) // pkgs.lispPackages;
|
|
||||||
|
|
||||||
backplane-dns-server = import ./backplane-dns-server.nix {
|
backplane-dns-server = import ./backplane-dns-server.nix {
|
||||||
inherit localLispPackages;
|
inherit localLispPackages;
|
||||||
pkgs = unstablePkgs;
|
pkgs = unstablePkgs;
|
||||||
};
|
};
|
||||||
|
|
||||||
doom-emacs-config = pkgs.fetchgit {
|
doom-emacs-config = builtins.fetchGit {
|
||||||
url = "https://git.fudo.org/niten/doom-emacs.git";
|
url = "https://git.fudo.org/niten/doom-emacs.git";
|
||||||
rev = "c57d6712e358a9941b1de3508b104ffd38099a3a";
|
# rev = "c57d6712e358a9941b1de3508b104ffd38099a3a";
|
||||||
sha256 = "1b2aw06irmv3xha6rhqlw3lmy6qxv281j4w91c8af0qsvhcq9g1y";
|
# sha256 = "1b2aw06irmv3xha6rhqlw3lmy6qxv281j4w91c8af0qsvhcq9g1y";
|
||||||
};
|
};
|
||||||
|
|
||||||
vanilla-forum = import ./vanilla-forum.nix { pkgs = pkgs; };
|
vanilla-forum = import ./vanilla-forum.nix { pkgs = pkgs; };
|
||||||
|
Loading…
Reference in New Issue
Block a user