Adding kernighan

This commit is contained in:
Trevor Vallender 2023-07-02 10:28:50 +00:00
parent a6f27bb00f
commit 0419359861
8 changed files with 108 additions and 42 deletions

View File

@ -79,6 +79,16 @@
./system/miyamoto.nix
];
};
kernighan = nixpkgs.lib.nixosSystem { # Pi home server
system = "aarch64-linux";
specialArgs.inputs = inputs;
modules = [
./system/kernighan.nix
];
};
};
};
}

View File

@ -0,0 +1,46 @@
{ config, pkgs, inputs, ... }:
{
# security.polkit.enable = true;
# systemd.user.services.polkit-gnome-authentication-agent-1 = {
# Unit.Description = "polkit-gnome-authentication-agent-1";
# Service = {
# Type = "simple";
# ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
# Restart = "on-failure";
# RestartSec = 1;
# TimeoutStopSec = 10;
# };
# };
# Enable sound.
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
environment.systemPackages = [
pkgs.wget
pkgs.tmux
pkgs.git
pkgs.pciutils
pkgs.pinentry-curses
pkgs.xdg-desktop-portal
pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-kde
inputs.devenv.packages.x86_64-linux.devenv
];
xdg.mime.enable = true;
xdg.mime.defaultApplications = {
"text/html" = "org.qutebrowser.qutebrowser.desktop";
"x-scheme-handler/http" = "org.qutebrowser.qutebrowser.desktop";
"x-scheme-handler/https" = "org.qutebrowser.qutebrowser.desktop";
"x-scheme-handler/about" = "org.qutebrowser.qutebrowser.desktop";
"x-scheme-handler/unknown" = "org.qutebrowser.qutebrowser.desktop";
};
}

View File

@ -0,0 +1,24 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "usbhid" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
};
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
}

25
system/kernighan.nix Normal file
View File

@ -0,0 +1,25 @@
{ config, pkgs, inputs, ... }:
{
imports =
[
./shared-configuration.nix
./kernighan-hardware.nix
];
networking.hostName = "kernighan";
boot.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = true;
environment.systemPackages = with pkgs; [
git
];
networking.firewall.allowedTCPPorts = [
22 # SSH
80 # HTTP
443 # HTTPS
];
}

View File

@ -5,6 +5,7 @@
imports =
[
./shared-configuration.nix
./desktop-configuration.nix
./miyamoto-hardware.nix
];

View File

@ -14,6 +14,7 @@ in
imports =
[
./shared-configuration.nix
./desktop-configuration.nix
./desktop.nix
./ritchie-hardware.nix
./filesystem.nix

View File

@ -24,27 +24,6 @@
time.timeZone = "Europe/London";
# security.polkit.enable = true;
systemd.user.services.polkit-gnome-authentication-agent-1 = {
Unit.Description = "polkit-gnome-authentication-agent-1";
Service = {
Type = "simple";
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
Restart = "on-failure";
RestartSec = 1;
TimeoutStopSec = 10;
};
};
# Enable sound.
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
users.groups.tmux.gid = 1000; # Used for tmux pairing
systemd.tmpfiles.rules = [
"d /var/tmux_share 2770 tsv tmux"
@ -75,18 +54,6 @@
hardware.bluetooth.enable = true;
environment.systemPackages = [
pkgs.wget
pkgs.tmux
pkgs.git
pkgs.pciutils
pkgs.pinentry-curses
pkgs.xdg-desktop-portal
pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-kde
inputs.devenv.packages.x86_64-linux.devenv
];
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
@ -100,15 +67,6 @@
settings.PasswordAuthentication = false;
};
xdg.mime.enable = true;
xdg.mime.defaultApplications = {
"text/html" = "org.qutebrowser.qutebrowser.desktop";
"x-scheme-handler/http" = "org.qutebrowser.qutebrowser.desktop";
"x-scheme-handler/https" = "org.qutebrowser.qutebrowser.desktop";
"x-scheme-handler/about" = "org.qutebrowser.qutebrowser.desktop";
"x-scheme-handler/unknown" = "org.qutebrowser.qutebrowser.desktop";
};
system.stateVersion = "22.11"; # Don't change this
}

View File

@ -14,6 +14,7 @@ in
imports =
[
./shared-configuration.nix
./desktop-configuration.nix
./desktop.nix
./thompson-hardware.nix
./filesystem.nix