adding nix-bitcoin
This commit is contained in:
parent
d7f84eb77b
commit
16b430074d
7 changed files with 174 additions and 160 deletions
111
README.org
111
README.org
|
@ -39,46 +39,51 @@ Both include the home-manager module. Primarily I chose that route so that I cou
|
|||
url = "github:vaxerski/Hyprland";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
emacs.url = "github:nix-community/emacs-overlay";
|
||||
emacs = {
|
||||
url = "github:nix-community/emacs-overlay";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nix-bitcoin = {
|
||||
url = "github:fort-nix/nix-bitcoin/release";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, nixpkgs-stable, home-manager, hyprland, emacs, ... }:
|
||||
outputs = { nixpkgs, nixpkgs-stable, home-manager, hyprland, emacs, nix-bitcoin, ... }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
username = "chris";
|
||||
|
||||
localOverlay = final: prev: {
|
||||
myAwesome = final.awesome.overrideAttrs (old: rec {
|
||||
pname = "myAwesome";
|
||||
version = "git-20220508-c539e0e";
|
||||
src = prev.fetchFromGitHub {
|
||||
owner = "awesomeWM";
|
||||
repo = "awesome";
|
||||
rev = "c539e0e4350a42f813952fc28dd8490f42d934b3";
|
||||
sha256 = "4z3w6iuv+Gw2xRvhv2AX4suO6dl82woJn0p1nkEx3uM=";
|
||||
};
|
||||
});
|
||||
qt5ct = final.qt5ct.overrideAttrs (old: rec {
|
||||
patches = (old.patches or []) ++ [
|
||||
../../qt5ct.patch
|
||||
];
|
||||
});
|
||||
emacsPgtkNativeComp = final.emacsPgtkNativeComp.overrideAttrs (old: rec {
|
||||
pname = "emacs";
|
||||
src = prev.fetchFromTarball {
|
||||
url = https://github.com/nix-community/emacs-overlay/archive/master.tar.gz;
|
||||
sha256 = "09rsqmz7i7lyays59b9600z11qqr6h6lcskw1zzp54yw2csxn2ix";
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
pkgs = import nixpkgs {
|
||||
pkgsForSystem = import nixpkgs {
|
||||
inherit system;
|
||||
config = { allowUnfree = true; };
|
||||
# overlays = [
|
||||
# hyprland.overlay
|
||||
# localOverlay
|
||||
# ];
|
||||
overlays = [
|
||||
emacs.overlay
|
||||
|
||||
(self: super:
|
||||
{
|
||||
awesome = super.awesome.overrideAttrs (old: rec {
|
||||
pname = "awesome";
|
||||
version = "git-20220614-3a54221";
|
||||
src = super.fetchFromGitHub {
|
||||
owner = "awesomeWM";
|
||||
repo = "awesome";
|
||||
rev = "3a542219f3bf129546ae79eb20e384ea28fa9798";
|
||||
sha256 = "4z3w6iuv+Gw2xRvhv2AX4suO6dl82woJn0p1nkEx3uM=";
|
||||
};
|
||||
patches = [];
|
||||
});
|
||||
}
|
||||
)
|
||||
|
||||
(self: super:
|
||||
{
|
||||
qt5ct = super.qt5ct.overrideAttrs (old: rec {
|
||||
patches = (old.patches or []) ++ [
|
||||
../../qt5ct.patch
|
||||
];
|
||||
});
|
||||
}
|
||||
)
|
||||
];
|
||||
};
|
||||
|
||||
lib = nixpkgs.lib;
|
||||
|
@ -88,7 +93,7 @@ Both include the home-manager module. Primarily I chose that route so that I cou
|
|||
nixosConfigurations = {
|
||||
syl = lib.nixosSystem {
|
||||
inherit system;
|
||||
# inherit emacs;
|
||||
pkgs = pkgsForSystem;
|
||||
modules = [
|
||||
./system/syl/configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
|
@ -103,6 +108,7 @@ Both include the home-manager module. Primarily I chose that route so that I cou
|
|||
};
|
||||
kaladin = lib.nixosSystem {
|
||||
inherit system;
|
||||
pkgs = pkgsForSystem;
|
||||
modules = [
|
||||
./system/kaladin/configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
|
@ -117,6 +123,7 @@ Both include the home-manager module. Primarily I chose that route so that I cou
|
|||
inherit system;
|
||||
modules = [
|
||||
./system/dalinar/configuration.nix
|
||||
nix-bitcoin.nixosModules.default
|
||||
];
|
||||
};
|
||||
};
|
||||
|
@ -155,7 +162,7 @@ services.xserver = {
|
|||
enable = true;
|
||||
windowManager.awesome = {
|
||||
enable = true;
|
||||
package = pkgs.myAwesome;
|
||||
package = pkgs.awesome;
|
||||
};
|
||||
displayManager.sddm = {
|
||||
enable = true;
|
||||
|
@ -644,15 +651,6 @@ Notice how I am including all of my software here. It may be a big file, but hav
|
|||
<<lightlyshaders>>
|
||||
];
|
||||
|
||||
nixpkgs.overlays = [
|
||||
|
||||
(import (builtins.fetchTarball {
|
||||
url = https://github.com/nix-community/emacs-overlay/archive/master.tar.gz;
|
||||
}))
|
||||
|
||||
<<overlays>>
|
||||
];
|
||||
|
||||
services.emacs = {
|
||||
enable = true;
|
||||
package = with pkgs; ((emacsPackagesFor emacsPgtkNativeComp).emacsWithPackages (epkgs: [ epkgs.vterm epkgs.magit epkgs.pdf-tools pkgs.mu ]));
|
||||
|
@ -1089,6 +1087,14 @@ Dalinar's config is of course server oriented.
|
|||
# enableSSHSupport = true;
|
||||
# };
|
||||
|
||||
nix-bitcoin = {
|
||||
generateSecrets = true;
|
||||
operator = {
|
||||
enable = true;
|
||||
name = "chris";
|
||||
};
|
||||
};
|
||||
|
||||
# List services that you want to enable:
|
||||
|
||||
services.locate = {
|
||||
|
@ -1109,6 +1115,19 @@ Dalinar's config is of course server oriented.
|
|||
dataDir = "/storage/monero";
|
||||
};
|
||||
|
||||
services.bitcoind = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
services.clightning = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
services.rtl = {
|
||||
enable = true;
|
||||
nodes.clightning.enable = true;
|
||||
};
|
||||
|
||||
# DDCLIENT
|
||||
services.ddclient = {
|
||||
enable = true;
|
||||
|
@ -1203,6 +1222,10 @@ Dalinar's config is of course server oriented.
|
|||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "22.05"; # Did you read the comment?
|
||||
|
||||
# The nix-bitcoin release version that your config is compatible with.
|
||||
# When upgrading to a backwards-incompatible release, nix-bitcoin will display an
|
||||
# an error and provide instructions for migrating your config to the new release.
|
||||
nix-bitcoin.configVersion = "0.0.77";
|
||||
}
|
||||
#+end_src
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue