imladris is booted and working
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
# 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, lib, ... }:
|
||||
|
||||
{
|
||||
# this allows you to access `pkgsUnstable` anywhere in your config
|
||||
_module.args.pkgsUnstable = import inputs.nixpkgs-unstable {
|
||||
inherit (pkgs.stdenv.hostPlatform) system;
|
||||
inherit (config.nixpkgs) config;
|
||||
};
|
||||
#_module.args.pkgsUnstable = import inputs.nixpkgs-unstable {
|
||||
# inherit (pkgs.stdenv.hostPlatform) system;
|
||||
# inherit (config.nixpkgs) config;
|
||||
#};
|
||||
|
||||
imports =
|
||||
[
|
||||
@@ -13,21 +17,23 @@
|
||||
./configs
|
||||
];
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
nix.autoOptimiseStore = true;
|
||||
nix.settings.auto-optimise-store = true;
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 10d";
|
||||
};
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "America/Los_Angeles";
|
||||
|
||||
# Select internationalisation properties.
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
i18n.extraLocaleSettings = {
|
||||
LC_ADDRESS = "en_US.UTF-8";
|
||||
LC_IDENTIFICATION = "en_US.UTF-8";
|
||||
@@ -40,9 +46,8 @@
|
||||
LC_TIME = "en_US.UTF-8";
|
||||
};
|
||||
|
||||
networking.hostName = "imladris";
|
||||
networking.hostName = "imladris"; # Define your hostname.
|
||||
networking.networkmanager.enable = true;
|
||||
networking.useDHCP = false;
|
||||
services.resolved.enable = true;
|
||||
services.resolved.fallbackDns = [
|
||||
"1.1.1.1"
|
||||
@@ -55,7 +60,9 @@
|
||||
# Enable the OpenSSH daemon.
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
permitRootLogin = "prohibit-password";
|
||||
settings = {
|
||||
PermitRootLogin = "prohibit-password";
|
||||
};
|
||||
# passwordAuthentication = false;
|
||||
};
|
||||
|
||||
@@ -70,8 +77,6 @@
|
||||
|
||||
services.cron.enable = true;
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
# services.xserver.windowManager.stumpwm.enable = true;
|
||||
services.xserver = {
|
||||
displayManager = {
|
||||
gdm = {
|
||||
@@ -85,23 +90,10 @@
|
||||
};
|
||||
xkb = {
|
||||
layout = "us";
|
||||
options = "ctrl:swapcaps";
|
||||
options = "ctrl:swapcaps,compose:ralt";
|
||||
};
|
||||
};
|
||||
|
||||
# from a previous platform, but might be similar.
|
||||
# icarus is an "AMD Ryzen 5 PRO 4650U with Radeon Graphics" machine.
|
||||
# services.xserver.videoDrivers = [ "amdgpu" ];
|
||||
# services.xserver.useGlamor = true;
|
||||
|
||||
# In case of tearing, this is reported to fix the issue. The intel driver is
|
||||
# outdated (last updated in 2015), so try to avoid this.
|
||||
# services.xserver.videoDrivers = [ "intel" ];
|
||||
# services.xserver.deviceSection = ''
|
||||
# Option "DRI" "2"
|
||||
# Option "TearFree" "true"
|
||||
# '';
|
||||
|
||||
# Enable touchpad support (enabled default in most desktopManager).
|
||||
services.libinput = {
|
||||
enable = true;
|
||||
@@ -111,9 +103,6 @@
|
||||
|
||||
console.useXkbConfig = true;
|
||||
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = true;
|
||||
|
||||
users.users.kyle = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
@@ -125,36 +114,64 @@
|
||||
programs.direnv.enable = true;
|
||||
programs.command-not-found.enable = false;
|
||||
|
||||
# fwupd
|
||||
services.fwupd.enable = true;
|
||||
|
||||
programs.nix-ld.enable = true;
|
||||
programs.nix-ld.libraries = with pkgs; [
|
||||
# Add any missing dynamic libraries for unpackaged programs
|
||||
# here, NOT in environment.systemPackages
|
||||
];
|
||||
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
nixpkgs.config.allowUnfree = true; # needed for amdgpu
|
||||
nixpkgs.config.packageOverrides = pkgs: {
|
||||
doas = pkgs.doas.override { withPAM = false; };
|
||||
nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") {
|
||||
inherit pkgs;
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
|
||||
# Enable sound with pipewire.
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
# If you want to use JACK applications, uncomment this
|
||||
#jack.enable = true;
|
||||
|
||||
# use the example session manager (no others are packaged yet so this is enabled by default,
|
||||
# no need to redefine it in your config for now)
|
||||
#media-session.enable = true;
|
||||
};
|
||||
|
||||
# Install firefox.
|
||||
programs.firefox.enable = true;
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
# Enable common container config files in /etc/containers
|
||||
virtualisation.containers.enable = true;
|
||||
virtualisation = {
|
||||
podman = {
|
||||
enable = true;
|
||||
|
||||
# Create a `docker` alias for podman, to use it as a drop-in replacement
|
||||
dockerCompat = true;
|
||||
|
||||
# Required for containers under podman-compose to be able to talk to each other.
|
||||
defaultNetwork.settings.dns_enabled = true;
|
||||
};
|
||||
};
|
||||
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
ag
|
||||
arduino
|
||||
binutils-unwrapped
|
||||
bitwarden
|
||||
brave
|
||||
cloc
|
||||
cscope
|
||||
direnv
|
||||
doas
|
||||
elinks
|
||||
emacs
|
||||
emScript
|
||||
feh
|
||||
ffmpeg
|
||||
file
|
||||
@@ -165,6 +182,7 @@
|
||||
gdb
|
||||
gforth
|
||||
git
|
||||
graphviz
|
||||
gnumake
|
||||
go
|
||||
go-font
|
||||
@@ -174,6 +192,7 @@
|
||||
keychain
|
||||
lagrange
|
||||
libzip
|
||||
lxterminal
|
||||
mercurial
|
||||
mg
|
||||
mutt
|
||||
@@ -185,48 +204,35 @@
|
||||
picocom
|
||||
pwgen
|
||||
python3Full
|
||||
rlwrap
|
||||
sbcl
|
||||
scdoc
|
||||
scrot
|
||||
silver-searcher
|
||||
stumpwm
|
||||
syncthing
|
||||
syncthing-cli
|
||||
syncthing-tray
|
||||
tailscale
|
||||
tcpdump
|
||||
terminator
|
||||
texinfo
|
||||
texliveFull
|
||||
tmux
|
||||
tree
|
||||
vimHugeX
|
||||
vscode
|
||||
wget
|
||||
xfce.xfce4-terminal
|
||||
dive
|
||||
podman-tui
|
||||
docker-compose
|
||||
podman-compose
|
||||
];
|
||||
|
||||
fonts.fonts = with pkgs; [
|
||||
fira-code
|
||||
fira-code-symbols
|
||||
go-font
|
||||
];
|
||||
|
||||
|
||||
# services.syncthing = {
|
||||
# enable = true;
|
||||
# user = "kyle";
|
||||
# dataDir = "/home/kyle/Sync";
|
||||
# configDir = "/home/kyle/.config/syncthing";
|
||||
# };
|
||||
services.tailscale.enable = true;
|
||||
services.syncthing.enable = true;
|
||||
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
# started in user sessions.
|
||||
# programs.mtr.enable = true;
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
programs.zsh.enable = true;
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" ];
|
||||
|
||||
@@ -236,5 +242,6 @@
|
||||
# this value at the release version of the first install of this system.
|
||||
# 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 = "20.09"; # Did you read the comment?
|
||||
system.stateVersion = "24.11"; # Did you read the comment?
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user