moving some modules, changing to systemd-boot.
This commit is contained in:
parent
d1fc6f2cc8
commit
7ff04254fb
|
@ -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
|
||||||
|
|
|
@ -34,15 +34,15 @@
|
||||||
# Available through 'nixos-rebuild --flake .#your-hostname'
|
# Available through 'nixos-rebuild --flake .#your-hostname'
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
archlaptop = nixpkgs.lib.nixosSystem {
|
archlaptop = nixpkgs.lib.nixosSystem {
|
||||||
system="x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = {inherit inputs outputs;};
|
specialArgs = {inherit inputs outputs;};
|
||||||
# > Our main nixos configuration file <
|
# > Our main nixos configuration file <
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/archlaptop/configuration.nix
|
./hosts/archlaptop/configuration.nix
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager.useGlobalPkgs=true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages=true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.users.gabe = import ./hosts/archlaptop/home.nix;
|
home-manager.users.gabe = import ./hosts/archlaptop/home.nix;
|
||||||
home-manager.extraSpecialArgs = {inherit inputs outputs;};
|
home-manager.extraSpecialArgs = {inherit inputs outputs;};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
@ -43,12 +43,12 @@
|
||||||
LC_TIME = "en_US.UTF-8";
|
LC_TIME = "en_US.UTF-8";
|
||||||
};
|
};
|
||||||
|
|
||||||
nix={
|
nix = {
|
||||||
package=pkgs.nixFlakes;
|
package = pkgs.nixFlakes;
|
||||||
extraOptions=''
|
extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
# Enable the X11 windowing system.
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
|
@ -90,7 +90,7 @@ experimental-features = nix-command flakes
|
||||||
users.users.gabe = {
|
users.users.gabe = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Gabe Venberg";
|
description = "Gabe Venberg";
|
||||||
extraGroups = [ "networkmanager" "wheel" ];
|
extraGroups = ["networkmanager" "wheel"];
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
firefox
|
firefox
|
||||||
# thunderbird
|
# thunderbird
|
||||||
|
@ -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?
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,25 +1,29 @@
|
||||||
# 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"];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [];
|
||||||
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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
|
@ -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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
programs.zoxide.enableZshIntegration = true;
|
programs.zoxide.enableZshIntegration = true;
|
||||||
programs.yazi.enableZshIntegration = true;
|
programs.yazi.enableZshIntegration = true;
|
||||||
programs.carapace.enableZshIntegration = true;
|
programs.carapace.enableZshIntegration = true;
|
||||||
programs.direnv.enableZshIntegration=true;
|
programs.direnv.enableZshIntegration = true;
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
Loading…
Reference in a new issue