mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-12 11:14:02 -06:00
Update configuration.nix
This commit is contained in:
parent
876e468639
commit
807a30d49d
1 changed files with 1 additions and 45 deletions
|
@ -1,15 +1,9 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Import other configuration modules
|
||||
# (hardware-configuration.nix is autogenerated upon installation)
|
||||
# paths in nix expressions are always relative the file which defines them
|
||||
imports =
|
||||
[
|
||||
./hardware-configuration.nix
|
||||
"${builtins.fetchTarball "https://github.com/nix-community/disko/archive/master.tar.gz"}/module.nix"
|
||||
./disko-config.nix
|
||||
# ./programs.nix
|
||||
# ./hardware-configuration.nix
|
||||
];
|
||||
|
||||
# Latest kernel
|
||||
|
@ -37,17 +31,6 @@
|
|||
# Enter keyboard layout
|
||||
services.xserver.layout = "us";
|
||||
|
||||
# Enable Flatpak
|
||||
xdg = {
|
||||
portal = {
|
||||
enable = true;
|
||||
extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-wlr
|
||||
xdg-desktop-portal-kde
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# Define user accounts
|
||||
users.users.aaronh = {
|
||||
description = "Aaron Honeycutt";
|
||||
|
@ -61,33 +44,6 @@
|
|||
];
|
||||
};
|
||||
|
||||
programs.bash = {
|
||||
shellAliases = {
|
||||
generations = "sudo nix-env -p /nix/var/nix/profiles/system --list-generations";
|
||||
nix-upgrade = "sudo nixos-rebuild switch --upgrade";
|
||||
};
|
||||
};
|
||||
|
||||
programs.git = {
|
||||
lfs.enable = true;
|
||||
config = {
|
||||
color = {
|
||||
ui = "auto";
|
||||
};
|
||||
color.status = {
|
||||
added = "green bold";
|
||||
changed = "yellow bold";
|
||||
untracked = "red bold";
|
||||
};
|
||||
push = {
|
||||
autoSetupRemote = "true";
|
||||
};
|
||||
init = {
|
||||
defaultBranch = "main";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Allow Unfree
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue