litten: add home-manager

This commit is contained in:
Brian Lee 2024-12-30 11:11:11 -08:00
parent 4458099c55
commit bc642392a2
4 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,6 @@
# makefiles require tabs, not spaces
# :set noexpandtab
.PHONY: update
update:
home-manager switch --flake .#plebconf

View File

@ -10,8 +10,11 @@ in
{
imports = [
./hardware-configuration.nix
<home-manager/nixos>
];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config = {
allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
@ -21,6 +24,7 @@ in
"vscode"
"terraform"
"zoom"
"charlatan3"
];
};
nixpkgs.overlays = [
@ -101,11 +105,14 @@ in
"glance"
];
packages = with pkgs; [
binutils
chromium
coreutils # base64
element-desktop
firefox
gimp
gnumake
home-manager
jellyfin-media-player
kate # kwrite
kdenlive
@ -170,6 +177,7 @@ in
};
};
# home-manager.users.blee = { };
environment = {
systemPackages = with pkgs; [

View File

@ -0,0 +1,26 @@
{
description = "Home Manager configuration";
inputs = {
nixpkgs.url = "nixpkgs/nixos-23.11";
home-manager = {
url = "github:nix-community/home-manager/release-23.11";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, home-manager, ... }:
let
lib = nixpkgs.lib;
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in {
homeConfigurations = {
plebconf = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./home.nix ];
};
};
};
}

View File

@ -0,0 +1,13 @@
{ lib, pkgs, ... }:
{
home = {
packages = with pkgs; [
hello
];
username = "blee";
homeDirectory = "/home/${username}";
stateVersion = "23.11";
};
}