mirror of
https://github.com/semere-meb/dotfiles-nix.git
synced 2026-08-03 10:24:36 +00:00
gpg configured
This commit is contained in:
parent
dd508cb134
commit
86fe70288b
4 changed files with 52 additions and 43 deletions
22
flake.lock
generated
22
flake.lock
generated
|
|
@ -7,11 +7,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1781981105,
|
||||
"narHash": "sha256-/1nNBbA7PrSQpTc9Qazkhl4kIPg+TNl0CjxS3UQJKlw=",
|
||||
"lastModified": 1783740085,
|
||||
"narHash": "sha256-qajyHfZY29G2oEQk+uHxmsJcRoBUBXP9maTpFlwP/dI=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "7bfff44b465909f69a442701293bc0badcf476dc",
|
||||
"rev": "3cd22efe6471dc7365c822bd9ad73a21e55f38fb",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -23,16 +23,18 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1782535326,
|
||||
"narHash": "sha256-r4TA57SL7nvj1R+GY/FCLwFU48w9IixTQlzBTIYkt8E=",
|
||||
"rev": "714a5f8c4ead6b31148d829288440ed033ccc041",
|
||||
"type": "tarball",
|
||||
"url": "https://releases.nixos.org/nixos/26.05/nixos-26.05.3494.714a5f8c4ead/nixexprs.tar.xz"
|
||||
"lastModified": 1783549019,
|
||||
"narHash": "sha256-0XnckG4ZhBmAsYa9mLuEIFowBG0fDGPLHduQGsbMS4A=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "74cc63f702f7d60a557e152a57b40fb1fd0f72ac",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"id": "nixpkgs",
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-26.05",
|
||||
"type": "indirect"
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
|
|
|
|||
26
flake.nix
26
flake.nix
|
|
@ -2,7 +2,9 @@
|
|||
description = "NixOS system flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/nixos-26.05";
|
||||
nixpkgs = {
|
||||
url = "github:NixOS/nixpkgs/nixos-26.05";
|
||||
};
|
||||
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/release-26.05";
|
||||
|
|
@ -12,22 +14,15 @@
|
|||
|
||||
outputs = { self, nixpkgs, home-manager, ... }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
|
||||
hosts = [ "sys" ];
|
||||
# hosts = builtins.attrNames (builtins.readDir ./hosts);
|
||||
lib = nixpkgs.lib;
|
||||
in
|
||||
{
|
||||
nixosConfigurations =
|
||||
builtins.listToAttrs (
|
||||
map (host: {
|
||||
name = host;
|
||||
value = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
|
||||
nixosConfigurations = {
|
||||
sys = lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./hosts/${host}/configuration.nix
|
||||
./hosts/${host}/hardware-configuration.nix
|
||||
./hosts/sys/configuration.nix
|
||||
./hosts/sys/hardware-configuration.nix
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
|
|
@ -42,7 +37,6 @@
|
|||
}
|
||||
];
|
||||
};
|
||||
}) hosts
|
||||
);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
28
home/him.nix
28
home/him.nix
|
|
@ -4,7 +4,28 @@
|
|||
home.homeDirectory = "/home/him";
|
||||
home.stateVersion = "26.05";
|
||||
|
||||
programs.git.enable = true;
|
||||
programs.git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
user = {
|
||||
name = "Semere M. Mebrahtom";
|
||||
email = "semere.meharena1@gmail.com";
|
||||
};
|
||||
commit.gpgsign = true;
|
||||
gpg.program = "gpg";
|
||||
};
|
||||
signing = {
|
||||
key = "451054EEC0D2AFD1741D4E6A7FC937214DF30488";
|
||||
signByDefault = true;
|
||||
};
|
||||
};
|
||||
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
defaultCacheTtl = 1800;
|
||||
enableSshSupport = true;
|
||||
pinentry.package = pkgs.pinentry-curses;
|
||||
};
|
||||
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
|
|
@ -13,5 +34,8 @@
|
|||
};
|
||||
};
|
||||
|
||||
programs.fzf = {
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -61,19 +61,14 @@
|
|||
gnupg
|
||||
pass
|
||||
p7zip
|
||||
yazi
|
||||
wmenu
|
||||
fnott
|
||||
|
||||
btop
|
||||
|
||||
wlock
|
||||
helix
|
||||
foot
|
||||
firefox
|
||||
|
||||
mpv
|
||||
yt-dlp
|
||||
tor-browser
|
||||
];
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
|
|
@ -93,12 +88,6 @@
|
|||
"flakes"
|
||||
];
|
||||
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
pinentryPackage = pkgs.pinentry-curses;
|
||||
};
|
||||
|
||||
system.stateVersion = "26.05";
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue