VBIKNV64COAFFZXT2MWPUFAZPSPFIIK2TOPGBXKIOU7XCVQ4LJ6AC
QRR6DDIXVYEBBXB4SAH6TXKL4BGNOKJFY4RRAQ6IE6JZUQ2JAZOAC
7UWOMG432IHX7BGGN7PPQUGSSUP6CCQNBXOO7TKNMKMK2R2WFOGAC
IGP7FHYGXFXSDYGO5ABKFXBO2V2ZMYL6GSB2BWKB64T7GTGVXWKQC
TPEUU3M4SFBXCX6UNFLJBGAVWH5AW2XRRVGV3R5LRC6KUXJ6WT5AC
WCNLUVUGDQ55KUE5TTZAJHVPQ5EOG5SPNUMDNMAZ7ENAQV7D4XYQC
COUSBBHL5XPZC5KWCYFFAE554D4VFFO55QOD726ODWIRZGWOUSUAC
WHTEZBXRS7R3AM44LJZFR2YE6RP4IWE3AB5V3DYGO4YJU7PBTMQAC
OEG6DPRQVUDPTETGTOR7WYOJTIB4SWUPXGYW4FEPWSYYNULOCTIQC
U6GSJX5ZG4O7R3XO4CA7G62TTDE22HRZ2LL7EQKLQSYCHCAA3CQQC
BKU3SBYQV4NMFT4HI3LPNSZ55M4OV2GVWZAQZUAIXXGLL7RPI7GAC
# 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 + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "virtio_pci" "virtio_scsi" "ahci" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{
device = "/dev/sda";
fsType = "ext4";
};
swapDevices =
[{ device = "/dev/sdb"; }];
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# recommendations from linode docs on nixos
# https://www.linode.com/docs/guides/install-nixos-on-linode/
boot.kernelParams = [ "console=ttyS0,19200n8" ];
boot.loader.grub.extraConfig = ''
serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1;
terminal_input serial;
terminal_output serial
'';
boot.loader.grub.forceInstall = true;
boot.loader.grub.device = "nodev";
boot.loader.timeout = 10;
}
{
description = "Configuration for tootsie, currently hosted on linode.";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{ self
, nixpkgs
, home-manager
, ...
}@inputs:
let
overlays = [ ];
system = "x86_64-linux";
in
{
inherit overlays system;
nixosConfigurations."tootsie" = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs overlays; };
modules = [
./hardware-configuration.nix
./common.nix
({ pkgs, ... }: {
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
networking.hostName = "tootsie";
networking.useDHCP = false;
networking.interfaces.enp0s5.useDHCP = true;
networking.usePredictableInterfaceNames = false;
networking.interfaces.eth0.useDHCP = true;
services.openssh = {
enable = true;
permitRootLogin = "no";
};
environment.systemPackages = with pkgs; [
inetutils
mtr
sysstat
];
system.stateVersion = "21.11";
time.timeZone = "UTC";
users.users.chris = {
isNormalUser = true;
home = "/home/chris";
description = "Chris User";
extraGroups = [ "wheel" "networkmanager" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGaGrbXoVGe5fXpOhG6+pUZw+aYANuiDPvoI82jftpPd chris@thesogu.com" # chris-thelio
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPflVyCskMX25z8S3pQLyGbo67zBQyC+eMbCkksRw4o/ chris@thesogu.com" # chris-xps
];
};
})
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
}
];
};
};
}
{
"nodes": {
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1648917498,
"narHash": "sha256-fdyVHsP6XeyCk9FRyjV6Wv+7qiOzWxykGXdNixadvyg=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "cfab869fcebc56710be6ec3aca76036b25c04a0d",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1648632716,
"narHash": "sha256-kCmnDeiaMsdhfnNKjxdOzwRh2H6eQb8yWAL+nNabC/Y=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "710fed5a2483f945b14f4a58af2cd3676b42d8c8",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"home-manager": "home-manager",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}
{ config, pkgs, lib, inputs, ... }:
{
nixpkgs.overlays = [
(import inputs.emacs-overlay)
(import inputs.wayland-overlay)
];
time.timeZone = "America/Chicago";
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [ amdvlk rocm-opencl-icd ];
driSupport = true;
};
system.autoUpgrade = {
enable = true;
allowReboot = true;
};
services.openssh.enable = true;
# Enable CUPS to print documents.
services.printing.enable = true;
# Select internationalization properties.
console = {
font = "${pkgs.terminus_font}/share/consolefonts/ter-u32n.psf.gz";
keyMap = "us";
};
# decrypt the root volume
boot.initrd.luks.devices.root.preLVM = true;
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
}
nixpkgs.overlays = [
(import inputs.emacs-overlay)
(import inputs.wayland-overlay)
];
time.timeZone = "America/Chicago";
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [ amdvlk rocm-opencl-icd ];
driSupport = true;
};
system.autoUpgrade = {
enable = true;
allowReboot = true;
};
services.openssh.enable = true;
# Enable CUPS to print documents.
services.printing.enable = true;