This commit is contained in:
Oliver Davies 2024-09-23 13:17:10 +01:00
parent 1e83c4bf8b
commit 9cdb4461a4
4 changed files with 52 additions and 27 deletions

View file

@ -1,10 +1,16 @@
{ lib, pkgs, self, ... }: {
lib,
pkgs,
self,
...
}:
let let
inherit (lib) strings; inherit (lib) strings;
inherit (strings) toInt; inherit (strings) toInt;
theme = import "${self}/lib/theme" { inherit pkgs; }; theme = import "${self}/lib/theme" { inherit pkgs; };
in { in
{
programs.alacritty = { programs.alacritty = {
enable = true; enable = true;
@ -30,7 +36,9 @@ in {
glyph_offset.y = 6; glyph_offset.y = 6;
}; };
shell = { program = "zsh"; }; shell = {
program = "zsh";
};
}; };
}; };
} }

View file

@ -5,8 +5,8 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = imports = [
[ # Include the results of the hardware scan. # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
@ -88,7 +88,10 @@
users.users.opdavies = { users.users.opdavies = {
isNormalUser = true; isNormalUser = true;
description = "Oliver Davies"; description = "Oliver Davies";
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = [
"networkmanager"
"wheel"
];
packages = with pkgs; [ packages = with pkgs; [
firefox firefox
kate kate

View file

@ -1,31 +1,41 @@
# 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, ... }: {
config,
lib,
pkgs,
modulesPath,
...
}:
{ {
imports = imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ]; boot.initrd.availableKernelModules = [
"xhci_pci"
"thunderbolt"
"nvme"
"usb_storage"
"usbhid"
"sd_mod"
"sdhci_pci"
];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/disk/by-uuid/e577c869-18a1-4830-9e00-124fcabdab89"; device = "/dev/disk/by-uuid/e577c869-18a1-4830-9e00-124fcabdab89";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot/efi" = fileSystems."/boot/efi" = {
{ device = "/dev/disk/by-uuid/48FE-D346"; device = "/dev/disk/by-uuid/48FE-D346";
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = swapDevices = [ { device = "/dev/disk/by-uuid/2dce327b-f18d-4727-a9a2-e79d2b5161f9"; } ];
[ { device = "/dev/disk/by-uuid/2dce327b-f18d-4727-a9a2-e79d2b5161f9"; }
];
# 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
# (the default) this is the recommended approach. When using systemd-networkd it's # (the default) this is the recommended approach. When using systemd-networkd it's

4
run
View file

@ -8,6 +8,10 @@ function check {
nix flake check nix flake check
} }
function format {
nix fmt flake.nix home hosts lib modules
}
function help { function help {
printf "%s <task> [args]\n\nTasks:\n" "$0" printf "%s <task> [args]\n\nTasks:\n" "$0"