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 # 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 # Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ {
imports = config,
[ # Include the results of the hardware scan. pkgs,
...
}: {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
# Bootloader. # Bootloader.
boot.loader.grub.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.grub.device = "/dev/vda"; boot.loader.efi.canTouchEfiVariables = true;
boot.loader.grub.useOSProber = true;
networking.hostName = "nixos"; # Define your hostname. networking.hostName = "archlaptop"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary # Configure network proxy if necessary
@ -133,5 +133,4 @@ experimental-features = nix-command flakes
# Before changing this value read the documentation for this option # Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.11"; # Did you read the comment? 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 # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{ {
imports = config,
[ (modulesPath + "/profiles/qemu-guest.nix") lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
]; ];
boot.initrd.availableKernelModules = ["ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk"]; boot.initrd.availableKernelModules = ["ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk"];
@ -13,13 +17,13 @@
boot.kernelModules = ["kvm-amd"]; boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = []; boot.extraModulePackages = [];
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/disk/by-uuid/87ee53a2-077d-47df-9051-9abcc0fc1a89"; device = "/dev/disk/by-uuid/87ee53a2-077d-47df-9051-9abcc0fc1a89";
fsType = "ext4"; fsType = "ext4";
}; };
swapDevices = swapDevices = [
[ { device = "/dev/disk/by-uuid/5aa8725e-fdd1-4825-9d2c-e2c2c165b726"; } {device = "/dev/disk/by-uuid/5aa8725e-fdd1-4825-9d2c-e2c2c165b726";}
]; ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking

View file

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

View file

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

View file

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