Moved config to Flakes
This commit is contained in:
@@ -4,14 +4,10 @@
|
||||
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
home-manager = builtins.fetchTarball https://github.com/nix-community/home-manager/archive/master.tar.gz;
|
||||
in
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
(import "${home-manager}/nixos")
|
||||
];
|
||||
|
||||
# Bootloader.
|
||||
@@ -122,31 +118,12 @@ in
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
# Enable NUR
|
||||
nixpkgs.config.packageOverrides = pkgs: {
|
||||
nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/main.tar.gz") {
|
||||
inherit pkgs;
|
||||
};
|
||||
};
|
||||
|
||||
# Home Manager
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.backupFileExtension = "backup";
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.chase = {
|
||||
isNormalUser = true;
|
||||
description = "Chase";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
};
|
||||
home-manager.users.chase = { pkgs, ... }: {
|
||||
imports = [
|
||||
/etc/nixos/home.nix
|
||||
];
|
||||
|
||||
# Original install
|
||||
home.stateVersion = "24.11";
|
||||
};
|
||||
|
||||
# Install firefox.
|
||||
programs.firefox = {
|
||||
|
Reference in New Issue
Block a user