moving some modules, changing to systemd-boot.

This commit is contained in:
Gabe Venberg 2024-03-24 19:41:56 -05:00
parent d1fc6f2cc8
commit 7ff04254fb
39 changed files with 65 additions and 62 deletions

View file

@ -1,3 +1,3 @@
# nix-config
My configs for both nixos and home manager only machines0
My configs for both nixos and home manager only machines

View file

@ -1,21 +1,21 @@
# 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, ... }:
{
imports =
[ # Include the results of the hardware scan.
config,
pkgs,
...
}: {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
];
# Bootloader.
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/vda";
boot.loader.grub.useOSProber = true;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "nixos"; # Define your hostname.
networking.hostName = "archlaptop"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
@ -133,5 +133,4 @@ experimental-features = nix-command flakes
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.11"; # Did you read the comment?
}

View file

@ -1,11 +1,15 @@
# 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")
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = ["ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk"];
@ -13,13 +17,13 @@
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/87ee53a2-077d-47df-9051-9abcc0fc1a89";
fileSystems."/" = {
device = "/dev/disk/by-uuid/87ee53a2-077d-47df-9051-9abcc0fc1a89";
fsType = "ext4";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/5aa8725e-fdd1-4825-9d2c-e2c2c165b726"; }
swapDevices = [
{device = "/dev/disk/by-uuid/5aa8725e-fdd1-4825-9d2c-e2c2c165b726";}
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking

View file

@ -9,13 +9,13 @@ inputs,
# manage.
# machine specific options
host.enable-speech = true;
#host.nvim.enable-lsp = true;
#host.nvim.enable-treesitter = true;
host.nvim.enable-lsp = true;
host.nvim.enable-treesitter = true;
home.username = "gabe";
home.homeDirectory = "/home/gabe";
imports = [
../../terminal/home.nix
../../terminal/terminal.nix
inputs.nixvim.homeManagerModules.nixvim
];
}

View file

@ -15,6 +15,6 @@
home.username = "gabe";
home.homeDirectory = "/home/gabe";
imports = [
../terminal/home.nix
../terminal/terminal.nix
];
}

View file

@ -15,6 +15,6 @@
home.username = "gabe";
home.homeDirectory = "/home/gabe";
imports = [
../terminal/home.nix
../terminal/terminal.nix
];
}