install for laptop 1st attempt

This commit is contained in:
2025-01-09 10:48:22 -06:00
parent 51e6922790
commit 5e573e45ba
8 changed files with 216 additions and 70 deletions

View File

@@ -1,10 +1,18 @@
# 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, ... }:
{ config, pkgs, lib, inputs, ... }:
{
imports = [
./hardware-configuration.nix
inputs.system.nixosModule
inputs.home-manager.nixosModules.default
inputs.sops-nix.nixosModules.sops
];
nixpkgs.config.allowUnfree = true;
# Bootloader.
@@ -17,12 +25,7 @@
};
hardware = {
#graphics.enable = true;
opengl = {
enable = true;
driSupport = true;
};
graphics.enable = true;
nvidia = {
modesetting.enable = true;
@@ -52,6 +55,7 @@
};
sysconfig.opts = {
sddm.enable = true;
openssh.enable = false;
steam.enable = true;
pipewire.enable = true;
@@ -61,6 +65,30 @@
nh.enable = true;
};
home-manager = {
backupFileExtension = "backup";
extraSpecialArgs = { inherit inputs; };
users = {
"nathan" = lib.mkMerge [
{
config.homeconfig = {
impermanence.enable = false;
hyprland.enable = true;
swaylock.enable = true;
wal.enable = true;
wayvnc.enable = false;
mpd.enable = true;
ags.enable = true;
calcurse.enable = true;
rofi.enable = true;
firefox.enable = true;
};
}
inputs.nathan.homeManagerModule
];
};
};
# Enable the X11 windowing system.
services.xserver = {
enable = true;
@@ -80,30 +108,17 @@
};
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
environment.shells = with pkgs; [ zsh ];
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
programs.adb.enable = true;
users.defaultUserShell = pkgs.zsh;
programs.zsh.enable = true;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# 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 = "23.05"; # Did you read the comment?
}