home-manager and just optimizations

This commit is contained in:
randogoth 2026-02-02 21:30:08 +02:00
parent d1713bdc99
commit 280f83488b
6 changed files with 102 additions and 39 deletions

View file

@ -25,5 +25,7 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
nixpkgs.config.allowUnfree = true;
system.stateVersion = "25.11";
}

View file

@ -1,44 +1,8 @@
{ ... }:
let
flakeText = ''
{
description = "Home Manager configuration of admin";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, home-manager, ... }: {
homeConfigurations."admin" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
modules = [ ./home.nix ];
};
};
}
'';
homeText = ''
{ config, pkgs, ... }:
{
home.username = "admin";
home.homeDirectory = "/home/admin";
home.stateVersion = "25.05";
home.packages = [ pkgs.ptyxis ];
home.file = { };
home.sessionVariables = { };
programs.home-manager.enable = true;
}
'';
flakeText = (builtins.readFile ../../templates/home-flake.nix);
homeText = (builtins.readFile ../../templates/home-home.nix);
in
{
environment.etc = {

View file

@ -3,8 +3,10 @@
{
# Baseline system tools available everywhere; users run Home Manager standalone.
config.environment.systemPackages = lib.mkAfter [
pkgs.home-manager
pkgs.ghostty
pkgs.home-manager
pkgs.just
pkgs.libnotify
pkgs.micro
];
}