From 2fb5a0c77063e5597bbf507fa5b4113f810aff7a Mon Sep 17 00:00:00 2001 From: roxwize Date: Wed, 18 Dec 2024 00:36:56 -0500 Subject: [PATCH] ~ --- nixos/base.nix | 8 ++++-- nixos/flake.lock | 67 +++++++++++++++++++++++++++++++++++++++++++++++- nixos/flake.nix | 4 +++ nixos/home.nix | 6 +++++ 4 files changed, 82 insertions(+), 3 deletions(-) diff --git a/nixos/base.nix b/nixos/base.nix index da50be9..b9b09fd 100644 --- a/nixos/base.nix +++ b/nixos/base.nix @@ -1,11 +1,15 @@ -{ config, lib, pkgs, ... }: +{ config, lib, pkgs, inputs, ... }: { imports = [ ./packages.nix ]; nix.settings.experimental-features = ["nix-command" "flakes"]; - nixpkgs.config.allowUnfree = true; + + nixpkgs = { + config.allowUnfree = true; + overlays = [ inputs.nur.overlay ]; + }; networking.networkmanager.enable = true; diff --git a/nixos/flake.lock b/nixos/flake.lock index 4db5986..335ff58 100644 --- a/nixos/flake.lock +++ b/nixos/flake.lock @@ -1,5 +1,26 @@ { "nodes": { + "flake-parts": { + "inputs": { + "nixpkgs-lib": [ + "nur", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1733312601, + "narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, "home-manager": { "inputs": { "nixpkgs": [ @@ -37,10 +58,54 @@ "type": "github" } }, + "nur": { + "inputs": { + "flake-parts": "flake-parts", + "nixpkgs": [ + "nixpkgs" + ], + "treefmt-nix": "treefmt-nix" + }, + "locked": { + "lastModified": 1734497444, + "narHash": "sha256-BQbZ6BpPnPUNYB7+l6GziNU3YmmnU0jg09TzsIB4k18=", + "owner": "nix-community", + "repo": "NUR", + "rev": "b8b3fcbd00fbd6857acc41928c8246bad83dc7bd", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "NUR", + "type": "github" + } + }, "root": { "inputs": { "home-manager": "home-manager", - "nixpkgs": "nixpkgs" + "nixpkgs": "nixpkgs", + "nur": "nur" + } + }, + "treefmt-nix": { + "inputs": { + "nixpkgs": [ + "nur", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1733222881, + "narHash": "sha256-JIPcz1PrpXUCbaccEnrcUS8jjEb/1vJbZz5KkobyFdM=", + "owner": "numtide", + "repo": "treefmt-nix", + "rev": "49717b5af6f80172275d47a418c9719a31a78b53", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "treefmt-nix", + "type": "github" } } }, diff --git a/nixos/flake.nix b/nixos/flake.nix index 1193fce..a1bcc0b 100644 --- a/nixos/flake.nix +++ b/nixos/flake.nix @@ -7,6 +7,10 @@ url = "github:nix-community/home-manager/release-24.11"; inputs.nixpkgs.follows = "nixpkgs"; }; + nur = { + url = "github:nix-community/NUR"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = { self, nixpkgs, home-manager, ... }@inputs: { diff --git a/nixos/home.nix b/nixos/home.nix index 69c1f8e..b7b8c31 100644 --- a/nixos/home.nix +++ b/nixos/home.nix @@ -18,6 +18,12 @@ }; programs = { + firefox = { + enable = true; + profiles.default = { + isDefault = true; + }; + }; git = { enable = true; userName = "roxwize";