flake-ify home-manager config with NUR and overlays

This commit is contained in:
Trolli Schmittlauch 2023-04-14 01:56:52 +02:00
parent 823500e981
commit c568b8dc24
3 changed files with 45 additions and 23 deletions

View file

@ -1,8 +1,5 @@
let
lib = (import <nixpkgs> {}).lib;
in
{
{ lib, ...}:
{
firefox.enablePlasmaBrowserIntegration = true;
firefox-bin.enablePlasmaBrowserIntegration = true;

View file

@ -1,12 +1,9 @@
{ pkgs, ... }:
{ pkgs, inputs, config, ... }:
with pkgs;
let
# nix-channel --add https://nixos.org/channels/nixos-unstable nixos-unstable
unstable = import <nixos-unstable> { };
# nix-channel --add https://github.com/nix-community/NUR/archive/master.tar.gz NUR
nur = import <NUR> { inherit pkgs; };
myNur = nur.repos.schmittlauch;
unstable = inputs.nixos-unstable;
desktopApps = [
firefox
@ -122,7 +119,7 @@ let
reptyr # re-bind running program to other tty
xclip
unzip
myNur.lolcommits # from NUR
config.nur.repos.schmittlauch.lolcommits # from NUR
];
nixHelpers = [
@ -248,7 +245,7 @@ let
(iosevka-bin.override {
variant = "curly-slab";
})
myNur.vollkorn
config.nur.repos.schmittlauch.vollkorn
# TODO: humor-sans
];
@ -260,6 +257,8 @@ let
in
{
nixpkgs.overlays = (import ./overlays.nix);
home.packages =
desktopApps
++ latexApps
@ -276,7 +275,7 @@ in
programs.home-manager.enable = true;
programs.home-manager.path = "$HOME/.nix-defexpr/channels/home-manager";
home.stateVersion = "18.09";
home.stateVersion = "22.11";
programs.direnv =
{
@ -302,7 +301,7 @@ in
enable = true;
# ssh host config
matchBlocks =
import ./secrets/ssh_hosts.nix;
import "${inputs.mysecrets}/ssh_hosts.nix";
};
programs.tmux = {
@ -331,7 +330,7 @@ in
fonts.fontconfig.enable = true;
programs.git =
let contacts = import ./secrets/contacts.nix;
let contacts = import "${inputs.mysecrets}/contacts.nix";
in
{
enable = true;