litten: add home-manager
This commit is contained in:
parent
4458099c55
commit
bc642392a2
6
litten.brenise.dev/Makefile
Normal file
6
litten.brenise.dev/Makefile
Normal file
@ -0,0 +1,6 @@
|
||||
# makefiles require tabs, not spaces
|
||||
# :set noexpandtab
|
||||
|
||||
.PHONY: update
|
||||
update:
|
||||
home-manager switch --flake .#plebconf
|
@ -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; [
|
||||
|
26
litten.brenise.dev/flake.nix
Normal file
26
litten.brenise.dev/flake.nix
Normal 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 ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
13
litten.brenise.dev/home.nix
Normal file
13
litten.brenise.dev/home.nix
Normal file
@ -0,0 +1,13 @@
|
||||
{ lib, pkgs, ... }:
|
||||
{
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
hello
|
||||
];
|
||||
|
||||
username = "blee";
|
||||
homeDirectory = "/home/${username}";
|
||||
|
||||
stateVersion = "23.11";
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user