added configuration.nix hardware.nix and programs.nix (#120)

* added configuration.nix hardware.nix and programs.nix

* updated boot setings

* added docker

* added default.nix

* updated .sops.yaml

* nix format

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>

* fix breaking issues

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>

* WIP

* rhapsody_in_green

---------

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
Co-authored-by: ahuston-0 <aliceghuston@gmail.com>
Co-authored-by: Your Name <you@example.com>
This commit is contained in:
Richie Cahill
2024-04-03 19:08:36 -04:00
committed by GitHub
parent 784da650c0
commit e5daa66460
6 changed files with 211 additions and 32 deletions

View File

@ -0,0 +1,17 @@
{
pkgs,
config,
inputs,
...
}:
{
environment.systemPackages = with pkgs; [
candy-icons
discord-canary
sweet-nova
vscode
yubioath-flutter
beeper
git
];
}

View File

@ -0,0 +1,93 @@
{ config, pkgs, ... }:
{
imports = [
../programs.nix
./hardware.nix
];
nixpkgs.config.allowUnfree = true;
boot = {
useSystemdBoot = true;
default = true;
};
networking = {
networkmanager.enable = true;
};
time.timeZone = "America/New_York";
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
sound.enable = true;
services = {
xserver.enable = true;
xserver.displayManager.sddm.enable = true;
xserver.desktopManager.plasma5.enable = true;
xserver.xkb = {
layout = "us";
variant = "";
};
openssh.enable = true;
printing.enable = true;
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
};
users.users.richie = {
isNormalUser = true;
description = "richie";
extraGroups = [
"networkmanager"
"wheel"
];
packages = with pkgs; [
firefox
kate
];
};
virtualisation = {
docker = {
enable = true;
recommendedDefaults = true;
logDriver = "local";
storageDriver = "overlay2";
daemon."settings" = {
experimental = true;
exec-opts = [ "native.cgroupdriver=systemd" ];
log-opts = {
max-size = "10m";
max-file = "5";
};
};
};
};
system.stateVersion = "23.11";
}

View File

@ -0,0 +1,7 @@
{ inputs, ... }:
{
system = "x86_64-linux";
home = true;
sops = true;
modules = [ inputs.nixos-hardware.nixosModules.framework-13-7040-amd ];
}

View File

@ -0,0 +1,48 @@
# 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 + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"thunderbolt"
"usbhid"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/c5cc486b-0076-40b0-9402-7ddb2b4a7fdf";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/D571-3949";
fsType = "vfat";
};
swapDevices = [ { device = "/dev/disk/by-uuid/57a25825-69a9-41ac-999e-5137a01edc9e"; } ];
# 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
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.docker0.useDHCP = lib.mkDefault true;
# networking.interfaces.enp195s0f3u1u3.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}